From 82dc840b18fe34f7f5f4bfa5f6fc999bac53442b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 16 Apr 2019 22:22:39 +0000 Subject: [PATCH] Generated from d5ec955cb19d05295877d63e9e1a98803da3c4bc Update supported os family --- sdk/batch/arm-batch/LICENSE.txt | 2 +- sdk/batch/arm-batch/README.md | 11 +- .../arm-batch/lib/batchManagementClient.ts | 55 + .../lib/batchManagementClientContext.ts | 63 + .../models/applicationOperationsMappers.ts | 61 + .../applicationPackageOperationsMappers.ts | 62 + .../models/batchAccountOperationsMappers.ts | 67 + .../models/certificateOperationsMappers.ts | 66 + sdk/batch/arm-batch/lib/models/index.ts | 3440 ++++ .../arm-batch/lib/models/locationMappers.ts | 17 + sdk/batch/arm-batch/lib/models/mappers.ts | 2599 +++ .../arm-batch/lib/models/operationsMappers.ts | 17 + sdk/batch/arm-batch/lib/models/parameters.ts | 208 + .../lib/models/poolOperationsMappers.ts | 67 + .../lib/operations/applicationOperations.ts | 402 + .../applicationPackageOperations.ts | 429 + .../lib/operations/batchAccountOperations.ts | 683 + .../lib/operations/certificateOperations.ts | 510 + sdk/batch/arm-batch/lib/operations/index.ts | 17 + .../arm-batch/lib/operations/location.ts | 147 + .../arm-batch/lib/operations/operations.ts | 123 + .../lib/operations/poolOperations.ts | 550 + sdk/batch/arm-batch/package.json | 12 +- sdk/batch/arm-batch/rollup.config.js | 22 +- sdk/batch/arm-batch/tsconfig.json | 2 +- sdk/batch/batch/LICENSE.txt | 2 +- sdk/batch/batch/README.md | 11 +- sdk/batch/batch/lib/batchServiceClient.ts | 59 + .../batch/lib/batchServiceClientContext.ts | 61 + sdk/batch/batch/lib/models/accountMappers.ts | 24 + .../batch/lib/models/applicationMappers.ts | 20 + .../models/certificateOperationsMappers.ts | 26 + .../models/computeNodeOperationsMappers.ts | 56 + sdk/batch/batch/lib/models/fileMappers.ts | 27 + sdk/batch/batch/lib/models/index.ts | 16016 ++++++++++++++++ sdk/batch/batch/lib/models/jobMappers.ts | 85 + .../batch/lib/models/jobScheduleMappers.ts | 74 + sdk/batch/batch/lib/models/mappers.ts | 13070 +++++++++++++ sdk/batch/batch/lib/models/parameters.ts | 7176 +++++++ sdk/batch/batch/lib/models/poolMappers.ts | 73 + sdk/batch/batch/lib/models/taskMappers.ts | 61 + sdk/batch/batch/lib/operations/account.ts | 244 + sdk/batch/batch/lib/operations/application.ts | 205 + .../lib/operations/certificateOperations.ts | 409 + .../lib/operations/computeNodeOperations.ts | 932 + sdk/batch/batch/lib/operations/file.ts | 686 + sdk/batch/batch/lib/operations/index.ts | 19 + sdk/batch/batch/lib/operations/job.ts | 1067 + sdk/batch/batch/lib/operations/jobSchedule.ts | 726 + sdk/batch/batch/lib/operations/pool.ts | 1160 ++ sdk/batch/batch/lib/operations/task.ts | 732 + sdk/batch/batch/package.json | 12 +- sdk/batch/batch/rollup.config.js | 22 +- sdk/batch/batch/tsconfig.json | 2 +- 54 files changed, 52643 insertions(+), 46 deletions(-) create mode 100644 sdk/batch/arm-batch/lib/batchManagementClient.ts create mode 100644 sdk/batch/arm-batch/lib/batchManagementClientContext.ts create mode 100644 sdk/batch/arm-batch/lib/models/applicationOperationsMappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/applicationPackageOperationsMappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/batchAccountOperationsMappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/certificateOperationsMappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/index.ts create mode 100644 sdk/batch/arm-batch/lib/models/locationMappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/mappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/operationsMappers.ts create mode 100644 sdk/batch/arm-batch/lib/models/parameters.ts create mode 100644 sdk/batch/arm-batch/lib/models/poolOperationsMappers.ts create mode 100644 sdk/batch/arm-batch/lib/operations/applicationOperations.ts create mode 100644 sdk/batch/arm-batch/lib/operations/applicationPackageOperations.ts create mode 100644 sdk/batch/arm-batch/lib/operations/batchAccountOperations.ts create mode 100644 sdk/batch/arm-batch/lib/operations/certificateOperations.ts create mode 100644 sdk/batch/arm-batch/lib/operations/index.ts create mode 100644 sdk/batch/arm-batch/lib/operations/location.ts create mode 100644 sdk/batch/arm-batch/lib/operations/operations.ts create mode 100644 sdk/batch/arm-batch/lib/operations/poolOperations.ts create mode 100644 sdk/batch/batch/lib/batchServiceClient.ts create mode 100644 sdk/batch/batch/lib/batchServiceClientContext.ts create mode 100644 sdk/batch/batch/lib/models/accountMappers.ts create mode 100644 sdk/batch/batch/lib/models/applicationMappers.ts create mode 100644 sdk/batch/batch/lib/models/certificateOperationsMappers.ts create mode 100644 sdk/batch/batch/lib/models/computeNodeOperationsMappers.ts create mode 100644 sdk/batch/batch/lib/models/fileMappers.ts create mode 100644 sdk/batch/batch/lib/models/index.ts create mode 100644 sdk/batch/batch/lib/models/jobMappers.ts create mode 100644 sdk/batch/batch/lib/models/jobScheduleMappers.ts create mode 100644 sdk/batch/batch/lib/models/mappers.ts create mode 100644 sdk/batch/batch/lib/models/parameters.ts create mode 100644 sdk/batch/batch/lib/models/poolMappers.ts create mode 100644 sdk/batch/batch/lib/models/taskMappers.ts create mode 100644 sdk/batch/batch/lib/operations/account.ts create mode 100644 sdk/batch/batch/lib/operations/application.ts create mode 100644 sdk/batch/batch/lib/operations/certificateOperations.ts create mode 100644 sdk/batch/batch/lib/operations/computeNodeOperations.ts create mode 100644 sdk/batch/batch/lib/operations/file.ts create mode 100644 sdk/batch/batch/lib/operations/index.ts create mode 100644 sdk/batch/batch/lib/operations/job.ts create mode 100644 sdk/batch/batch/lib/operations/jobSchedule.ts create mode 100644 sdk/batch/batch/lib/operations/pool.ts create mode 100644 sdk/batch/batch/lib/operations/task.ts diff --git a/sdk/batch/arm-batch/LICENSE.txt b/sdk/batch/arm-batch/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/batch/arm-batch/LICENSE.txt +++ b/sdk/batch/arm-batch/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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 diff --git a/sdk/batch/arm-batch/README.md b/sdk/batch/arm-batch/README.md index f8f35af21f2a..19fb781039fd 100644 --- a/sdk/batch/arm-batch/README.md +++ b/sdk/batch/arm-batch/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for BatchManagementClient. ### How to Install -``` +```bash npm install @azure/arm-batch ``` @@ -19,13 +19,13 @@ npm install @azure/arm-batch ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -49,7 +49,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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/sdk/batch/arm-batch/README.png) diff --git a/sdk/batch/arm-batch/lib/batchManagementClient.ts b/sdk/batch/arm-batch/lib/batchManagementClient.ts new file mode 100644 index 000000000000..b921e4ae2937 --- /dev/null +++ b/sdk/batch/arm-batch/lib/batchManagementClient.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { BatchManagementClientContext } from "./batchManagementClientContext"; + + +class BatchManagementClient extends BatchManagementClientContext { + // Operation groups + batchAccount: operations.BatchAccountOperations; + applicationPackage: operations.ApplicationPackageOperations; + application: operations.ApplicationOperations; + location: operations.Location; + operations: operations.Operations; + certificate: operations.CertificateOperations; + pool: operations.PoolOperations; + + /** + * Initializes a new instance of the BatchManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. + * 00000000-0000-0000-0000-000000000000) + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.BatchManagementClientOptions) { + super(credentials, subscriptionId, options); + this.batchAccount = new operations.BatchAccountOperations(this); + this.applicationPackage = new operations.ApplicationPackageOperations(this); + this.application = new operations.ApplicationOperations(this); + this.location = new operations.Location(this); + this.operations = new operations.Operations(this); + this.certificate = new operations.CertificateOperations(this); + this.pool = new operations.PoolOperations(this); + } +} + +// Operation Specifications + +export { + BatchManagementClient, + BatchManagementClientContext, + Models as BatchManagementModels, + Mappers as BatchManagementMappers +}; +export * from "./operations"; diff --git a/sdk/batch/arm-batch/lib/batchManagementClientContext.ts b/sdk/batch/arm-batch/lib/batchManagementClientContext.ts new file mode 100644 index 000000000000..4fc3db50e532 --- /dev/null +++ b/sdk/batch/arm-batch/lib/batchManagementClientContext.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-batch"; +const packageVersion = "4.0.0"; + +export class BatchManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + apiVersion?: string; + + /** + * Initializes a new instance of the BatchManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. + * 00000000-0000-0000-0000-000000000000) + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.BatchManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.apiVersion = '2019-04-01'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + 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/arm-batch/lib/models/applicationOperationsMappers.ts b/sdk/batch/arm-batch/lib/models/applicationOperationsMappers.ts new file mode 100644 index 000000000000..7d7712089cdf --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/applicationOperationsMappers.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + Application, + ProxyResource, + BaseResource, + CloudError, + ListApplicationsResult, + ApplicationPackage, + Resource, + Certificate, + DeleteCertificateError, + CertificateCreateOrUpdateParameters, + Pool, + DeploymentConfiguration, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + ContainerRegistry, + ScaleSettings, + FixedScaleSettings, + AutoScaleSettings, + AutoScaleRun, + AutoScaleRunError, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNatPool, + NetworkSecurityGroupRule, + TaskSchedulingPolicy, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + StartTask, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + TaskContainerSettings, + CertificateReference, + ApplicationPackageReference, + ResizeOperationStatus, + ResizeError, + BatchAccount, + KeyVaultReference, + AutoStorageProperties, + AutoStorageBaseProperties, + VirtualMachineFamilyCoreQuota +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/models/applicationPackageOperationsMappers.ts b/sdk/batch/arm-batch/lib/models/applicationPackageOperationsMappers.ts new file mode 100644 index 000000000000..c74e4f3a8c75 --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/applicationPackageOperationsMappers.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ActivateApplicationPackageParameters, + ApplicationPackage, + ProxyResource, + BaseResource, + CloudError, + ListApplicationPackagesResult, + Application, + Resource, + Certificate, + DeleteCertificateError, + CertificateCreateOrUpdateParameters, + Pool, + DeploymentConfiguration, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + ContainerRegistry, + ScaleSettings, + FixedScaleSettings, + AutoScaleSettings, + AutoScaleRun, + AutoScaleRunError, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNatPool, + NetworkSecurityGroupRule, + TaskSchedulingPolicy, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + StartTask, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + TaskContainerSettings, + CertificateReference, + ApplicationPackageReference, + ResizeOperationStatus, + ResizeError, + BatchAccount, + KeyVaultReference, + AutoStorageProperties, + AutoStorageBaseProperties, + VirtualMachineFamilyCoreQuota +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/models/batchAccountOperationsMappers.ts b/sdk/batch/arm-batch/lib/models/batchAccountOperationsMappers.ts new file mode 100644 index 000000000000..cbcae31536ad --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/batchAccountOperationsMappers.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + BatchAccountCreateParameters, + AutoStorageBaseProperties, + KeyVaultReference, + BatchAccount, + Resource, + BaseResource, + AutoStorageProperties, + VirtualMachineFamilyCoreQuota, + BatchAccountCreateHeaders, + CloudError, + BatchAccountUpdateParameters, + BatchAccountDeleteHeaders, + BatchAccountListResult, + BatchAccountRegenerateKeyParameters, + BatchAccountKeys, + ProxyResource, + Certificate, + DeleteCertificateError, + CertificateCreateOrUpdateParameters, + Pool, + DeploymentConfiguration, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + ContainerRegistry, + ScaleSettings, + FixedScaleSettings, + AutoScaleSettings, + AutoScaleRun, + AutoScaleRunError, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNatPool, + NetworkSecurityGroupRule, + TaskSchedulingPolicy, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + StartTask, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + TaskContainerSettings, + CertificateReference, + ApplicationPackageReference, + ResizeOperationStatus, + ResizeError, + Application, + ApplicationPackage +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/models/certificateOperationsMappers.ts b/sdk/batch/arm-batch/lib/models/certificateOperationsMappers.ts new file mode 100644 index 000000000000..30548b4b44f3 --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/certificateOperationsMappers.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ListCertificatesResult, + Certificate, + ProxyResource, + BaseResource, + DeleteCertificateError, + CloudError, + CertificateCreateOrUpdateParameters, + CertificateCreateHeaders, + CertificateUpdateHeaders, + CertificateDeleteHeaders, + CertificateGetHeaders, + CertificateCancelDeletionHeaders, + Application, + ApplicationPackage, + Resource, + Pool, + DeploymentConfiguration, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + ContainerRegistry, + ScaleSettings, + FixedScaleSettings, + AutoScaleSettings, + AutoScaleRun, + AutoScaleRunError, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNatPool, + NetworkSecurityGroupRule, + TaskSchedulingPolicy, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + StartTask, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + TaskContainerSettings, + CertificateReference, + ApplicationPackageReference, + ResizeOperationStatus, + ResizeError, + BatchAccount, + KeyVaultReference, + AutoStorageProperties, + AutoStorageBaseProperties, + VirtualMachineFamilyCoreQuota +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/models/index.ts b/sdk/batch/arm-batch/lib/models/index.ts new file mode 100644 index 000000000000..001766d8d233 --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/index.ts @@ -0,0 +1,3440 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing AutoStorageBaseProperties. + * The properties related to the auto-storage account. + * + */ +export interface AutoStorageBaseProperties { + /** + * @member {string} storageAccountId The resource ID of the storage account + * to be used for auto-storage account. + */ + storageAccountId: string; +} + +/** + * @interface + * An interface representing KeyVaultReference. + * Identifies the Azure key vault associated with a Batch account. + * + */ +export interface KeyVaultReference { + /** + * @member {string} id The resource ID of the Azure key vault associated with + * the Batch account. + */ + id: string; + /** + * @member {string} url The URL of the Azure key vault associated with the + * Batch account. + */ + url: string; +} + +/** + * @interface + * An interface representing BatchAccountCreateParameters. + * Parameters supplied to the Create operation. + * + */ +export interface BatchAccountCreateParameters { + /** + * @member {string} location The region in which to create the account. + */ + location: string; + /** + * @member {{ [propertyName: string]: string }} [tags] The user-specified + * tags associated with the account. + */ + tags?: { [propertyName: string]: string }; + /** + * @member {AutoStorageBaseProperties} [autoStorage] The properties related + * to the auto-storage account. + */ + autoStorage?: AutoStorageBaseProperties; + /** + * @member {PoolAllocationMode} [poolAllocationMode] The allocation mode to + * use for creating pools in the Batch account. The pool allocation mode also + * affects how clients may authenticate to the Batch Service API. If the mode + * is BatchService, clients may authenticate using access keys or Azure + * Active Directory. If the mode is UserSubscription, clients must use Azure + * Active Directory. The default is BatchService. Possible values include: + * 'BatchService', 'UserSubscription' + */ + poolAllocationMode?: PoolAllocationMode; + /** + * @member {KeyVaultReference} [keyVaultReference] A reference to the Azure + * key vault associated with the Batch account. + */ + keyVaultReference?: KeyVaultReference; +} + +/** + * @interface + * An interface representing AutoStorageProperties. + * Contains information about the auto-storage account associated with a Batch + * account. + * + * @extends AutoStorageBaseProperties + */ +export interface AutoStorageProperties extends AutoStorageBaseProperties { + /** + * @member {Date} lastKeySync The UTC time at which storage keys were last + * synchronized with the Batch account. + */ + lastKeySync: Date; +} + +/** + * @interface + * An interface representing VirtualMachineFamilyCoreQuota. + * A VM Family and its associated core quota for the Batch account. + * + */ +export interface VirtualMachineFamilyCoreQuota { + /** + * @member {string} [name] The Virtual Machine family name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {number} [coreQuota] The core quota for the VM family for the + * Batch account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly coreQuota?: number; +} + +/** + * @interface + * An interface representing Resource. + * A definition of an Azure resource. + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] The ID of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [location] The location of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] The tags of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing BatchAccount. + * Contains information about an Azure Batch account. + * + * @extends Resource + */ +export interface BatchAccount extends Resource { + /** + * @member {string} [accountEndpoint] The account endpoint used to interact + * with the Batch service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly accountEndpoint?: string; + /** + * @member {ProvisioningState} [provisioningState] The provisioned state of + * the resource. Possible values include: 'Invalid', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Cancelled' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {PoolAllocationMode} [poolAllocationMode] The allocation mode to + * use for creating pools in the Batch account. Possible values include: + * 'BatchService', 'UserSubscription' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly poolAllocationMode?: PoolAllocationMode; + /** + * @member {KeyVaultReference} [keyVaultReference] A reference to the Azure + * key vault associated with the Batch account. **NOTE: This property will + * not be serialized. It can only be populated by the server.** + */ + readonly keyVaultReference?: KeyVaultReference; + /** + * @member {AutoStorageProperties} [autoStorage] The properties and status of + * any auto-storage account associated with the Batch account. **NOTE: This + * property will not be serialized. It can only be populated by the server.** + */ + readonly autoStorage?: AutoStorageProperties; + /** + * @member {number} [dedicatedCoreQuota] The dedicated core quota for the + * Batch account. For accounts with PoolAllocationMode set to + * UserSubscription, quota is managed on the subscription so this value is + * not returned. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly dedicatedCoreQuota?: number; + /** + * @member {number} [lowPriorityCoreQuota] The low-priority core quota for + * the Batch account. For accounts with PoolAllocationMode set to + * UserSubscription, quota is managed on the subscription so this value is + * not returned. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lowPriorityCoreQuota?: number; + /** + * @member {VirtualMachineFamilyCoreQuota[]} [dedicatedCoreQuotaPerVMFamily] + * A list of the dedicated core quota per Virtual Machine family for the + * Batch account. For accounts with PoolAllocationMode set to + * UserSubscription, quota is managed on the subscription so this value is + * not returned. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly dedicatedCoreQuotaPerVMFamily?: VirtualMachineFamilyCoreQuota[]; + /** + * @member {boolean} [dedicatedCoreQuotaPerVMFamilyEnforced] A value + * indicating whether the core quota for the Batch Account is enforced per + * Virtual Machine family or not. Batch is transitioning its core quota + * system for dedicated cores to be enforced per Virtual Machine family. + * During this transitional phase, the dedicated core quota per Virtual + * Machine family may not yet be enforced. If this flag is false, dedicated + * core quota is enforced via the old dedicatedCoreQuota property on the + * account and does not consider Virtual Machine family. If this flag is + * true, dedicated core quota is enforced via the + * dedicatedCoreQuotaPerVMFamily property on the account, and the old + * dedicatedCoreQuota does not apply. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly dedicatedCoreQuotaPerVMFamilyEnforced?: boolean; + /** + * @member {number} [poolQuota] The pool quota for the Batch account. **NOTE: + * This property will not be serialized. It can only be populated by the + * server.** + */ + readonly poolQuota?: number; + /** + * @member {number} [activeJobAndJobScheduleQuota] The active job and job + * schedule quota for the Batch account. **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly activeJobAndJobScheduleQuota?: number; +} + +/** + * @interface + * An interface representing BatchAccountUpdateParameters. + * Parameters for updating an Azure Batch account. + * + */ +export interface BatchAccountUpdateParameters { + /** + * @member {{ [propertyName: string]: string }} [tags] The user-specified + * tags associated with the account. + */ + tags?: { [propertyName: string]: string }; + /** + * @member {AutoStorageBaseProperties} [autoStorage] The properties related + * to the auto-storage account. + */ + autoStorage?: AutoStorageBaseProperties; +} + +/** + * @interface + * An interface representing BatchAccountRegenerateKeyParameters. + * Parameters supplied to the RegenerateKey operation. + * + */ +export interface BatchAccountRegenerateKeyParameters { + /** + * @member {AccountKeyType} keyName The type of account key to regenerate. + * Possible values include: 'Primary', 'Secondary' + */ + keyName: AccountKeyType; +} + +/** + * @interface + * An interface representing BatchAccountKeys. + * A set of Azure Batch account keys. + * + */ +export interface BatchAccountKeys { + /** + * @member {string} [accountName] The Batch account name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly accountName?: string; + /** + * @member {string} [primary] The primary key associated with the account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly primary?: string; + /** + * @member {string} [secondary] The secondary key associated with the + * account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly secondary?: string; +} + +/** + * @interface + * An interface representing ActivateApplicationPackageParameters. + * Parameters for an activating an application package. + * + */ +export interface ActivateApplicationPackageParameters { + /** + * @member {string} format The format of the application package binary file. + */ + format: string; +} + +/** + * @interface + * An interface representing ProxyResource. + * A definition of an Azure resource. + * + * @extends BaseResource + */ +export interface ProxyResource extends BaseResource { + /** + * @member {string} [id] The ID of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [etag] The ETag of the resource, used for concurrency + * statements. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly etag?: string; +} + +/** + * @interface + * An interface representing Application. + * Contains information about an application in a Batch account. + * + * @extends ProxyResource + */ +export interface Application extends ProxyResource { + /** + * @member {string} [displayName] The display name for the application. + */ + displayName?: string; + /** + * @member {boolean} [allowUpdates] A value indicating whether packages + * within the application may be overwritten using the same version string. + */ + allowUpdates?: boolean; + /** + * @member {string} [defaultVersion] The package to use if a client requests + * the application but does not specify a version. This property can only be + * set to the name of an existing package. + */ + defaultVersion?: string; +} + +/** + * @interface + * An interface representing ApplicationPackage. + * An application package which represents a particular version of an + * application. + * + * @extends ProxyResource + */ +export interface ApplicationPackage extends ProxyResource { + /** + * @member {PackageState} [state] The current state of the application + * package. Possible values include: 'Pending', 'Active' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: PackageState; + /** + * @member {string} [format] The format of the application package, if the + * package is active. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly format?: string; + /** + * @member {string} [storageUrl] The URL for the application package in Azure + * Storage. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly storageUrl?: string; + /** + * @member {Date} [storageUrlExpiry] The UTC time at which the Azure Storage + * URL will expire. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly storageUrlExpiry?: Date; + /** + * @member {Date} [lastActivationTime] The time at which the package was last + * activated, if the package is active. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastActivationTime?: Date; +} + +/** + * @interface + * An interface representing BatchLocationQuota. + * Quotas associated with a Batch region for a particular subscription. + * + */ +export interface BatchLocationQuota { + /** + * @member {number} [accountQuota] The number of Batch accounts that may be + * created under the subscription in the specified region. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly accountQuota?: number; +} + +/** + * @interface + * An interface representing CertificateBaseProperties. + */ +export interface CertificateBaseProperties { + /** + * @member {string} [thumbprintAlgorithm] The algorithm of the certificate + * thumbprint. This must match the first portion of the certificate name. + * Currently required to be 'SHA1'. + */ + thumbprintAlgorithm?: string; + /** + * @member {string} [thumbprint] The thumbprint of the certificate. This must + * match the thumbprint from the name. + */ + thumbprint?: string; + /** + * @member {CertificateFormat} [format] The format of the certificate - + * either Pfx or Cer. If omitted, the default is Pfx. Possible values + * include: 'Pfx', 'Cer' + */ + format?: CertificateFormat; +} + +/** + * @interface + * An interface representing DeleteCertificateError. + * An error response from the Batch service. + * + */ +export interface DeleteCertificateError { + /** + * @member {string} code An identifier for the error. Codes are invariant and + * are intended to be consumed programmatically. + */ + code: string; + /** + * @member {string} message A message describing the error, intended to be + * suitable for display in a user interface. + */ + message: string; + /** + * @member {string} [target] The target of the particular error. For example, + * the name of the property in error. + */ + target?: string; + /** + * @member {DeleteCertificateError[]} [details] A list of additional details + * about the error. + */ + details?: DeleteCertificateError[]; +} + +/** + * @interface + * An interface representing Certificate. + * Contains information about a certificate. + * + * @extends ProxyResource + */ +export interface Certificate extends ProxyResource { + /** + * @member {string} [thumbprintAlgorithm] The algorithm of the certificate + * thumbprint. This must match the first portion of the certificate name. + * Currently required to be 'SHA1'. + */ + thumbprintAlgorithm?: string; + /** + * @member {string} [thumbprint] The thumbprint of the certificate. This must + * match the thumbprint from the name. + */ + thumbprint?: string; + /** + * @member {CertificateFormat} [format] The format of the certificate - + * either Pfx or Cer. If omitted, the default is Pfx. Possible values + * include: 'Pfx', 'Cer' + */ + format?: CertificateFormat; + /** + * @member {CertificateProvisioningState} [provisioningState] The provisioned + * state of the resource. Possible values include: 'Succeeded', 'Deleting', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: CertificateProvisioningState; + /** + * @member {Date} [provisioningStateTransitionTime] The time at which the + * certificate entered its current state. **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly provisioningStateTransitionTime?: Date; + /** + * @member {CertificateProvisioningState} [previousProvisioningState] The + * previous provisioned state of the resource. Possible values include: + * 'Succeeded', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly previousProvisioningState?: CertificateProvisioningState; + /** + * @member {Date} [previousProvisioningStateTransitionTime] The time at which + * the certificate entered its previous state. **NOTE: This property will not + * be serialized. It can only be populated by the server.** + */ + readonly previousProvisioningStateTransitionTime?: Date; + /** + * @member {string} [publicData] The public key of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly publicData?: string; + /** + * @member {DeleteCertificateError} [deleteCertificateError] The error which + * occurred while deleting the certificate. This is only returned when the + * certificate provisioningState is 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deleteCertificateError?: DeleteCertificateError; +} + +/** + * @interface + * An interface representing CertificateCreateOrUpdateParameters. + * Contains information about a certificate. + * + * @extends ProxyResource + */ +export interface CertificateCreateOrUpdateParameters extends ProxyResource { + /** + * @member {string} [thumbprintAlgorithm] The algorithm of the certificate + * thumbprint. This must match the first portion of the certificate name. + * Currently required to be 'SHA1'. + */ + thumbprintAlgorithm?: string; + /** + * @member {string} [thumbprint] The thumbprint of the certificate. This must + * match the thumbprint from the name. + */ + thumbprint?: string; + /** + * @member {CertificateFormat} [format] The format of the certificate - + * either Pfx or Cer. If omitted, the default is Pfx. Possible values + * include: 'Pfx', 'Cer' + */ + format?: CertificateFormat; + /** + * @member {string} data The base64-encoded contents of the certificate. The + * maximum size is 10KB. + */ + data: string; + /** + * @member {string} [password] The password to access the certificate's + * private key. This is required if the certificate format is pfx and must be + * omitted if the certificate format is cer. + */ + password?: string; +} + +/** + * @interface + * An interface representing CloudServiceConfiguration. + * @summary The configuration for nodes in a pool based on the Azure Cloud + * Services platform. + * + */ +export interface CloudServiceConfiguration { + /** + * @member {string} osFamily 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; + /** + * @member {string} [osVersion] 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; +} + +/** + * @interface + * An interface representing ImageReference. + * @summary A reference to an Azure Virtual Machines Marketplace image or the + * Azure Image resource of a custom Virtual Machine. To get the list of all + * imageReferences verified by Azure Batch, see the 'List supported node agent + * SKUs' operation. + * + */ +export interface ImageReference { + /** + * @member {string} [publisher] The publisher of the Azure Virtual Machines + * Marketplace image. For example, Canonical or MicrosoftWindowsServer. + */ + publisher?: string; + /** + * @member {string} [offer] The offer type of the Azure Virtual Machines + * Marketplace image. For example, UbuntuServer or WindowsServer. + */ + offer?: string; + /** + * @member {string} [sku] The SKU of the Azure Virtual Machines Marketplace + * image. For example, 14.04.0-LTS or 2012-R2-Datacenter. + */ + sku?: string; + /** + * @member {string} [version] 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; + /** + * @member {string} [id] The ARM resource identifier of the virtual machine + * image. Computes nodes of the pool will be created using this custom image. + * This is of the form + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. + * This property is mutually exclusive with other properties. The virtual + * machine image must be in the same region and subscription as the Azure + * Batch account. For information about the firewall settings for Batch node + * agent to communicate with Batch service see + * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration + * . + */ + id?: string; +} + +/** + * @interface + * An interface representing WindowsConfiguration. + * @summary Windows operating system settings to apply to the virtual machine. + * + */ +export interface WindowsConfiguration { + /** + * @member {boolean} [enableAutomaticUpdates] Whether automatic updates are + * enabled on the virtual machine. If omitted, the default value is true. + */ + enableAutomaticUpdates?: boolean; +} + +/** + * @interface + * An interface representing DataDisk. + * Data Disk settings which will be used by the data disks associated to + * Compute Nodes in the pool. + * + */ +export interface DataDisk { + /** + * @member {number} lun The logical unit number. The lun is used to uniquely + * identify each data disk. If attaching multiple disks, each should have a + * distinct lun. + */ + lun: number; + /** + * @member {CachingType} [caching] The type of caching to be enabled for the + * data disks. Values are: + * + * none - The caching mode for the disk is not enabled. + * readOnly - The caching mode for the disk is read only. + * readWrite - The caching mode for the disk is read and write. + * + * The default value for caching is none. 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' + */ + caching?: CachingType; + /** + * @member {number} diskSizeGB The initial disk size in GB when creating new + * data disk. + */ + diskSizeGB: number; + /** + * @member {StorageAccountType} [storageAccountType] The storage account type + * to be used for the data disk. If omitted, the default is "Standard_LRS". + * Values are: + * + * Standard_LRS - The data disk should use standard locally redundant + * storage. + * Premium_LRS - The data disk should use premium locally redundant storage. + * Possible values include: 'Standard_LRS', 'Premium_LRS' + */ + storageAccountType?: StorageAccountType; +} + +/** + * @interface + * An interface representing ContainerRegistry. + * @summary A private container registry. + * + */ +export interface ContainerRegistry { + /** + * @member {string} [registryServer] The registry URL. If omitted, the + * default is "docker.io". + */ + registryServer?: string; + /** + * @member {string} userName The user name to log into the registry server. + */ + userName: string; + /** + * @member {string} password The password to log into the registry server. + */ + password: string; +} + +/** + * @interface + * An interface representing ContainerConfiguration. + * @summary The configuration for container-enabled pools. + * + */ +export interface ContainerConfiguration { + /** + * @member {string[]} [containerImageNames] The collection of container image + * names. This is the full image reference, as would be specified to "docker + * pull". An image will be sourced from the default Docker registry unless + * the image is fully qualified with an alternative registry. + */ + containerImageNames?: string[]; + /** + * @member {ContainerRegistry[]} [containerRegistries] Additional private + * registries from which containers can be pulled. If any images must be + * downloaded from a private registry which requires credentials, then those + * credentials must be provided here. + */ + containerRegistries?: ContainerRegistry[]; +} + +/** + * @interface + * An interface representing VirtualMachineConfiguration. + * @summary The configuration for compute nodes in a pool based on the Azure + * Virtual Machines infrastructure. + * + */ +export interface VirtualMachineConfiguration { + /** + * @member {ImageReference} imageReference A reference to the Azure Virtual + * Machines Marketplace Image or the custom Virtual Machine Image to use. + */ + imageReference: ImageReference; + /** + * @member {string} nodeAgentSkuId The SKU of the Batch node agent to be + * provisioned on compute nodes in the pool. The Batch node agent is a + * program that runs on each node in the pool, and provides the + * command-and-control interface between the node and the Batch service. + * There are different implementations of the node agent, known as SKUs, for + * different operating systems. You must specify a node agent SKU which + * matches the selected image reference. To get the list of supported node + * agent SKUs along with their list of verified image references, see the + * 'List supported node agent SKUs' operation. + */ + nodeAgentSkuId: string; + /** + * @member {WindowsConfiguration} [windowsConfiguration] Windows operating + * system settings on the virtual machine. This property must not be + * specified if the imageReference specifies a Linux OS image. + */ + windowsConfiguration?: WindowsConfiguration; + /** + * @member {DataDisk[]} [dataDisks] 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. + */ + dataDisks?: DataDisk[]; + /** + * @member {string} [licenseType] 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 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; + /** + * @member {ContainerConfiguration} [containerConfiguration] The container + * configuration for the pool. If specified, setup is performed on each 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; +} + +/** + * @interface + * An interface representing DeploymentConfiguration. + * @summary Deployment configuration properties. + * + */ +export interface DeploymentConfiguration { + /** + * @member {CloudServiceConfiguration} [cloudServiceConfiguration] 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; + /** + * @member {VirtualMachineConfiguration} [virtualMachineConfiguration] The + * virtual machine configuration for the pool. This property and + * cloudServiceConfiguration are mutually exclusive and one of the properties + * must be specified. + */ + virtualMachineConfiguration?: VirtualMachineConfiguration; +} + +/** + * @interface + * An interface representing FixedScaleSettings. + * @summary Fixed scale settings for the pool. + * + */ +export interface FixedScaleSettings { + /** + * @member {string} [resizeTimeout] The timeout for allocation of compute + * nodes to the pool. The default value is 15 minutes. Timeout values use ISO + * 8601 format. For example, use PT10M for 10 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; + /** + * @member {number} [targetDedicatedNodes] The desired number of dedicated + * compute nodes in the pool. At least one of targetDedicatedNodes, + * targetLowPriority nodes must be set. + */ + targetDedicatedNodes?: number; + /** + * @member {number} [targetLowPriorityNodes] The desired number of + * low-priority compute nodes in the pool. At least one of + * targetDedicatedNodes, targetLowPriority nodes must be set. + */ + targetLowPriorityNodes?: number; + /** + * @member {ComputeNodeDeallocationOption} [nodeDeallocationOption] + * Determines what to do with a node and its running task(s) if the pool size + * is decreasing. If omitted, the default value is Requeue. Possible values + * include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData' + */ + nodeDeallocationOption?: ComputeNodeDeallocationOption; +} + +/** + * @interface + * An interface representing AutoScaleSettings. + * @summary AutoScale settings for the pool. + * + */ +export interface AutoScaleSettings { + /** + * @member {string} formula A formula for the desired number of compute nodes + * in the pool. + */ + formula: string; + /** + * @member {string} [evaluationInterval] The time interval at which to + * automatically adjust the pool size according to the autoscale formula. If + * omitted, the default value is 15 minutes (PT15M). + */ + evaluationInterval?: string; +} + +/** + * @interface + * An interface representing ScaleSettings. + * @summary Scale settings for the pool + * + * Defines the desired size of the pool. This can either be 'fixedScale' where + * the requested targetDedicatedNodes is specified, or 'autoScale' which + * defines a formula which is periodically reevaluated. If this property is not + * specified, the pool will have a fixed scale with 0 targetDedicatedNodes. + * + */ +export interface ScaleSettings { + /** + * @member {FixedScaleSettings} [fixedScale] Fixed scale settings for the + * pool. This property and autoScale are mutually exclusive and one of the + * properties must be specified. + */ + fixedScale?: FixedScaleSettings; + /** + * @member {AutoScaleSettings} [autoScale] AutoScale settings for the pool. + * This property and fixedScale are mutually exclusive and one of the + * properties must be specified. + */ + autoScale?: AutoScaleSettings; +} + +/** + * @interface + * An interface representing AutoScaleRunError. + * @summary An error that occurred when autoscaling a pool. + * + */ +export interface AutoScaleRunError { + /** + * @member {string} code An identifier for the error. Codes are invariant and + * are intended to be consumed programmatically. + */ + code: string; + /** + * @member {string} message A message describing the error, intended to be + * suitable for display in a user interface. + */ + message: string; + /** + * @member {AutoScaleRunError[]} [details] Additional details about the + * error. + */ + details?: AutoScaleRunError[]; +} + +/** + * @interface + * An interface representing AutoScaleRun. + * @summary The results and errors from an execution of a pool autoscale + * formula. + * + */ +export interface AutoScaleRun { + /** + * @member {Date} evaluationTime The time at which the autoscale formula was + * last evaluated. + */ + evaluationTime: Date; + /** + * @member {string} [results] 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. + */ + results?: string; + /** + * @member {AutoScaleRunError} [error] Details of the error encountered + * evaluating the autoscale formula on the pool, if the evaluation was + * unsuccessful. + */ + error?: AutoScaleRunError; +} + +/** + * @interface + * An interface representing NetworkSecurityGroupRule. + * @summary A network security group rule to apply to an inbound endpoint. + * + */ +export interface NetworkSecurityGroupRule { + /** + * @member {number} priority 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 3500. If any reserved or duplicate values are + * provided the request fails with HTTP status code 400. + */ + priority: number; + /** + * @member {NetworkSecurityGroupRuleAccess} access The action that should be + * taken for a specified IP address, subnet range or tag. Possible values + * include: 'Allow', 'Deny' + */ + access: NetworkSecurityGroupRuleAccess; + /** + * @member {string} sourceAddressPrefix 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; +} + +/** + * @interface + * 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. + * + */ +export interface InboundNatPool { + /** + * @member {string} name The name of the endpoint. The name must be unique + * within a Batch pool, can contain letters, numbers, underscores, periods, + * and hyphens. Names must start with a letter or number, must end with a + * letter, number, or underscore, and cannot exceed 77 characters. If any + * invalid values are provided the request fails with HTTP status code 400. + */ + name: string; + /** + * @member {InboundEndpointProtocol} protocol The protocol of the endpoint. + * Possible values include: 'TCP', 'UDP' + */ + protocol: InboundEndpointProtocol; + /** + * @member {number} backendPort The port number on the compute node. This + * must be unique within a Batch pool. Acceptable values are between 1 and + * 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any + * reserved values are provided the request fails with HTTP status code 400. + */ + backendPort: number; + /** + * @member {number} frontendPortRangeStart 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. If any reserved or + * overlapping values are provided the request fails with HTTP status code + * 400. + */ + frontendPortRangeStart: number; + /** + * @member {number} frontendPortRangeEnd 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. If + * any reserved or overlapping values are provided the request fails with + * HTTP status code 400. + */ + frontendPortRangeEnd: number; + /** + * @member {NetworkSecurityGroupRule[]} [networkSecurityGroupRules] 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. + */ + networkSecurityGroupRules?: NetworkSecurityGroupRule[]; +} + +/** + * @interface + * An interface representing PoolEndpointConfiguration. + * @summary The endpoint configuration for a pool. + * + */ +export interface PoolEndpointConfiguration { + /** + * @member {InboundNatPool[]} inboundNatPools 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. + */ + inboundNatPools: InboundNatPool[]; +} + +/** + * @interface + * An interface representing NetworkConfiguration. + * The network configuration for a pool. + * + */ +export interface NetworkConfiguration { + /** + * @member {string} [subnetId] 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 nodes in the pool. If the subnet + * doesn't have enough free IP addresses, the pool will partially allocate + * compute 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 compute nodes. This can be verified by + * checking if the specified VNet has any associated Network Security Groups + * (NSG). If communication to the compute 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 via virtualMachineConfiguration the + * Batch account must have poolAllocationMode userSubscription in order to + * use a VNet. 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; + /** + * @member {PoolEndpointConfiguration} [endpointConfiguration] 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; +} + +/** + * @interface + * An interface representing TaskSchedulingPolicy. + * @summary Specifies how tasks should be distributed across compute nodes. + * + */ +export interface TaskSchedulingPolicy { + /** + * @member {ComputeNodeFillType} nodeFillType How tasks should be distributed + * across compute nodes. Possible values include: 'Spread', 'Pack' + */ + nodeFillType: ComputeNodeFillType; +} + +/** + * @interface + * An interface representing LinuxUserConfiguration. + * @summary Properties used to create a user account on a Linux node. + * + */ +export interface LinuxUserConfiguration { + /** + * @member {number} [uid] 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; + /** + * @member {number} [gid] 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; + /** + * @member {string} [sshPrivateKey] 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 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 nodes (no + * modification of the user's .ssh directory is done). + */ + sshPrivateKey?: string; +} + +/** + * @interface + * An interface representing WindowsUserConfiguration. + * @summary Properties used to create a user account on a Windows node. + * + */ +export interface WindowsUserConfiguration { + /** + * @member {LoginMode} [loginMode] Login mode for user. Specifies login mode + * for the user. The default value for VirtualMachineConfiguration pools is + * interactive mode and for CloudServiceConfiguration pools is batch mode. + * Possible values include: 'Batch', 'Interactive' + */ + loginMode?: LoginMode; +} + +/** + * @interface + * An interface representing UserAccount. + * @summary Properties used to create a user on an Azure Batch node. + * + */ +export interface UserAccount { + /** + * @member {string} name The name of the user account. + */ + name: string; + /** + * @member {string} password The password for the user account. + */ + password: string; + /** + * @member {ElevationLevel} [elevationLevel] The elevation level of the user + * account. nonAdmin - The auto user is a standard user without elevated + * access. admin - The auto user is a user with elevated access and operates + * with full Administrator permissions. The default value is nonAdmin. + * Possible values include: 'NonAdmin', 'Admin' + */ + elevationLevel?: ElevationLevel; + /** + * @member {LinuxUserConfiguration} [linuxUserConfiguration] 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; + /** + * @member {WindowsUserConfiguration} [windowsUserConfiguration] 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; +} + +/** + * @interface + * An interface representing MetadataItem. + * @summary A name-value pair associated with a Batch service resource. + * + * The Batch service does not assign any meaning to this metadata; it is solely + * for the use of user code. + * + */ +export interface MetadataItem { + /** + * @member {string} name The name of the metadata item. + */ + name: string; + /** + * @member {string} value The value of the metadata item. + */ + value: string; +} + +/** + * @interface + * An interface representing ResourceFile. + * @summary A single file or multiple files to be downloaded to a compute node. + * + */ +export interface ResourceFile { + /** + * @member {string} [autoStorageContainerName] 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. + */ + autoStorageContainerName?: string; + /** + * @member {string} [storageContainerUrl] 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 using + * anonymous access; that is, the Batch service does not present any + * credentials when downloading the blob. There are two ways to get such a + * URL for a blob in Azure storage: include a Shared Access Signature (SAS) + * granting read and list permissions on the blob, or set the ACL for the + * blob or its container to allow public access. + */ + storageContainerUrl?: string; + /** + * @member {string} [httpUrl] 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 is Azure + * Blob Storage, it must be readable using anonymous access; that is, the + * Batch service does not present any credentials when downloading the blob. + * There are two ways to get such a URL for a blob in Azure storage: include + * a Shared Access Signature (SAS) granting read permissions on the blob, or + * set the ACL for the blob or its container to allow public access. + */ + httpUrl?: string; + /** + * @member {string} [blobPrefix] 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. + */ + blobPrefix?: string; + /** + * @member {string} [filePath] The location on the compute node to which to + * download the file, 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 '..'). + */ + filePath?: string; + /** + * @member {string} [fileMode] 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 node. If this property is not + * specified for a Linux node, then a default value of 0770 is applied to the + * file. + */ + fileMode?: string; +} + +/** + * @interface + * An interface representing EnvironmentSetting. + * @summary An environment variable to be set on a task process. + * + */ +export interface EnvironmentSetting { + /** + * @member {string} name The name of the environment variable. + */ + name: string; + /** + * @member {string} [value] The value of the environment variable. + */ + value?: string; +} + +/** + * @interface + * An interface representing AutoUserSpecification. + * @summary Specifies the parameters for the auto user that runs a task on the + * Batch service. + * + */ +export interface AutoUserSpecification { + /** + * @member {AutoUserScope} [scope] The scope for the auto user. The default + * value is task. Possible values include: 'Task', 'Pool' + */ + scope?: AutoUserScope; + /** + * @member {ElevationLevel} [elevationLevel] The elevation level of the auto + * user. nonAdmin - The auto user is a standard user without elevated access. + * admin - The auto user is a user with elevated access and operates with + * full Administrator permissions. The default value is nonAdmin. Possible + * values include: 'NonAdmin', 'Admin' + */ + elevationLevel?: ElevationLevel; +} + +/** + * @interface + * An interface representing UserIdentity. + * @summary The definition of the user identity under which the task is run. + * + * Specify either the userName or autoUser property, but not both. + * + */ +export interface UserIdentity { + /** + * @member {string} [userName] 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; + /** + * @member {AutoUserSpecification} [autoUser] 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; +} + +/** + * @interface + * An interface representing TaskContainerSettings. + * @summary The container settings for a task. + * + */ +export interface TaskContainerSettings { + /** + * @member {string} [containerRunOptions] 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; + /** + * @member {string} imageName 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; + /** + * @member {ContainerRegistry} [registry] The private registry which contains + * the container image. This setting can be omitted if was already provided + * at pool creation. + */ + registry?: ContainerRegistry; +} + +/** + * @interface + * An interface representing StartTask. + * @summary A task which is run when a compute node joins a pool in the Azure + * Batch service, or when the compute node is rebooted or reimaged. + * + */ +export interface StartTask { + /** + * @member {string} [commandLine] The command line of the start 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. Required if any other properties of the + * startTask are specified. + */ + commandLine?: string; + /** + * @member {ResourceFile[]} [resourceFiles] A list of files that the Batch + * service will download to the compute node before running the command line. + */ + resourceFiles?: ResourceFile[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the start task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {UserIdentity} [userIdentity] The user identity under which the + * start task runs. If omitted, the task runs as a non-administrative user + * unique to the task. + */ + userIdentity?: UserIdentity; + /** + * @member {number} [maxTaskRetryCount] 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; + /** + * @member {boolean} [waitForSuccess] Whether the Batch service should wait + * for the start task to complete successfully (that is, to exit with exit + * code 0) before scheduling any tasks on the compute node. If true and the + * start task fails on a compute node, the Batch service retries the start + * task up to its maximum retry count (maxTaskRetryCount). If the task has + * still not completed successfully after all retries, then the Batch service + * marks the compute node unusable, and will not schedule tasks to it. This + * condition can be detected via the node state and scheduling error detail. + * If false, the Batch service will not wait for the start task to complete. + * In this case, other tasks can start executing on the compute node while + * the start task is still running; and even if the start task fails, new + * tasks will continue to be scheduled on the node. The default is false. + */ + waitForSuccess?: boolean; + /** + * @member {TaskContainerSettings} [containerSettings] The settings for the + * container under which the start 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. + */ + containerSettings?: TaskContainerSettings; +} + +/** + * @interface + * An interface representing CertificateReference. + * @summary A reference to a certificate to be installed on compute nodes in a + * pool. This must exist inside the same account as the pool. + * + */ +export interface CertificateReference { + /** + * @member {string} id The fully qualified ID of the certificate to install + * on the pool. This must be inside the same batch account as the pool. + */ + id: string; + /** + * @member {CertificateStoreLocation} [storeLocation] 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 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; + /** + * @member {string} [storeName] 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 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; + /** + * @member {CertificateVisibility[]} [visibility] Which user accounts on the + * compute node should have access to the private data of the certificate. + */ + visibility?: CertificateVisibility[]; +} + +/** + * @interface + * An interface representing ApplicationPackageReference. + * @summary Link to an application package inside the batch account + * + */ +export interface ApplicationPackageReference { + /** + * @member {string} id The ID of the application package to install. This + * must be inside the same batch account as the pool. This can either be a + * reference to a specific version or the default version if one exists. + */ + id: string; + /** + * @member {string} [version] The version of the application to deploy. If + * omitted, the default version is deployed. If this is omitted, and no + * default version is specified for this application, the request fails with + * the error code InvalidApplicationPackageReferences. If you are calling the + * REST API directly, the HTTP status code is 409. + */ + version?: string; +} + +/** + * @interface + * An interface representing ResizeError. + * @summary An error that occurred when resizing a pool. + * + */ +export interface ResizeError { + /** + * @member {string} code An identifier for the error. Codes are invariant and + * are intended to be consumed programmatically. + */ + code: string; + /** + * @member {string} message A message describing the error, intended to be + * suitable for display in a user interface. + */ + message: string; + /** + * @member {ResizeError[]} [details] Additional details about the error. + */ + details?: ResizeError[]; +} + +/** + * @interface + * An interface representing ResizeOperationStatus. + * @summary Details about the current or last completed resize operation. + * + * Describes either the current operation (if the pool AllocationState is + * Resizing) or the previously completed operation (if the AllocationState is + * Steady). + * + */ +export interface ResizeOperationStatus { + /** + * @member {number} [targetDedicatedNodes] The desired number of dedicated + * compute nodes in the pool. + */ + targetDedicatedNodes?: number; + /** + * @member {number} [targetLowPriorityNodes] The desired number of + * low-priority compute nodes in the pool. + */ + targetLowPriorityNodes?: number; + /** + * @member {string} [resizeTimeout] The timeout for allocation of compute + * 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; + /** + * @member {ComputeNodeDeallocationOption} [nodeDeallocationOption] + * Determines what to do with a 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; + /** + * @member {Date} [startTime] The time when this resize operation was + * started. + */ + startTime?: Date; + /** + * @member {ResizeError[]} [errors] Details of any errors encountered while + * performing the last resize on the pool. This property is set only if an + * error occurred during the last pool resize, and only when the pool + * allocationState is Steady. + */ + errors?: ResizeError[]; +} + +/** + * @interface + * An interface representing Pool. + * Contains information about a pool. + * + * @extends ProxyResource + */ +export interface Pool extends ProxyResource { + /** + * @member {string} [displayName] 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; + /** + * @member {Date} [lastModified] The last modified time of the pool. This is + * the last time at which the pool level data, such as the + * targetDedicatedNodes or autoScaleSettings, changed. It does not factor in + * node-level changes such as a compute node changing state. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModified?: Date; + /** + * @member {Date} [creationTime] The creation time of the pool. **NOTE: This + * property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: Date; + /** + * @member {PoolProvisioningState} [provisioningState] The current state of + * the pool. Possible values include: 'Succeeded', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: PoolProvisioningState; + /** + * @member {Date} [provisioningStateTransitionTime] The time at which the + * pool entered its current state. **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly provisioningStateTransitionTime?: Date; + /** + * @member {AllocationState} [allocationState] Whether the pool is resizing. + * Possible values include: 'Steady', 'Resizing', 'Stopping' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allocationState?: AllocationState; + /** + * @member {Date} [allocationStateTransitionTime] The time at which the pool + * entered its current allocation state. **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly allocationStateTransitionTime?: Date; + /** + * @member {string} [vmSize] 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 for Cloud Services pools (pools created with + * cloudServiceConfiguration), see Sizes for Cloud Services + * (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). + * Batch supports all Cloud Services VM sizes except ExtraSmall. 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; + /** + * @member {DeploymentConfiguration} [deploymentConfiguration] This property + * describes how the pool nodes will be deployed - using Cloud Services or + * Virtual Machines. Using CloudServiceConfiguration specifies that the nodes + * should be creating using Azure Cloud Services (PaaS), while + * VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). + */ + deploymentConfiguration?: DeploymentConfiguration; + /** + * @member {number} [currentDedicatedNodes] The number of compute nodes + * currently in the pool. **NOTE: This property will not be serialized. It + * can only be populated by the server.** + */ + readonly currentDedicatedNodes?: number; + /** + * @member {number} [currentLowPriorityNodes] The number of low priority + * compute nodes currently in the pool. **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly currentLowPriorityNodes?: number; + /** + * @member {ScaleSettings} [scaleSettings] Settings which configure the + * number of nodes in the pool. + */ + scaleSettings?: ScaleSettings; + /** + * @member {AutoScaleRun} [autoScaleRun] The results and errors from the last + * execution of the autoscale formula. This property is set only if the pool + * automatically scales, i.e. autoScaleSettings are used. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly autoScaleRun?: AutoScaleRun; + /** + * @member {InterNodeCommunicationState} [interNodeCommunication] Whether the + * pool permits direct communication between nodes. This imposes restrictions + * on which nodes can be assigned to the pool. Enabling this value can reduce + * the chance of the requested number of nodes to be allocated in the pool. + * If not specified, this value defaults to 'Disabled'. Possible values + * include: 'Enabled', 'Disabled' + */ + interNodeCommunication?: InterNodeCommunicationState; + /** + * @member {NetworkConfiguration} [networkConfiguration] The network + * configuration for the pool. + */ + networkConfiguration?: NetworkConfiguration; + /** + * @member {number} [maxTasksPerNode] The maximum number of tasks that can + * run concurrently on a single compute node in the pool. + */ + maxTasksPerNode?: number; + /** + * @member {TaskSchedulingPolicy} [taskSchedulingPolicy] How tasks are + * distributed across compute nodes in a pool. + */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** + * @member {UserAccount[]} [userAccounts] The list of user accounts to be + * created on each node in the pool. + */ + userAccounts?: UserAccount[]; + /** + * @member {MetadataItem[]} [metadata] 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[]; + /** + * @member {StartTask} [startTask] A task specified to run on each compute + * node as it joins the pool. In an PATCH (update) operation, this property + * can be set to an empty object to remove the start task from the pool. + */ + startTask?: StartTask; + /** + * @member {CertificateReference[]} [certificates] The list of certificates + * to be installed on each compute node in the pool. For Windows compute + * 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. + */ + certificates?: CertificateReference[]; + /** + * @member {ApplicationPackageReference[]} [applicationPackages] The list of + * application packages to be installed on each compute node in the pool. + * Changes to application packages 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. + */ + applicationPackages?: ApplicationPackageReference[]; + /** + * @member {string[]} [applicationLicenses] 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[]; + /** + * @member {ResizeOperationStatus} [resizeOperationStatus] Contains details + * about the current or last completed resize operation. **NOTE: This + * property will not be serialized. It can only be populated by the server.** + */ + readonly resizeOperationStatus?: ResizeOperationStatus; +} + +/** + * @interface + * An interface representing OperationDisplay. + * @summary The object that describes the operation. + * + */ +export interface OperationDisplay { + /** + * @member {string} [provider] Friendly name of the resource provider. + */ + provider?: string; + /** + * @member {string} [operation] The operation type. For example: read, write, + * delete, or listKeys/action + */ + operation?: string; + /** + * @member {string} [resource] The resource type on which the operation is + * performed. + */ + resource?: string; + /** + * @member {string} [description] The friendly name of the operation. + */ + description?: string; +} + +/** + * @interface + * An interface representing Operation. + * @summary A REST API operation + * + */ +export interface Operation { + /** + * @member {string} [name] The operation name. This is of the format + * {provider}/{resource}/{operation} + */ + name?: string; + /** + * @member {OperationDisplay} [display] The object that describes the + * operation. + */ + display?: OperationDisplay; + /** + * @member {string} [origin] The intended executor of the operation. + */ + origin?: string; + /** + * @member {any} [properties] Properties of the operation. + */ + properties?: any; +} + +/** + * @interface + * An interface representing CheckNameAvailabilityParameters. + * Parameters for a check name availability request. + * + */ +export interface CheckNameAvailabilityParameters { + /** + * @member {string} name The name to check for availability + */ + name: string; +} + +/** + * @interface + * An interface representing CheckNameAvailabilityResult. + * The CheckNameAvailability operation response. + * + */ +export interface CheckNameAvailabilityResult { + /** + * @member {boolean} [nameAvailable] Gets a boolean value that indicates + * whether the name is available for you to use. If true, the name is + * available. If false, the name has already been taken or invalid and cannot + * be used. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nameAvailable?: boolean; + /** + * @member {NameAvailabilityReason} [reason] Gets the reason that a Batch + * account name could not be used. The Reason element is only returned if + * NameAvailable is false. Possible values include: 'Invalid', + * 'AlreadyExists' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly reason?: NameAvailabilityReason; + /** + * @member {string} [message] Gets an error message explaining the Reason + * value in more detail. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly message?: string; +} + +/** + * @interface + * An interface representing ApplicationPackageListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApplicationPackageListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [maxresults] The maximum number of items to return in the + * response. + */ + maxresults?: number; +} + +/** + * @interface + * An interface representing ApplicationCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApplicationCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Application} [parameters] The parameters for the request. + */ + parameters?: Application; +} + +/** + * @interface + * An interface representing ApplicationListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApplicationListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [maxresults] The maximum number of items to return in the + * response. + */ + maxresults?: number; +} + +/** + * @interface + * An interface representing CertificateListByBatchAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateListByBatchAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [maxresults] The maximum number of items to return in the + * response. + */ + maxresults?: number; + /** + * @member {string} [select] Comma separated list of properties that should + * be returned. e.g. "properties/provisioningState". Only top level + * properties under properties/ are valid for selection. + */ + select?: string; + /** + * @member {string} [filter] OData filter expression. Valid properties for + * filtering are "properties/provisioningState", + * "properties/provisioningStateTransitionTime", "name". + */ + filter?: string; +} + +/** + * @interface + * An interface representing CertificateCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ifMatch] The entity state (ETag) version of the + * certificate to update. A value of "*" can be used to apply the operation + * only if the certificate already exists. If omitted, this operation will + * always be applied. + */ + ifMatch?: string; + /** + * @member {string} [ifNoneMatch] Set to '*' to allow a new certificate to be + * created, but to prevent updating an existing certificate. Other values + * will be ignored. + */ + ifNoneMatch?: string; +} + +/** + * @interface + * An interface representing CertificateUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ifMatch] The entity state (ETag) version of the + * certificate to update. This value can be omitted or set to "*" to apply + * the operation unconditionally. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing CertificateBeginCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateBeginCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ifMatch] The entity state (ETag) version of the + * certificate to update. A value of "*" can be used to apply the operation + * only if the certificate already exists. If omitted, this operation will + * always be applied. + */ + ifMatch?: string; + /** + * @member {string} [ifNoneMatch] Set to '*' to allow a new certificate to be + * created, but to prevent updating an existing certificate. Other values + * will be ignored. + */ + ifNoneMatch?: string; +} + +/** + * @interface + * An interface representing PoolListByBatchAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolListByBatchAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [maxresults] The maximum number of items to return in the + * response. + */ + maxresults?: number; + /** + * @member {string} [select] Comma separated list of properties that should + * be returned. e.g. "properties/provisioningState". Only top level + * properties under properties/ are valid for selection. + */ + select?: string; + /** + * @member {string} [filter] OData filter expression. Valid properties for + * filtering are: + * + * name + * properties/allocationState + * properties/allocationStateTransitionTime + * properties/creationTime + * properties/provisioningState + * properties/provisioningStateTransitionTime + * properties/lastModified + * properties/vmSize + * properties/interNodeCommunication + * properties/scaleSettings/autoScale + * properties/scaleSettings/fixedScale + */ + filter?: string; +} + +/** + * @interface + * An interface representing PoolCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ifMatch] The entity state (ETag) version of the pool to + * update. A value of "*" can be used to apply the operation only if the pool + * already exists. If omitted, this operation will always be applied. + */ + ifMatch?: string; + /** + * @member {string} [ifNoneMatch] Set to '*' to allow a new pool to be + * created, but to prevent updating an existing pool. Other values will be + * ignored. + */ + ifNoneMatch?: string; +} + +/** + * @interface + * An interface representing PoolUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ifMatch] The entity state (ETag) version of the pool to + * update. This value can be omitted or set to "*" to apply the operation + * unconditionally. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing PoolBeginCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolBeginCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ifMatch] The entity state (ETag) version of the pool to + * update. A value of "*" can be used to apply the operation only if the pool + * already exists. If omitted, this operation will always be applied. + */ + ifMatch?: string; + /** + * @member {string} [ifNoneMatch] Set to '*' to allow a new pool to be + * created, but to prevent updating an existing pool. Other values will be + * ignored. + */ + ifNoneMatch?: string; +} + +/** + * @interface + * An interface representing BatchManagementClientOptions. + * @extends AzureServiceClientOptions + */ +export interface BatchManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + +/** + * @interface + * An interface representing BatchAccountCreateHeaders. + * Defines headers for Create operation. + * + */ +export interface BatchAccountCreateHeaders { + /** + * @member {string} [locationHeader] The URL of the resource used to check + * the status of the asynchronous operation. + */ + locationHeader: string; + /** + * @member {number} [retryAfter] Suggested delay to check the status of the + * asynchronous operation. The value is an integer that specifies the delay + * in seconds. + */ + retryAfter: number; +} + +/** + * @interface + * An interface representing BatchAccountDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface BatchAccountDeleteHeaders { + /** + * @member {string} [location] The URL of the resource used to check the + * status of the asynchronous operation. + */ + location: string; + /** + * @member {number} [retryAfter] Suggested delay to check the status of the + * asynchronous operation. The value is an integer that specifies the delay + * in seconds. + */ + retryAfter: number; +} + +/** + * @interface + * An interface representing CertificateCreateHeaders. + * Defines headers for Create operation. + * + */ +export interface CertificateCreateHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing CertificateUpdateHeaders. + * Defines headers for Update operation. + * + */ +export interface CertificateUpdateHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing CertificateDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface CertificateDeleteHeaders { + /** + * @member {string} [location] The URL of the resource used to check the + * status of the asynchronous operation. + */ + location: string; + /** + * @member {number} [retryAfter] Suggested delay to check the status of the + * asynchronous operation. The value is an integer that represents the + * seconds. + */ + retryAfter: number; +} + +/** + * @interface + * An interface representing CertificateGetHeaders. + * Defines headers for Get operation. + * + */ +export interface CertificateGetHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing CertificateCancelDeletionHeaders. + * Defines headers for CancelDeletion operation. + * + */ +export interface CertificateCancelDeletionHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing PoolCreateHeaders. + * Defines headers for Create operation. + * + */ +export interface PoolCreateHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing PoolUpdateHeaders. + * Defines headers for Update operation. + * + */ +export interface PoolUpdateHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing PoolDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface PoolDeleteHeaders { + /** + * @member {string} [location] The URL of the resource used to check the + * status of the asynchronous operation. + */ + location: string; + /** + * @member {number} [retryAfter] Suggested delay to check the status of the + * asynchronous operation. The value is an integer that represents the + * seconds. + */ + retryAfter: number; +} + +/** + * @interface + * An interface representing PoolGetHeaders. + * Defines headers for Get operation. + * + */ +export interface PoolGetHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing PoolDisableAutoScaleHeaders. + * Defines headers for DisableAutoScale operation. + * + */ +export interface PoolDisableAutoScaleHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + +/** + * @interface + * An interface representing PoolStopResizeHeaders. + * Defines headers for StopResize operation. + * + */ +export interface PoolStopResizeHeaders { + /** + * @member {string} [eTag] 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-Match or + * If-None-Match headers. + */ + eTag: string; +} + + +/** + * @interface + * An interface representing the BatchAccountListResult. + * Values returned by the List operation. + * + * @extends Array + */ +export interface BatchAccountListResult extends Array { + /** + * @member {string} [nextLink] The continuation token. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ListApplicationPackagesResult. + * The result of performing list application packages. + * + * @extends Array + */ +export interface ListApplicationPackagesResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ListApplicationsResult. + * The result of performing list applications. + * + * @extends Array + */ +export interface ListApplicationsResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationListResult. + * @summary Result of the request to list REST API operations. It contains a + * list of operations and a URL nextLink to get the next set of results. + * + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * @member {string} [nextLink] + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ListCertificatesResult. + * Values returned by the List operation. + * + * @extends Array + */ +export interface ListCertificatesResult extends Array { + /** + * @member {string} [nextLink] The continuation token. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ListPoolsResult. + * Values returned by the List operation. + * + * @extends Array + */ +export interface ListPoolsResult extends Array { + /** + * @member {string} [nextLink] The continuation token. + */ + nextLink?: string; +} + +/** + * Defines values for PoolAllocationMode. + * Possible values include: 'BatchService', 'UserSubscription' + * @readonly + * @enum {string} + */ +export type PoolAllocationMode = 'BatchService' | 'UserSubscription'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Invalid', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Cancelled' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Invalid' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Cancelled'; + +/** + * Defines values for AccountKeyType. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type AccountKeyType = 'Primary' | 'Secondary'; + +/** + * Defines values for PackageState. + * Possible values include: 'Pending', 'Active' + * @readonly + * @enum {string} + */ +export type PackageState = 'Pending' | 'Active'; + +/** + * Defines values for CertificateFormat. + * Possible values include: 'Pfx', 'Cer' + * @readonly + * @enum {string} + */ +export type CertificateFormat = 'Pfx' | 'Cer'; + +/** + * Defines values for CertificateProvisioningState. + * Possible values include: 'Succeeded', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type CertificateProvisioningState = 'Succeeded' | 'Deleting' | 'Failed'; + +/** + * Defines values for PoolProvisioningState. + * Possible values include: 'Succeeded', 'Deleting' + * @readonly + * @enum {string} + */ +export type PoolProvisioningState = 'Succeeded' | 'Deleting'; + +/** + * Defines values for AllocationState. + * Possible values include: 'Steady', 'Resizing', 'Stopping' + * @readonly + * @enum {string} + */ +export type AllocationState = 'Steady' | 'Resizing' | 'Stopping'; + +/** + * Defines values for CachingType. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * @readonly + * @enum {string} + */ +export type CachingType = 'None' | 'ReadOnly' | 'ReadWrite'; + +/** + * Defines values for StorageAccountType. + * Possible values include: 'Standard_LRS', 'Premium_LRS' + * @readonly + * @enum {string} + */ +export type StorageAccountType = 'Standard_LRS' | 'Premium_LRS'; + +/** + * Defines values for ComputeNodeDeallocationOption. + * Possible values include: 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData' + * @readonly + * @enum {string} + */ +export type ComputeNodeDeallocationOption = 'Requeue' | 'Terminate' | 'TaskCompletion' | 'RetainedData'; + +/** + * Defines values for InterNodeCommunicationState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type InterNodeCommunicationState = 'Enabled' | 'Disabled'; + +/** + * Defines values for InboundEndpointProtocol. + * Possible values include: 'TCP', 'UDP' + * @readonly + * @enum {string} + */ +export type InboundEndpointProtocol = 'TCP' | 'UDP'; + +/** + * Defines values for NetworkSecurityGroupRuleAccess. + * Possible values include: 'Allow', 'Deny' + * @readonly + * @enum {string} + */ +export type NetworkSecurityGroupRuleAccess = 'Allow' | 'Deny'; + +/** + * Defines values for ComputeNodeFillType. + * Possible values include: 'Spread', 'Pack' + * @readonly + * @enum {string} + */ +export type ComputeNodeFillType = 'Spread' | 'Pack'; + +/** + * Defines values for ElevationLevel. + * Possible values include: 'NonAdmin', 'Admin' + * @readonly + * @enum {string} + */ +export type ElevationLevel = 'NonAdmin' | 'Admin'; + +/** + * Defines values for LoginMode. + * Possible values include: 'Batch', 'Interactive' + * @readonly + * @enum {string} + */ +export type LoginMode = 'Batch' | 'Interactive'; + +/** + * Defines values for AutoUserScope. + * Possible values include: 'Task', 'Pool' + * @readonly + * @enum {string} + */ +export type AutoUserScope = 'Task' | 'Pool'; + +/** + * Defines values for CertificateStoreLocation. + * Possible values include: 'CurrentUser', 'LocalMachine' + * @readonly + * @enum {string} + */ +export type CertificateStoreLocation = 'CurrentUser' | 'LocalMachine'; + +/** + * Defines values for CertificateVisibility. + * Possible values include: 'StartTask', 'Task', 'RemoteUser' + * @readonly + * @enum {string} + */ +export type CertificateVisibility = 'StartTask' | 'Task' | 'RemoteUser'; + +/** + * Defines values for NameAvailabilityReason. + * Possible values include: 'Invalid', 'AlreadyExists' + * @readonly + * @enum {string} + */ +export type NameAvailabilityReason = 'Invalid' | 'AlreadyExists'; + +/** + * Contains response data for the create operation. + */ +export type BatchAccountCreateResponse = BatchAccount & BatchAccountCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BatchAccountCreateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccount; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BatchAccountUpdateResponse = BatchAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccount; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type BatchAccountDeleteResponse = BatchAccountDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BatchAccountDeleteHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BatchAccountGetResponse = BatchAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccount; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BatchAccountListResponse = BatchAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccountListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type BatchAccountListByResourceGroupResponse = BatchAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccountListResult; + }; +}; + +/** + * Contains response data for the regenerateKey operation. + */ +export type BatchAccountRegenerateKeyResponse = BatchAccountKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccountKeys; + }; +}; + +/** + * Contains response data for the getKeys operation. + */ +export type BatchAccountGetKeysResponse = BatchAccountKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccountKeys; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type BatchAccountListNextResponse = BatchAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccountListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchAccountListResult; + }; +}; + +/** + * Contains response data for the activate operation. + */ +export type ApplicationPackageActivateResponse = ApplicationPackage & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationPackage; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ApplicationPackageCreateResponse = ApplicationPackage & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationPackage; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApplicationPackageGetResponse = ApplicationPackage & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationPackage; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ApplicationPackageListResponse = ListApplicationPackagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListApplicationPackagesResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ApplicationPackageListNextResponse = ListApplicationPackagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListApplicationPackagesResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ApplicationCreateResponse = Application & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApplicationGetResponse = Application & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ApplicationUpdateResponse = Application & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ApplicationListResponse = ListApplicationsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListApplicationsResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ApplicationListNextResponse = ListApplicationsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListApplicationsResult; + }; +}; + +/** + * Contains response data for the getQuotas operation. + */ +export type LocationGetQuotasResponse = BatchLocationQuota & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchLocationQuota; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type LocationCheckNameAvailabilityResponse = CheckNameAvailabilityResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CheckNameAvailabilityResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listByBatchAccount operation. + */ +export type CertificateListByBatchAccountResponse = ListCertificatesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListCertificatesResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type CertificateCreateResponse = Certificate & CertificateCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateCreateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type CertificateUpdateResponse = Certificate & CertificateUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * 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; + }; +}; + +/** + * 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 cancelDeletion operation. + */ +export type CertificateCancelDeletionResponse = Certificate & CertificateCancelDeletionHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateCancelDeletionHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the listByBatchAccountNext operation. + */ +export type CertificateListByBatchAccountNextResponse = ListCertificatesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListCertificatesResult; + }; +}; + +/** + * Contains response data for the listByBatchAccount operation. + */ +export type PoolListByBatchAccountResponse = ListPoolsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListPoolsResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type PoolCreateResponse = Pool & PoolCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolCreateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pool; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PoolUpdateResponse = Pool & PoolUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pool; + }; +}; + +/** + * 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 get operation. + */ +export type PoolGetResponse = Pool & 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: Pool; + }; +}; + +/** + * Contains response data for the disableAutoScale operation. + */ +export type PoolDisableAutoScaleResponse = Pool & PoolDisableAutoScaleHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolDisableAutoScaleHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pool; + }; +}; + +/** + * Contains response data for the stopResize operation. + */ +export type PoolStopResizeResponse = Pool & PoolStopResizeHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolStopResizeHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pool; + }; +}; + +/** + * Contains response data for the listByBatchAccountNext operation. + */ +export type PoolListByBatchAccountNextResponse = ListPoolsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListPoolsResult; + }; +}; diff --git a/sdk/batch/arm-batch/lib/models/locationMappers.ts b/sdk/batch/arm-batch/lib/models/locationMappers.ts new file mode 100644 index 000000000000..97dbbc6cc3db --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/locationMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + BatchLocationQuota, + CloudError, + CheckNameAvailabilityParameters, + CheckNameAvailabilityResult +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/models/mappers.ts b/sdk/batch/arm-batch/lib/models/mappers.ts new file mode 100644 index 000000000000..61bc47ca6e45 --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/mappers.ts @@ -0,0 +1,2599 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * 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"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const AutoStorageBaseProperties: msRest.CompositeMapper = { + serializedName: "AutoStorageBaseProperties", + type: { + name: "Composite", + className: "AutoStorageBaseProperties", + modelProperties: { + storageAccountId: { + required: true, + serializedName: "storageAccountId", + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultReference: msRest.CompositeMapper = { + serializedName: "KeyVaultReference", + type: { + name: "Composite", + className: "KeyVaultReference", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + url: { + required: true, + serializedName: "url", + type: { + name: "String" + } + } + } + } +}; + +export const BatchAccountCreateParameters: msRest.CompositeMapper = { + serializedName: "BatchAccountCreateParameters", + type: { + name: "Composite", + className: "BatchAccountCreateParameters", + modelProperties: { + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + autoStorage: { + serializedName: "properties.autoStorage", + type: { + name: "Composite", + className: "AutoStorageBaseProperties" + } + }, + poolAllocationMode: { + serializedName: "properties.poolAllocationMode", + type: { + name: "Enum", + allowedValues: [ + "BatchService", + "UserSubscription" + ] + } + }, + keyVaultReference: { + serializedName: "properties.keyVaultReference", + type: { + name: "Composite", + className: "KeyVaultReference" + } + } + } + } +}; + +export const AutoStorageProperties: msRest.CompositeMapper = { + serializedName: "AutoStorageProperties", + type: { + name: "Composite", + className: "AutoStorageProperties", + modelProperties: { + ...AutoStorageBaseProperties.type.modelProperties, + lastKeySync: { + required: true, + serializedName: "lastKeySync", + type: { + name: "DateTime" + } + } + } + } +}; + +export const VirtualMachineFamilyCoreQuota: msRest.CompositeMapper = { + serializedName: "VirtualMachineFamilyCoreQuota", + type: { + name: "Composite", + className: "VirtualMachineFamilyCoreQuota", + modelProperties: { + name: { + nullable: false, + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + coreQuota: { + nullable: false, + readOnly: true, + serializedName: "coreQuota", + type: { + name: "Number" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + readOnly: true, + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const BatchAccount: msRest.CompositeMapper = { + serializedName: "BatchAccount", + type: { + name: "Composite", + className: "BatchAccount", + modelProperties: { + ...Resource.type.modelProperties, + accountEndpoint: { + readOnly: true, + serializedName: "properties.accountEndpoint", + type: { + name: "String" + } + }, + provisioningState: { + nullable: false, + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Invalid", + "Creating", + "Deleting", + "Succeeded", + "Failed", + "Cancelled" + ] + } + }, + poolAllocationMode: { + readOnly: true, + serializedName: "properties.poolAllocationMode", + type: { + name: "Enum", + allowedValues: [ + "BatchService", + "UserSubscription" + ] + } + }, + keyVaultReference: { + readOnly: true, + serializedName: "properties.keyVaultReference", + type: { + name: "Composite", + className: "KeyVaultReference" + } + }, + autoStorage: { + readOnly: true, + serializedName: "properties.autoStorage", + type: { + name: "Composite", + className: "AutoStorageProperties" + } + }, + dedicatedCoreQuota: { + nullable: false, + readOnly: true, + serializedName: "properties.dedicatedCoreQuota", + type: { + name: "Number" + } + }, + lowPriorityCoreQuota: { + readOnly: true, + serializedName: "properties.lowPriorityCoreQuota", + type: { + name: "Number" + } + }, + dedicatedCoreQuotaPerVMFamily: { + nullable: true, + readOnly: true, + serializedName: "properties.dedicatedCoreQuotaPerVMFamily", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineFamilyCoreQuota" + } + } + } + }, + dedicatedCoreQuotaPerVMFamilyEnforced: { + nullable: false, + readOnly: true, + serializedName: "properties.dedicatedCoreQuotaPerVMFamilyEnforced", + type: { + name: "Boolean" + } + }, + poolQuota: { + nullable: false, + readOnly: true, + serializedName: "properties.poolQuota", + type: { + name: "Number" + } + }, + activeJobAndJobScheduleQuota: { + nullable: false, + readOnly: true, + serializedName: "properties.activeJobAndJobScheduleQuota", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchAccountUpdateParameters: msRest.CompositeMapper = { + serializedName: "BatchAccountUpdateParameters", + type: { + name: "Composite", + className: "BatchAccountUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + autoStorage: { + serializedName: "properties.autoStorage", + type: { + name: "Composite", + className: "AutoStorageBaseProperties" + } + } + } + } +}; + +export const BatchAccountRegenerateKeyParameters: msRest.CompositeMapper = { + serializedName: "BatchAccountRegenerateKeyParameters", + type: { + name: "Composite", + className: "BatchAccountRegenerateKeyParameters", + modelProperties: { + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "Enum", + allowedValues: [ + "Primary", + "Secondary" + ] + } + } + } + } +}; + +export const BatchAccountKeys: msRest.CompositeMapper = { + serializedName: "BatchAccountKeys", + type: { + name: "Composite", + className: "BatchAccountKeys", + modelProperties: { + accountName: { + readOnly: true, + serializedName: "accountName", + type: { + name: "String" + } + }, + primary: { + readOnly: true, + serializedName: "primary", + type: { + name: "String" + } + }, + secondary: { + readOnly: true, + serializedName: "secondary", + type: { + name: "String" + } + } + } + } +}; + +export const ActivateApplicationPackageParameters: msRest.CompositeMapper = { + serializedName: "ActivateApplicationPackageParameters", + type: { + name: "Composite", + className: "ActivateApplicationPackageParameters", + modelProperties: { + format: { + required: true, + serializedName: "format", + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const Application: msRest.CompositeMapper = { + serializedName: "Application", + type: { + name: "Composite", + className: "Application", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + allowUpdates: { + serializedName: "properties.allowUpdates", + type: { + name: "Boolean" + } + }, + defaultVersion: { + serializedName: "properties.defaultVersion", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationPackage: msRest.CompositeMapper = { + serializedName: "ApplicationPackage", + type: { + name: "Composite", + className: "ApplicationPackage", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Pending", + "Active" + ] + } + }, + format: { + readOnly: true, + serializedName: "properties.format", + type: { + name: "String" + } + }, + storageUrl: { + readOnly: true, + serializedName: "properties.storageUrl", + type: { + name: "String" + } + }, + storageUrlExpiry: { + readOnly: true, + serializedName: "properties.storageUrlExpiry", + type: { + name: "DateTime" + } + }, + lastActivationTime: { + readOnly: true, + serializedName: "properties.lastActivationTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const BatchLocationQuota: msRest.CompositeMapper = { + serializedName: "BatchLocationQuota", + type: { + name: "Composite", + className: "BatchLocationQuota", + modelProperties: { + accountQuota: { + readOnly: true, + serializedName: "accountQuota", + type: { + name: "Number" + } + } + } + } +}; + +export const CertificateBaseProperties: msRest.CompositeMapper = { + serializedName: "CertificateBaseProperties", + type: { + name: "Composite", + className: "CertificateBaseProperties", + modelProperties: { + thumbprintAlgorithm: { + serializedName: "thumbprintAlgorithm", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String" + } + }, + format: { + nullable: false, + serializedName: "format", + type: { + name: "Enum", + allowedValues: [ + "Pfx", + "Cer" + ] + } + } + } + } +}; + +export const DeleteCertificateError: msRest.CompositeMapper = { + serializedName: "DeleteCertificateError", + type: { + name: "Composite", + className: "DeleteCertificateError", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeleteCertificateError" + } + } + } + } + } + } +}; + +export const Certificate: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "Certificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + thumbprintAlgorithm: { + serializedName: "properties.thumbprintAlgorithm", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + format: { + nullable: false, + serializedName: "properties.format", + type: { + name: "Enum", + allowedValues: [ + "Pfx", + "Cer" + ] + } + }, + provisioningState: { + nullable: false, + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Deleting", + "Failed" + ] + } + }, + provisioningStateTransitionTime: { + readOnly: true, + serializedName: "properties.provisioningStateTransitionTime", + type: { + name: "DateTime" + } + }, + previousProvisioningState: { + nullable: false, + readOnly: true, + serializedName: "properties.previousProvisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Deleting", + "Failed" + ] + } + }, + previousProvisioningStateTransitionTime: { + readOnly: true, + serializedName: "properties.previousProvisioningStateTransitionTime", + type: { + name: "DateTime" + } + }, + publicData: { + readOnly: true, + serializedName: "properties.publicData", + type: { + name: "String" + } + }, + deleteCertificateError: { + readOnly: true, + serializedName: "properties.deleteCertificateError", + type: { + name: "Composite", + className: "DeleteCertificateError" + } + } + } + } +}; + +export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "CertificateCreateOrUpdateParameters", + type: { + name: "Composite", + className: "CertificateCreateOrUpdateParameters", + modelProperties: { + ...ProxyResource.type.modelProperties, + thumbprintAlgorithm: { + serializedName: "properties.thumbprintAlgorithm", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + format: { + nullable: false, + serializedName: "properties.format", + type: { + name: "Enum", + allowedValues: [ + "Pfx", + "Cer" + ] + } + }, + data: { + required: true, + serializedName: "properties.data", + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const ImageReference: msRest.CompositeMapper = { + serializedName: "ImageReference", + type: { + name: "Composite", + className: "ImageReference", + modelProperties: { + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + offer: { + serializedName: "offer", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const WindowsConfiguration: msRest.CompositeMapper = { + serializedName: "WindowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration", + modelProperties: { + enableAutomaticUpdates: { + serializedName: "enableAutomaticUpdates", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DataDisk: msRest.CompositeMapper = { + serializedName: "DataDisk", + type: { + name: "Composite", + className: "DataDisk", + modelProperties: { + lun: { + required: true, + serializedName: "lun", + type: { + name: "Number" + } + }, + caching: { + serializedName: "caching", + type: { + name: "Enum", + allowedValues: [ + "None", + "ReadOnly", + "ReadWrite" + ] + } + }, + diskSizeGB: { + required: true, + serializedName: "diskSizeGB", + type: { + name: "Number" + } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "Enum", + allowedValues: [ + "Standard_LRS", + "Premium_LRS" + ] + } + } + } + } +}; + +export const ContainerRegistry: msRest.CompositeMapper = { + serializedName: "ContainerRegistry", + type: { + name: "Composite", + className: "ContainerRegistry", + modelProperties: { + registryServer: { + serializedName: "registryServer", + type: { + name: "String" + } + }, + userName: { + required: true, + serializedName: "username", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerConfiguration: msRest.CompositeMapper = { + serializedName: "ContainerConfiguration", + type: { + name: "Composite", + className: "ContainerConfiguration", + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'DockerCompatible', + type: { + name: "String" + } + }, + containerImageNames: { + serializedName: "containerImageNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + containerRegistries: { + serializedName: "containerRegistries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerRegistry" + } + } + } + } + } + } +}; + +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" + } + } + } + } +}; + +export const DeploymentConfiguration: msRest.CompositeMapper = { + serializedName: "DeploymentConfiguration", + type: { + name: "Composite", + className: "DeploymentConfiguration", + modelProperties: { + cloudServiceConfiguration: { + serializedName: "cloudServiceConfiguration", + type: { + name: "Composite", + className: "CloudServiceConfiguration" + } + }, + virtualMachineConfiguration: { + serializedName: "virtualMachineConfiguration", + type: { + name: "Composite", + className: "VirtualMachineConfiguration" + } + } + } + } +}; + +export const FixedScaleSettings: msRest.CompositeMapper = { + serializedName: "FixedScaleSettings", + type: { + name: "Composite", + className: "FixedScaleSettings", + modelProperties: { + resizeTimeout: { + serializedName: "resizeTimeout", + type: { + name: "TimeSpan" + } + }, + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", + type: { + name: "Number" + } + }, + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", + type: { + name: "Number" + } + }, + nodeDeallocationOption: { + serializedName: "nodeDeallocationOption", + type: { + name: "Enum", + allowedValues: [ + "Requeue", + "Terminate", + "TaskCompletion", + "RetainedData" + ] + } + } + } + } +}; + +export const AutoScaleSettings: msRest.CompositeMapper = { + serializedName: "AutoScaleSettings", + type: { + name: "Composite", + className: "AutoScaleSettings", + modelProperties: { + formula: { + required: true, + serializedName: "formula", + type: { + name: "String" + } + }, + evaluationInterval: { + serializedName: "evaluationInterval", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const ScaleSettings: msRest.CompositeMapper = { + serializedName: "ScaleSettings", + type: { + name: "Composite", + className: "ScaleSettings", + modelProperties: { + fixedScale: { + serializedName: "fixedScale", + type: { + name: "Composite", + className: "FixedScaleSettings" + } + }, + autoScale: { + serializedName: "autoScale", + type: { + name: "Composite", + className: "AutoScaleSettings" + } + } + } + } +}; + +export const AutoScaleRunError: msRest.CompositeMapper = { + serializedName: "AutoScaleRunError", + type: { + name: "Composite", + className: "AutoScaleRunError", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoScaleRunError" + } + } + } + } + } + } +}; + +export const AutoScaleRun: msRest.CompositeMapper = { + serializedName: "AutoScaleRun", + type: { + name: "Composite", + className: "AutoScaleRun", + modelProperties: { + evaluationTime: { + required: true, + serializedName: "evaluationTime", + type: { + name: "DateTime" + } + }, + results: { + serializedName: "results", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "AutoScaleRunError" + } + } + } + } +}; + +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" + } + } + } + } +}; + +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 NetworkConfiguration: msRest.CompositeMapper = { + serializedName: "NetworkConfiguration", + type: { + name: "Composite", + className: "NetworkConfiguration", + modelProperties: { + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + endpointConfiguration: { + serializedName: "endpointConfiguration", + type: { + name: "Composite", + className: "PoolEndpointConfiguration" + } + } + } + } +}; + +export const TaskSchedulingPolicy: msRest.CompositeMapper = { + serializedName: "TaskSchedulingPolicy", + type: { + name: "Composite", + className: "TaskSchedulingPolicy", + modelProperties: { + nodeFillType: { + required: true, + serializedName: "nodeFillType", + type: { + name: "Enum", + allowedValues: [ + "Spread", + "Pack" + ] + } + } + } + } +}; + +export const LinuxUserConfiguration: msRest.CompositeMapper = { + serializedName: "LinuxUserConfiguration", + type: { + name: "Composite", + className: "LinuxUserConfiguration", + modelProperties: { + uid: { + serializedName: "uid", + type: { + name: "Number" + } + }, + gid: { + serializedName: "gid", + type: { + name: "Number" + } + }, + sshPrivateKey: { + serializedName: "sshPrivateKey", + type: { + name: "String" + } + } + } + } +}; + +export const WindowsUserConfiguration: msRest.CompositeMapper = { + serializedName: "WindowsUserConfiguration", + type: { + name: "Composite", + className: "WindowsUserConfiguration", + modelProperties: { + loginMode: { + serializedName: "loginMode", + type: { + name: "Enum", + allowedValues: [ + "Batch", + "Interactive" + ] + } + } + } + } +}; + +export const UserAccount: msRest.CompositeMapper = { + serializedName: "UserAccount", + type: { + name: "Composite", + className: "UserAccount", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "password", + type: { + name: "String" + } + }, + elevationLevel: { + serializedName: "elevationLevel", + type: { + name: "Enum", + allowedValues: [ + "NonAdmin", + "Admin" + ] + } + }, + linuxUserConfiguration: { + serializedName: "linuxUserConfiguration", + type: { + name: "Composite", + className: "LinuxUserConfiguration" + } + }, + windowsUserConfiguration: { + serializedName: "windowsUserConfiguration", + type: { + name: "Composite", + className: "WindowsUserConfiguration" + } + } + } + } +}; + +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 ResourceFile: msRest.CompositeMapper = { + serializedName: "ResourceFile", + type: { + name: "Composite", + className: "ResourceFile", + modelProperties: { + autoStorageContainerName: { + serializedName: "autoStorageContainerName", + type: { + name: "String" + } + }, + storageContainerUrl: { + serializedName: "storageContainerUrl", + type: { + name: "String" + } + }, + httpUrl: { + serializedName: "httpUrl", + type: { + name: "String" + } + }, + blobPrefix: { + serializedName: "blobPrefix", + type: { + name: "String" + } + }, + filePath: { + serializedName: "filePath", + type: { + name: "String" + } + }, + fileMode: { + serializedName: "fileMode", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentSetting: msRest.CompositeMapper = { + serializedName: "EnvironmentSetting", + type: { + name: "Composite", + className: "EnvironmentSetting", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const AutoUserSpecification: msRest.CompositeMapper = { + serializedName: "AutoUserSpecification", + type: { + name: "Composite", + className: "AutoUserSpecification", + modelProperties: { + scope: { + serializedName: "scope", + type: { + name: "Enum", + allowedValues: [ + "Task", + "Pool" + ] + } + }, + elevationLevel: { + serializedName: "elevationLevel", + type: { + name: "Enum", + allowedValues: [ + "NonAdmin", + "Admin" + ] + } + } + } + } +}; + +export const UserIdentity: msRest.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + modelProperties: { + userName: { + serializedName: "userName", + type: { + name: "String" + } + }, + autoUser: { + serializedName: "autoUser", + type: { + name: "Composite", + className: "AutoUserSpecification" + } + } + } + } +}; + +export const TaskContainerSettings: msRest.CompositeMapper = { + serializedName: "TaskContainerSettings", + type: { + name: "Composite", + className: "TaskContainerSettings", + modelProperties: { + containerRunOptions: { + serializedName: "containerRunOptions", + type: { + name: "String" + } + }, + imageName: { + required: true, + serializedName: "imageName", + type: { + name: "String" + } + }, + registry: { + serializedName: "registry", + type: { + name: "Composite", + className: "ContainerRegistry" + } + } + } + } +}; + +export const StartTask: msRest.CompositeMapper = { + serializedName: "StartTask", + type: { + name: "Composite", + className: "StartTask", + modelProperties: { + commandLine: { + serializedName: "commandLine", + type: { + name: "String" + } + }, + resourceFiles: { + serializedName: "resourceFiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } + } + }, + environmentSettings: { + serializedName: "environmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, + userIdentity: { + serializedName: "userIdentity", + type: { + name: "Composite", + className: "UserIdentity" + } + }, + maxTaskRetryCount: { + serializedName: "maxTaskRetryCount", + type: { + name: "Number" + } + }, + waitForSuccess: { + serializedName: "waitForSuccess", + type: { + name: "Boolean" + } + }, + containerSettings: { + serializedName: "containerSettings", + type: { + name: "Composite", + className: "TaskContainerSettings" + } + } + } + } +}; + +export const CertificateReference: msRest.CompositeMapper = { + serializedName: "CertificateReference", + type: { + name: "Composite", + className: "CertificateReference", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + storeLocation: { + serializedName: "storeLocation", + type: { + name: "Enum", + allowedValues: [ + "CurrentUser", + "LocalMachine" + ] + } + }, + storeName: { + serializedName: "storeName", + type: { + name: "String" + } + }, + visibility: { + serializedName: "visibility", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "StartTask", + "Task", + "RemoteUser" + ] + } + } + } + } + } + } +}; + +export const ApplicationPackageReference: msRest.CompositeMapper = { + serializedName: "ApplicationPackageReference", + type: { + name: "Composite", + className: "ApplicationPackageReference", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const ResizeError: msRest.CompositeMapper = { + serializedName: "ResizeError", + type: { + name: "Composite", + className: "ResizeError", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResizeError" + } + } + } + } + } + } +}; + +export const ResizeOperationStatus: msRest.CompositeMapper = { + serializedName: "ResizeOperationStatus", + type: { + name: "Composite", + className: "ResizeOperationStatus", + modelProperties: { + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", + type: { + name: "Number" + } + }, + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", + type: { + name: "Number" + } + }, + resizeTimeout: { + serializedName: "resizeTimeout", + type: { + name: "TimeSpan" + } + }, + nodeDeallocationOption: { + serializedName: "nodeDeallocationOption", + type: { + name: "Enum", + allowedValues: [ + "Requeue", + "Terminate", + "TaskCompletion", + "RetainedData" + ] + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResizeError" + } + } + } + } + } + } +}; + +export const Pool: msRest.CompositeMapper = { + serializedName: "Pool", + type: { + name: "Composite", + className: "Pool", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + lastModified: { + readOnly: true, + serializedName: "properties.lastModified", + type: { + name: "DateTime" + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Deleting" + ] + } + }, + provisioningStateTransitionTime: { + readOnly: true, + serializedName: "properties.provisioningStateTransitionTime", + type: { + name: "DateTime" + } + }, + allocationState: { + readOnly: true, + serializedName: "properties.allocationState", + type: { + name: "Enum", + allowedValues: [ + "Steady", + "Resizing", + "Stopping" + ] + } + }, + allocationStateTransitionTime: { + readOnly: true, + serializedName: "properties.allocationStateTransitionTime", + type: { + name: "DateTime" + } + }, + vmSize: { + serializedName: "properties.vmSize", + type: { + name: "String" + } + }, + deploymentConfiguration: { + serializedName: "properties.deploymentConfiguration", + type: { + name: "Composite", + className: "DeploymentConfiguration" + } + }, + currentDedicatedNodes: { + readOnly: true, + serializedName: "properties.currentDedicatedNodes", + type: { + name: "Number" + } + }, + currentLowPriorityNodes: { + readOnly: true, + serializedName: "properties.currentLowPriorityNodes", + type: { + name: "Number" + } + }, + scaleSettings: { + serializedName: "properties.scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + }, + autoScaleRun: { + readOnly: true, + serializedName: "properties.autoScaleRun", + type: { + name: "Composite", + className: "AutoScaleRun" + } + }, + interNodeCommunication: { + serializedName: "properties.interNodeCommunication", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + networkConfiguration: { + serializedName: "properties.networkConfiguration", + type: { + name: "Composite", + className: "NetworkConfiguration" + } + }, + maxTasksPerNode: { + serializedName: "properties.maxTasksPerNode", + type: { + name: "Number" + } + }, + taskSchedulingPolicy: { + serializedName: "properties.taskSchedulingPolicy", + type: { + name: "Composite", + className: "TaskSchedulingPolicy" + } + }, + userAccounts: { + serializedName: "properties.userAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserAccount" + } + } + } + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + }, + startTask: { + serializedName: "properties.startTask", + type: { + name: "Composite", + className: "StartTask" + } + }, + certificates: { + serializedName: "properties.certificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } + } + }, + applicationPackages: { + serializedName: "properties.applicationPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } + } + }, + applicationLicenses: { + serializedName: "properties.applicationLicenses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resizeOperationStatus: { + readOnly: true, + serializedName: "properties.resizeOperationStatus", + type: { + name: "Composite", + className: "ResizeOperationStatus" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const CheckNameAvailabilityParameters: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityParameters", + type: { + name: "Composite", + className: "CheckNameAvailabilityParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.Batch/batchAccounts', + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityResult: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityResult", + type: { + name: "Composite", + className: "CheckNameAvailabilityResult", + modelProperties: { + nameAvailable: { + readOnly: true, + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + readOnly: true, + serializedName: "reason", + type: { + name: "Enum", + allowedValues: [ + "Invalid", + "AlreadyExists" + ] + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const BatchAccountCreateHeaders: msRest.CompositeMapper = { + serializedName: "batchaccount-create-headers", + type: { + name: "Composite", + className: "BatchAccountCreateHeaders", + modelProperties: { + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchAccountDeleteHeaders: msRest.CompositeMapper = { + serializedName: "batchaccount-delete-headers", + type: { + name: "Composite", + className: "BatchAccountDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const CertificateCreateHeaders: msRest.CompositeMapper = { + serializedName: "certificate-create-headers", + type: { + name: "Composite", + className: "CertificateCreateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateUpdateHeaders: msRest.CompositeMapper = { + serializedName: "certificate-update-headers", + type: { + name: "Composite", + className: "CertificateUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateDeleteHeaders: msRest.CompositeMapper = { + serializedName: "certificate-delete-headers", + type: { + name: "Composite", + className: "CertificateDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const CertificateGetHeaders: msRest.CompositeMapper = { + serializedName: "certificate-get-headers", + type: { + name: "Composite", + className: "CertificateGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateCancelDeletionHeaders: msRest.CompositeMapper = { + serializedName: "certificate-canceldeletion-headers", + type: { + name: "Composite", + className: "CertificateCancelDeletionHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PoolCreateHeaders: msRest.CompositeMapper = { + serializedName: "pool-create-headers", + type: { + name: "Composite", + className: "PoolCreateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PoolUpdateHeaders: msRest.CompositeMapper = { + serializedName: "pool-update-headers", + type: { + name: "Composite", + className: "PoolUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PoolDeleteHeaders: msRest.CompositeMapper = { + serializedName: "pool-delete-headers", + type: { + name: "Composite", + className: "PoolDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const PoolGetHeaders: msRest.CompositeMapper = { + serializedName: "pool-get-headers", + type: { + name: "Composite", + className: "PoolGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PoolDisableAutoScaleHeaders: msRest.CompositeMapper = { + serializedName: "pool-disableautoscale-headers", + type: { + name: "Composite", + className: "PoolDisableAutoScaleHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PoolStopResizeHeaders: msRest.CompositeMapper = { + serializedName: "pool-stopresize-headers", + type: { + name: "Composite", + className: "PoolStopResizeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BatchAccountListResult: msRest.CompositeMapper = { + serializedName: "BatchAccountListResult", + type: { + name: "Composite", + className: "BatchAccountListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchAccount" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListApplicationPackagesResult: msRest.CompositeMapper = { + serializedName: "ListApplicationPackagesResult", + type: { + name: "Composite", + className: "ListApplicationPackagesResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListApplicationsResult: msRest.CompositeMapper = { + serializedName: "ListApplicationsResult", + type: { + name: "Composite", + className: "ListApplicationsResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Application" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListCertificatesResult: msRest.CompositeMapper = { + serializedName: "ListCertificatesResult", + type: { + name: "Composite", + className: "ListCertificatesResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListPoolsResult: msRest.CompositeMapper = { + serializedName: "ListPoolsResult", + type: { + name: "Composite", + className: "ListPoolsResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Pool" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/batch/arm-batch/lib/models/operationsMappers.ts b/sdk/batch/arm-batch/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..2edcc577920e --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/operationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + OperationListResult, + Operation, + OperationDisplay, + CloudError +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/models/parameters.ts b/sdk/batch/arm-batch/lib/models/parameters.ts new file mode 100644 index 000000000000..ca0a27c5f404 --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/parameters.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const accountName: msRest.OperationURLParameter = { + parameterPath: "accountName", + mapper: { + required: true, + serializedName: "accountName", + constraints: { + MaxLength: 24, + MinLength: 3, + Pattern: /^[-\w\._]+$/ + }, + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const applicationName: msRest.OperationURLParameter = { + parameterPath: "applicationName", + mapper: { + required: true, + serializedName: "applicationName", + constraints: { + MaxLength: 64, + MinLength: 1, + Pattern: /^[a-zA-Z0-9_-]+$/ + }, + type: { + name: "String" + } + } +}; +export const certificateName: msRest.OperationURLParameter = { + parameterPath: "certificateName", + mapper: { + required: true, + serializedName: "certificateName", + constraints: { + MaxLength: 45, + MinLength: 5, + Pattern: /^[\w]+-[\w]+$/ + }, + type: { + name: "String" + } + } +}; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const ifMatch: msRest.OperationParameter = { + parameterPath: [ + "options", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch: msRest.OperationParameter = { + parameterPath: [ + "options", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const locationName: msRest.OperationURLParameter = { + parameterPath: "locationName", + mapper: { + required: true, + serializedName: "locationName", + type: { + name: "String" + } + } +}; +export const maxresults: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "maxresults" + ], + mapper: { + serializedName: "maxresults", + type: { + name: "Number" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const poolName: msRest.OperationURLParameter = { + parameterPath: "poolName", + mapper: { + required: true, + serializedName: "poolName", + constraints: { + MaxLength: 64, + MinLength: 1, + Pattern: /^[a-zA-Z0-9_-]+$/ + }, + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const select: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const versionName: msRest.OperationURLParameter = { + parameterPath: "versionName", + mapper: { + required: true, + serializedName: "versionName", + constraints: { + MaxLength: 64, + MinLength: 1, + Pattern: /^[a-zA-Z0-9_-][a-zA-Z0-9_.-]*$/ + }, + type: { + name: "String" + } + } +}; diff --git a/sdk/batch/arm-batch/lib/models/poolOperationsMappers.ts b/sdk/batch/arm-batch/lib/models/poolOperationsMappers.ts new file mode 100644 index 000000000000..49afc6116e56 --- /dev/null +++ b/sdk/batch/arm-batch/lib/models/poolOperationsMappers.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ListPoolsResult, + Pool, + ProxyResource, + BaseResource, + DeploymentConfiguration, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + ContainerRegistry, + ScaleSettings, + FixedScaleSettings, + AutoScaleSettings, + AutoScaleRun, + AutoScaleRunError, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNatPool, + NetworkSecurityGroupRule, + TaskSchedulingPolicy, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + StartTask, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + TaskContainerSettings, + CertificateReference, + ApplicationPackageReference, + ResizeOperationStatus, + ResizeError, + CloudError, + PoolCreateHeaders, + PoolUpdateHeaders, + PoolDeleteHeaders, + PoolGetHeaders, + PoolDisableAutoScaleHeaders, + PoolStopResizeHeaders, + Application, + ApplicationPackage, + Resource, + Certificate, + DeleteCertificateError, + CertificateCreateOrUpdateParameters, + BatchAccount, + KeyVaultReference, + AutoStorageProperties, + AutoStorageBaseProperties, + VirtualMachineFamilyCoreQuota +} from "../models/mappers"; + diff --git a/sdk/batch/arm-batch/lib/operations/applicationOperations.ts b/sdk/batch/arm-batch/lib/operations/applicationOperations.ts new file mode 100644 index 000000000000..266b6fd533ce --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/applicationOperations.ts @@ -0,0 +1,402 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/applicationOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a ApplicationOperations. */ +export class ApplicationOperations { + private readonly client: BatchManagementClientContext; + + /** + * Create a ApplicationOperations. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Adds an application to the specified Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, applicationName: string, options?: Models.ApplicationCreateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, applicationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, applicationName: string, options: Models.ApplicationCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, applicationName: string, options?: Models.ApplicationCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Deletes an application. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets information about the specified application. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, applicationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, applicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, applicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates settings for the specified application. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param parameters The parameters for the request. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, applicationName: string, parameters: Models.Application, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param parameters The parameters for the request. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, applicationName: string, parameters: Models.Application, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param parameters The parameters for the request. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, applicationName: string, parameters: Models.Application, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, applicationName: string, parameters: Models.Application, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the applications in the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, accountName: string, options?: Models.ApplicationListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param callback The callback + */ + list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, accountName: string, options: Models.ApplicationListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, options?: Models.ApplicationListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the applications 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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.Application + }, + responses: { + 200: { + bodyMapper: Mappers.Application + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Application + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Application, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Application + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.maxresults, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListApplicationsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListApplicationsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/lib/operations/applicationPackageOperations.ts b/sdk/batch/arm-batch/lib/operations/applicationPackageOperations.ts new file mode 100644 index 000000000000..9ec0b70e3c1e --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/applicationPackageOperations.ts @@ -0,0 +1,429 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/applicationPackageOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a ApplicationPackageOperations. */ +export class ApplicationPackageOperations { + private readonly client: BatchManagementClientContext; + + /** + * Create a ApplicationPackageOperations. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Activates the specified application package. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param format The format of the application package binary file. + * @param [options] The optional parameters + * @returns Promise + */ + activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, format: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param format The format of the application package binary file. + * @param callback The callback + */ + activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, format: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param format The format of the application package binary file. + * @param options The optional parameters + * @param callback The callback + */ + activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, format: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, format: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + versionName, + format, + options + }, + activateOperationSpec, + callback) as Promise; + } + + /** + * Creates an application package record. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + versionName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Deletes an application package record and its associated binary file. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + versionName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets information about the specified application package. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param versionName The version of the application. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + versionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the application packages in the specified application. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, accountName: string, applicationName: string, options?: Models.ApplicationPackageListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param callback The callback + */ + list(resourceGroupName: string, accountName: string, applicationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param applicationName The name of the application. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, accountName: string, applicationName: string, options: Models.ApplicationPackageListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, applicationName: string, options?: Models.ApplicationPackageListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + applicationName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the application packages in the specified application. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const activateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.versionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + format: "format" + }, + mapper: { + ...Mappers.ActivateApplicationPackageParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApplicationPackage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.versionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.ApplicationPackage + }, + responses: { + 200: { + bodyMapper: Mappers.ApplicationPackage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.versionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.versionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationPackage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.applicationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.maxresults, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListApplicationPackagesResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListApplicationPackagesResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/lib/operations/batchAccountOperations.ts b/sdk/batch/arm-batch/lib/operations/batchAccountOperations.ts new file mode 100644 index 000000000000..ea91ec70b39e --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/batchAccountOperations.ts @@ -0,0 +1,683 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; +import * as Models from "../models"; +import * as Mappers from "../models/batchAccountOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a BatchAccountOperations. */ +export class BatchAccountOperations { + private readonly client: BatchManagementClientContext; + + /** + * Create a BatchAccountOperations. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated + * with this API and should instead be updated with the Update Batch Account API. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName A name for the Batch account which must be unique within the region. Batch + * account names must be between 3 and 24 characters in length and must use only numbers and + * lowercase letters. This name is used as part of the DNS name that is used to access the Batch + * service in the region in which the account is created. For example: + * http://accountname.region.batch.azure.com/. + * @param parameters Additional parameters for account creation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountCreateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates the properties of an existing Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param parameters Additional parameters for account update. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param parameters Additional parameters for account update. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param parameters Additional parameters for account update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets information about the specified Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the Batch accounts associated with the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the Batch accounts associated with the specified resource group. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Synchronizes access keys for the auto-storage account configured for the specified Batch + * account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param callback The callback + */ + synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + synchronizeAutoStorageKeysOperationSpec, + callback); + } + + /** + * Regenerates the specified account key for the Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param keyName The type of account key to regenerate. Possible values include: 'Primary', + * 'Secondary' + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param keyName The type of account key to regenerate. Possible values include: 'Primary', + * 'Secondary' + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param keyName The type of account key to regenerate. Possible values include: 'Primary', + * 'Secondary' + * @param options The optional parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + keyName, + options + }, + regenerateKeyOperationSpec, + callback) as Promise; + } + + /** + * This operation applies only to Batch accounts created with a poolAllocationMode of + * 'BatchService'. If the Batch account was created with a poolAllocationMode of + * 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure Active + * Directory instead. In this case, getting the keys will fail. + * @summary Gets the account keys for the specified Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + getKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param callback The callback + */ + getKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + getKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + getKeysOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated + * with this API and should instead be updated with the Update Batch Account API. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName A name for the Batch account which must be unique within the region. Batch + * account names must be between 3 and 24 characters in length and must use only numbers and + * lowercase letters. This name is used as part of the DNS name that is used to access the Batch + * service in the region in which the account is created. For example: + * http://accountname.region.batch.azure.com/. + * @param parameters Additional parameters for account creation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountCreateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + parameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes the specified Batch account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets information about the Batch accounts associated with the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the Batch accounts associated with the specified resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(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 + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BatchAccountUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchAccount + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchAccount + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const synchronizeAutoStorageKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const regenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + keyName: "keyName" + }, + mapper: { + ...Mappers.BatchAccountRegenerateKeyParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchAccountKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchAccountKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BatchAccountCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchAccount, + headersMapper: Mappers.BatchAccountCreateHeaders + }, + 202: { + headersMapper: Mappers.BatchAccountCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.BatchAccountDeleteHeaders + }, + 202: { + headersMapper: Mappers.BatchAccountDeleteHeaders + }, + 204: { + headersMapper: Mappers.BatchAccountDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/lib/operations/certificateOperations.ts b/sdk/batch/arm-batch/lib/operations/certificateOperations.ts new file mode 100644 index 000000000000..5b9198143766 --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/certificateOperations.ts @@ -0,0 +1,510 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; +import * as Models from "../models"; +import * as Mappers from "../models/certificateOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a CertificateOperations. */ +export class CertificateOperations { + private readonly client: BatchManagementClientContext; + + /** + * Create a CertificateOperations. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the certificates in the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.CertificateListByBatchAccountOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param callback The callback + */ + listByBatchAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + listByBatchAccount(resourceGroupName: string, accountName: string, options: Models.CertificateListByBatchAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.CertificateListByBatchAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByBatchAccountOperationSpec, + callback) as Promise; + } + + /** + * Creates a new certificate inside the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param parameters Additional parameters for certificate creation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateCreateOptionalParams): Promise { + return this.beginCreate(resourceGroupName,accountName,certificateName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates the properties of an existing certificate. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param parameters Certificate entity to update. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param parameters Certificate entity to update. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param parameters Certificate entity to update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options: Models.CertificateUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + certificateName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified certificate. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,certificateName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets information about the specified certificate. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, certificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + certificateName, + options + }, + getOperationSpec, + callback) as 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. + * @summary Cancels a failed deletion of a certificate from the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param [options] The optional parameters + * @returns Promise + */ + cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param callback The callback + */ + cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param options The optional parameters + * @param callback The callback + */ + cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + certificateName, + options + }, + cancelDeletionOperationSpec, + callback) as Promise; + } + + /** + * Creates a new certificate inside the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param parameters Additional parameters for certificate creation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateBeginCreateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + certificateName, + parameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes the specified certificate. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param certificateName The identifier for the certificate. This must be made up of algorithm and + * thumbprint separated by a dash, and must match the certificate data in the request. For example + * SHA1-a3d1c5. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + certificateName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all of the certificates in the specified account. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByBatchAccountNext(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 + */ + listByBatchAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByBatchAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByBatchAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.maxresults, + Parameters.select, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListCertificatesResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CertificateCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Certificate, + headersMapper: Mappers.CertificateUpdateHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Certificate, + headersMapper: Mappers.CertificateGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const cancelDeletionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Certificate, + headersMapper: Mappers.CertificateCancelDeletionHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CertificateCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Certificate, + headersMapper: Mappers.CertificateCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.CertificateDeleteHeaders + }, + 202: { + headersMapper: Mappers.CertificateDeleteHeaders + }, + 204: { + headersMapper: Mappers.CertificateDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByBatchAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListCertificatesResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/lib/operations/index.ts b/sdk/batch/arm-batch/lib/operations/index.ts new file mode 100644 index 000000000000..9af241e11a01 --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./batchAccountOperations"; +export * from "./applicationPackageOperations"; +export * from "./applicationOperations"; +export * from "./location"; +export * from "./operations"; +export * from "./certificateOperations"; +export * from "./poolOperations"; diff --git a/sdk/batch/arm-batch/lib/operations/location.ts b/sdk/batch/arm-batch/lib/operations/location.ts new file mode 100644 index 000000000000..6efd43a3f585 --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/location.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/locationMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a Location. */ +export class Location { + private readonly client: BatchManagementClientContext; + + /** + * Create a Location. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Gets the Batch service quotas for the specified subscription at the given location. + * @param locationName The region for which to retrieve Batch service quotas. + * @param [options] The optional parameters + * @returns Promise + */ + getQuotas(locationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The region for which to retrieve Batch service quotas. + * @param callback The callback + */ + getQuotas(locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The region for which to retrieve Batch service quotas. + * @param options The optional parameters + * @param callback The callback + */ + getQuotas(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getQuotas(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + options + }, + getQuotasOperationSpec, + callback) as Promise; + } + + /** + * Checks whether the Batch account name is available in the specified region. + * @param locationName The desired region for the name check. + * @param name The name to check for availability + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(locationName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The desired region for the name check. + * @param name The name to check for availability + * @param callback The callback + */ + checkNameAvailability(locationName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The desired region for the name check. + * @param name The name to check for availability + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(locationName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(locationName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + name, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getQuotasOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchLocationQuota + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + name: "name" + }, + mapper: { + ...Mappers.CheckNameAvailabilityParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameAvailabilityResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/lib/operations/operations.ts b/sdk/batch/arm-batch/lib/operations/operations.ts new file mode 100644 index 000000000000..b4067f9898f6 --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/operations.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: BatchManagementClientContext; + + /** + * Create a Operations. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Lists available operations for the Microsoft.Batch provider + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists available operations for the Microsoft.Batch provider + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Batch/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/lib/operations/poolOperations.ts b/sdk/batch/arm-batch/lib/operations/poolOperations.ts new file mode 100644 index 000000000000..02c071ab662a --- /dev/null +++ b/sdk/batch/arm-batch/lib/operations/poolOperations.ts @@ -0,0 +1,550 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; +import * as Models from "../models"; +import * as Mappers from "../models/poolOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchManagementClientContext } from "../batchManagementClientContext"; + +/** Class representing a PoolOperations. */ +export class PoolOperations { + private readonly client: BatchManagementClientContext; + + /** + * Create a PoolOperations. + * @param {BatchManagementClientContext} client Reference to the service client. + */ + constructor(client: BatchManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the pools in the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param [options] The optional parameters + * @returns Promise + */ + listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.PoolListByBatchAccountOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param callback The callback + */ + listByBatchAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param options The optional parameters + * @param callback The callback + */ + listByBatchAccount(resourceGroupName: string, accountName: string, options: Models.PoolListByBatchAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.PoolListByBatchAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByBatchAccountOperationSpec, + callback) as Promise; + } + + /** + * Creates a new pool inside the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param parameters Additional parameters for pool creation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolCreateOptionalParams): Promise { + return this.beginCreate(resourceGroupName,accountName,poolName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates the properties of an existing pool. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param parameters Pool properties that should be updated. Properties that are supplied will be + * updated, any property not supplied will be unchanged. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param parameters Pool properties that should be updated. Properties that are supplied will be + * updated, any property not supplied will be unchanged. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param parameters Pool properties that should be updated. Properties that are supplied will be + * updated, any property not supplied will be unchanged. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options: Models.PoolUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + poolName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified pool. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,poolName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets information about the specified pool. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + poolName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Disables automatic scaling for a pool. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param callback The callback + */ + disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + poolName, + options + }, + disableAutoScaleOperationSpec, + callback) as 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 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 resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param callback The callback + */ + stopResize(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param options The optional parameters + * @param callback The callback + */ + stopResize(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + poolName, + options + }, + stopResizeOperationSpec, + callback) as Promise; + } + + /** + * Creates a new pool inside the specified account. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param parameters Additional parameters for pool creation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolBeginCreateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + poolName, + parameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes the specified pool. + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param poolName The pool name. This must be unique within the account. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + poolName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * 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 + */ + listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByBatchAccountNext(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 + */ + listByBatchAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByBatchAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByBatchAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.maxresults, + Parameters.select, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListPoolsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Pool, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Pool, + headersMapper: Mappers.PoolUpdateHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Pool, + headersMapper: Mappers.PoolGetHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const disableAutoScaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Pool, + headersMapper: Mappers.PoolDisableAutoScaleHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopResizeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Pool, + headersMapper: Mappers.PoolStopResizeHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Pool, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Pool, + headersMapper: Mappers.PoolCreateHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.PoolDeleteHeaders + }, + 202: { + headersMapper: Mappers.PoolDeleteHeaders + }, + 204: { + headersMapper: Mappers.PoolDeleteHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByBatchAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListPoolsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/batch/arm-batch/package.json b/sdk/batch/arm-batch/package.json index b068c5511493..1687f3397712 100644 --- a/sdk/batch/arm-batch/package.json +++ b/sdk/batch/arm-batch/package.json @@ -4,8 +4,8 @@ "description": "BatchManagementClient Library with typescript type definitions for node.js and browser.", "version": "4.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/batch/arm-batch", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,7 +43,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", + "lib/**/*.ts", "rollup.config.js", "tsconfig.json" ], @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-batch.js.map'\" -o ./dist/arm-batch.min.js ./dist/arm-batch.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/sdk/batch/arm-batch/rollup.config.js b/sdk/batch/arm-batch/rollup.config.js index 75e829947f0f..4f56ed985df8 100644 --- a/sdk/batch/arm-batch/rollup.config.js +++ b/sdk/batch/arm-batch/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/batchManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/batchManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-batch.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/batch/arm-batch/tsconfig.json b/sdk/batch/arm-batch/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/batch/arm-batch/tsconfig.json +++ b/sdk/batch/arm-batch/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] } diff --git a/sdk/batch/batch/LICENSE.txt b/sdk/batch/batch/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/batch/batch/LICENSE.txt +++ b/sdk/batch/batch/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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 diff --git a/sdk/batch/batch/README.md b/sdk/batch/batch/README.md index d8abab4b3627..2461108676b3 100644 --- a/sdk/batch/batch/README.md +++ b/sdk/batch/batch/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for BatchServiceClient. ### How to Install -``` +```bash npm install @azure/batch ``` @@ -19,13 +19,13 @@ npm install @azure/batch ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -52,7 +52,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -104,6 +104,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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/sdk/batch/batch/README.png) diff --git a/sdk/batch/batch/lib/batchServiceClient.ts b/sdk/batch/batch/lib/batchServiceClient.ts new file mode 100644 index 000000000000..8e4fb1f453ad --- /dev/null +++ b/sdk/batch/batch/lib/batchServiceClient.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; +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; + + /** + * 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) { + 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); + } +} + +// Operation Specifications + +export { + BatchServiceClient, + BatchServiceClientContext, + Models as BatchServiceModels, + Mappers as BatchServiceMappers +}; +export * from "./operations"; diff --git a/sdk/batch/batch/lib/batchServiceClientContext.ts b/sdk/batch/batch/lib/batchServiceClientContext.ts new file mode 100644 index 000000000000..a6d87b8768e1 --- /dev/null +++ b/sdk/batch/batch/lib/batchServiceClientContext.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 = "6.0.0"; + +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 = '2018-12-01.8.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/lib/models/accountMappers.ts b/sdk/batch/batch/lib/models/accountMappers.ts new file mode 100644 index 000000000000..55b93adb8331 --- /dev/null +++ b/sdk/batch/batch/lib/models/accountMappers.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AccountListNodeAgentSkusResult, + NodeAgentSku, + ImageReference, + AccountListNodeAgentSkusHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + PoolNodeCountsListResult, + PoolNodeCounts, + NodeCounts, + AccountListPoolNodeCountsHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/applicationMappers.ts b/sdk/batch/batch/lib/models/applicationMappers.ts new file mode 100644 index 000000000000..cc21944cef8b --- /dev/null +++ b/sdk/batch/batch/lib/models/applicationMappers.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ApplicationListResult, + ApplicationSummary, + ApplicationListHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + ApplicationGetHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/certificateOperationsMappers.ts b/sdk/batch/batch/lib/models/certificateOperationsMappers.ts new file mode 100644 index 000000000000..58b6fcd76fc8 --- /dev/null +++ b/sdk/batch/batch/lib/models/certificateOperationsMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CertificateAddParameter, + CertificateAddHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + CertificateListResult, + Certificate, + DeleteCertificateError, + NameValuePair, + CertificateListHeaders, + CertificateCancelDeletionHeaders, + CertificateDeleteHeaders, + CertificateGetHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/computeNodeOperationsMappers.ts b/sdk/batch/batch/lib/models/computeNodeOperationsMappers.ts new file mode 100644 index 000000000000..f60a3722e121 --- /dev/null +++ b/sdk/batch/batch/lib/models/computeNodeOperationsMappers.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ComputeNodeUser, + ComputeNodeAddUserHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + ComputeNodeDeleteUserHeaders, + NodeUpdateUserParameter, + ComputeNodeUpdateUserHeaders, + ComputeNode, + TaskInformation, + TaskExecutionInformation, + TaskContainerExecutionInformation, + TaskFailureInformation, + NameValuePair, + StartTask, + TaskContainerSettings, + ContainerRegistry, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + StartTaskInformation, + CertificateReference, + ComputeNodeError, + ComputeNodeEndpointConfiguration, + InboundEndpoint, + NodeAgentInformation, + ComputeNodeGetHeaders, + NodeRebootParameter, + ComputeNodeRebootHeaders, + NodeReimageParameter, + ComputeNodeReimageHeaders, + NodeDisableSchedulingParameter, + ComputeNodeDisableSchedulingHeaders, + ComputeNodeEnableSchedulingHeaders, + ComputeNodeGetRemoteLoginSettingsResult, + ComputeNodeGetRemoteLoginSettingsHeaders, + ComputeNodeGetRemoteDesktopHeaders, + UploadBatchServiceLogsConfiguration, + UploadBatchServiceLogsResult, + ComputeNodeUploadBatchServiceLogsHeaders, + ComputeNodeListResult, + ComputeNodeListHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/fileMappers.ts b/sdk/batch/batch/lib/models/fileMappers.ts new file mode 100644 index 000000000000..502d491e2d6f --- /dev/null +++ b/sdk/batch/batch/lib/models/fileMappers.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + FileDeleteFromTaskHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + FileGetFromTaskHeaders, + FileGetPropertiesFromTaskHeaders, + FileDeleteFromComputeNodeHeaders, + FileGetFromComputeNodeHeaders, + FileGetPropertiesFromComputeNodeHeaders, + NodeFileListResult, + NodeFile, + FileProperties, + FileListFromTaskHeaders, + FileListFromComputeNodeHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/index.ts b/sdk/batch/batch/lib/models/index.ts new file mode 100644 index 000000000000..9ac756822f3b --- /dev/null +++ b/sdk/batch/batch/lib/models/index.ts @@ -0,0 +1,16016 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * 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"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing PoolUsageMetrics. + * @summary Usage metrics for a pool across an aggregation interval. + * + */ +export interface PoolUsageMetrics { + /** + * @member {string} poolId The ID of the pool whose metrics are aggregated in + * this entry. + */ + poolId: string; + /** + * @member {Date} startTime The start time of the aggregation interval + * covered by this entry. + */ + startTime: Date; + /** + * @member {Date} endTime The end time of the aggregation interval covered by + * this entry. + */ + endTime: Date; + /** + * @member {string} vmSize 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). + */ + vmSize: string; + /** + * @member {number} totalCoreHours The total core hours used in the pool + * during this aggregation interval. + */ + totalCoreHours: number; +} + +/** + * @interface + * An interface representing ImageReference. + * @summary A reference to an Azure Virtual Machines Marketplace image or a + * custom Azure Virtual Machine image. To get the list of all Azure Marketplace + * image references verified by Azure Batch, see the 'List node agent SKUs' + * operation. + * + */ +export interface ImageReference { + /** + * @member {string} [publisher] The publisher of the Azure Virtual Machines + * Marketplace image. For example, Canonical or MicrosoftWindowsServer. + */ + publisher?: string; + /** + * @member {string} [offer] The offer type of the Azure Virtual Machines + * Marketplace image. For example, UbuntuServer or WindowsServer. + */ + offer?: string; + /** + * @member {string} [sku] The SKU of the Azure Virtual Machines Marketplace + * image. For example, 14.04.0-LTS or 2012-R2-Datacenter. + */ + sku?: string; + /** + * @member {string} [version] 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; + /** + * @member {string} [virtualMachineImageId] The ARM resource identifier of + * the virtual machine image. Computes nodes of the pool will be created + * using this custom image. This is of the form + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. + * This property is mutually exclusive with other ImageReference properties. + * The virtual machine image must be in the same region and subscription as + * the Azure Batch account. For more details, see + * https://docs.microsoft.com/azure/batch/batch-custom-images. + */ + virtualMachineImageId?: string; +} + +/** + * @interface + * An interface representing NodeAgentSku. + * @summary A node agent SKU supported by the Batch service. + * + * The Batch node agent is a program that runs on each node in the pool, and + * provides the command-and-control interface between the node and the Batch + * service. There are different implementations of the node agent, known as + * SKUs, for different operating systems. + * + */ +export interface NodeAgentSku { + /** + * @member {string} [id] The ID of the node agent SKU. + */ + id?: string; + /** + * @member {ImageReference[]} [verifiedImageReferences] The list of Azure + * Marketplace images verified to be compatible with this node agent SKU. + * This collection is not exhaustive (the node agent may be compatible with + * other images). + */ + verifiedImageReferences?: ImageReference[]; + /** + * @member {OSType} [osType] The type of operating system (e.g. Windows or + * Linux) compatible with the node agent SKU. Possible values include: + * 'linux', 'windows' + */ + osType?: OSType; +} + +/** + * @interface + * An interface representing AuthenticationTokenSettings. + * @summary The settings for an authentication token that the task can use to + * perform Batch service operations. + * + */ +export interface AuthenticationTokenSettings { + /** + * @member {AccessScope[]} [access] The Batch resources to which the token + * grants access. The authentication token grants access to a limited set of + * Batch service operations. Currently the only supported value for the + * access property is 'job', which grants access to all operations related to + * the job which contains the task. + */ + access?: AccessScope[]; +} + +/** + * @interface + * An interface representing UsageStatistics. + * @summary Statistics related to pool usage information. + * + */ +export interface UsageStatistics { + /** + * @member {Date} startTime The start time of the time range covered by the + * statistics. + */ + startTime: Date; + /** + * @member {Date} lastUpdateTime The time at which the statistics were last + * updated. All statistics are limited to the range between startTime and + * lastUpdateTime. + */ + lastUpdateTime: Date; + /** + * @member {string} dedicatedCoreTime The aggregated wall-clock time of the + * dedicated compute node cores being part of the pool. + */ + dedicatedCoreTime: string; +} + +/** + * @interface + * An interface representing ResourceStatistics. + * @summary Statistics related to resource consumption by compute nodes in a + * pool. + * + */ +export interface ResourceStatistics { + /** + * @member {Date} startTime The start time of the time range covered by the + * statistics. + */ + startTime: Date; + /** + * @member {Date} lastUpdateTime The time at which the statistics were last + * updated. All statistics are limited to the range between startTime and + * lastUpdateTime. + */ + lastUpdateTime: Date; + /** + * @member {number} avgCPUPercentage The average CPU usage across all nodes + * in the pool (percentage per node). + */ + avgCPUPercentage: number; + /** + * @member {number} avgMemoryGiB The average memory usage in GiB across all + * nodes in the pool. + */ + avgMemoryGiB: number; + /** + * @member {number} peakMemoryGiB The peak memory usage in GiB across all + * nodes in the pool. + */ + peakMemoryGiB: number; + /** + * @member {number} avgDiskGiB The average used disk space in GiB across all + * nodes in the pool. + */ + avgDiskGiB: number; + /** + * @member {number} peakDiskGiB The peak used disk space in GiB across all + * nodes in the pool. + */ + peakDiskGiB: number; + /** + * @member {number} diskReadIOps The total number of disk read operations + * across all nodes in the pool. + */ + diskReadIOps: number; + /** + * @member {number} diskWriteIOps The total number of disk write operations + * across all nodes in the pool. + */ + diskWriteIOps: number; + /** + * @member {number} diskReadGiB The total amount of data in GiB of disk reads + * across all nodes in the pool. + */ + diskReadGiB: number; + /** + * @member {number} diskWriteGiB The total amount of data in GiB of disk + * writes across all nodes in the pool. + */ + diskWriteGiB: number; + /** + * @member {number} networkReadGiB The total amount of data in GiB of network + * reads across all nodes in the pool. + */ + networkReadGiB: number; + /** + * @member {number} networkWriteGiB The total amount of data in GiB of + * network writes across all nodes in the pool. + */ + networkWriteGiB: number; +} + +/** + * @interface + * An interface representing PoolStatistics. + * @summary Contains utilization and resource usage statistics for the lifetime + * of a pool. + * + */ +export interface PoolStatistics { + /** + * @member {string} url The URL for the statistics. + */ + url: string; + /** + * @member {Date} startTime The start time of the time range covered by the + * statistics. + */ + startTime: Date; + /** + * @member {Date} lastUpdateTime The time at which the statistics were last + * updated. All statistics are limited to the range between startTime and + * lastUpdateTime. + */ + lastUpdateTime: Date; + /** + * @member {UsageStatistics} [usageStats] Statistics related to pool usage, + * such as the amount of core-time used. + */ + usageStats?: UsageStatistics; + /** + * @member {ResourceStatistics} [resourceStats] Statistics related to + * resource consumption by compute nodes in the pool. + */ + resourceStats?: ResourceStatistics; +} + +/** + * @interface + * An interface representing JobStatistics. + * @summary Resource usage statistics for a job. + * + */ +export interface JobStatistics { + /** + * @member {string} url The URL of the statistics. + */ + url: string; + /** + * @member {Date} startTime The start time of the time range covered by the + * statistics. + */ + startTime: Date; + /** + * @member {Date} lastUpdateTime The time at which the statistics were last + * updated. All statistics are limited to the range between startTime and + * lastUpdateTime. + */ + lastUpdateTime: Date; + /** + * @member {string} userCPUTime The total user mode CPU time (summed across + * all cores and all compute nodes) consumed by all tasks in the job. + */ + userCPUTime: string; + /** + * @member {string} kernelCPUTime The total kernel mode CPU time (summed + * across all cores and all compute nodes) consumed by all tasks in the job. + */ + kernelCPUTime: string; + /** + * @member {string} wallClockTime 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. + */ + wallClockTime: string; + /** + * @member {number} readIOps The total number of disk read operations made by + * all tasks in the job. + */ + readIOps: number; + /** + * @member {number} writeIOps The total number of disk write operations made + * by all tasks in the job. + */ + writeIOps: number; + /** + * @member {number} readIOGiB The total amount of data in GiB read from disk + * by all tasks in the job. + */ + readIOGiB: number; + /** + * @member {number} writeIOGiB The total amount of data in GiB written to + * disk by all tasks in the job. + */ + writeIOGiB: number; + /** + * @member {number} numSucceededTasks 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. + */ + numSucceededTasks: number; + /** + * @member {number} numFailedTasks 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. + */ + numFailedTasks: number; + /** + * @member {number} numTaskRetries The total number of retries on all the + * tasks in the job during the given time range. + */ + numTaskRetries: number; + /** + * @member {string} waitTime 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. + */ + waitTime: string; +} + +/** + * @interface + * An interface representing NameValuePair. + * @summary Represents a name-value pair. + * + */ +export interface NameValuePair { + /** + * @member {string} [name] The name in the name-value pair. + */ + name?: string; + /** + * @member {string} [value] The value in the name-value pair. + */ + value?: string; +} + +/** + * @interface + * An interface representing DeleteCertificateError. + * @summary An error encountered by the Batch service when deleting a + * certificate. + * + */ +export interface DeleteCertificateError { + /** + * @member {string} [code] An identifier for the certificate deletion error. + * Codes are invariant and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {string} [message] A message describing the certificate deletion + * error, intended to be suitable for display in a user interface. + */ + message?: string; + /** + * @member {NameValuePair[]} [values] A list of additional error details + * related to the certificate deletion error. This list includes details such + * as the active pools and nodes referencing this certificate. However, if a + * large number of resources reference the certificate, the list contains + * only about the first hundred. + */ + values?: NameValuePair[]; +} + +/** + * @interface + * An interface representing Certificate. + * A certificate that can be installed on compute nodes and can be used to + * authenticate operations on the machine. + * + */ +export interface Certificate { + /** + * @member {string} [thumbprint] The X.509 thumbprint of the certificate. + * This is a sequence of up to 40 hex digits. + */ + thumbprint?: string; + /** + * @member {string} [thumbprintAlgorithm] The algorithm used to derive the + * thumbprint. + */ + thumbprintAlgorithm?: string; + /** + * @member {string} [url] The URL of the certificate. + */ + url?: string; + /** + * @member {CertificateState} [state] The current state of the certificate. + * Possible values include: 'active', 'deleting', 'deleteFailed' + */ + state?: CertificateState; + /** + * @member {Date} [stateTransitionTime] The time at which the certificate + * entered its current state. + */ + stateTransitionTime?: Date; + /** + * @member {CertificateState} [previousState] 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' + */ + previousState?: CertificateState; + /** + * @member {Date} [previousStateTransitionTime] The time at which the + * certificate entered its previous state. This property is not set if the + * certificate is in its initial Active state. + */ + previousStateTransitionTime?: Date; + /** + * @member {string} [publicData] The public part of the certificate as a + * base-64 encoded .cer file. + */ + publicData?: string; + /** + * @member {DeleteCertificateError} [deleteCertificateError] 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. + */ + deleteCertificateError?: DeleteCertificateError; +} + +/** + * @interface + * An interface representing ApplicationPackageReference. + * @summary A reference to an application package to be deployed to compute + * nodes. + * + */ +export interface ApplicationPackageReference { + /** + * @member {string} applicationId The ID of the application to deploy. + */ + applicationId: string; + /** + * @member {string} [version] 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; +} + +/** + * @interface + * An interface representing ApplicationSummary. + * @summary Contains information about an application in an Azure Batch + * account. + * + */ +export interface ApplicationSummary { + /** + * @member {string} id A string that uniquely identifies the application + * within the account. + */ + id: string; + /** + * @member {string} displayName The display name for the application. + */ + displayName: string; + /** + * @member {string[]} versions The list of available versions of the + * application. + */ + versions: string[]; +} + +/** + * @interface + * 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 { + /** + * @member {string} thumbprint 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; + /** + * @member {string} thumbprintAlgorithm The algorithm used to derive the + * thumbprint. This must be sha1. + */ + thumbprintAlgorithm: string; + /** + * @member {string} data The base64-encoded contents of the certificate. The + * maximum size is 10KB. + */ + data: string; + /** + * @member {CertificateFormat} [certificateFormat] The format of the + * certificate data. Possible values include: 'pfx', 'cer' + */ + certificateFormat?: CertificateFormat; + /** + * @member {string} [password] The password to access the certificate's + * private key. This is required if the certificate format is pfx. It should + * be omitted if the certificate format is cer. + */ + password?: string; +} + +/** + * @interface + * An interface representing FileProperties. + * @summary The properties of a file on a compute node. + * + */ +export interface FileProperties { + /** + * @member {Date} [creationTime] The file creation time. The creation time is + * not returned for files on Linux compute nodes. + */ + creationTime?: Date; + /** + * @member {Date} lastModified The time at which the file was last modified. + */ + lastModified: Date; + /** + * @member {number} contentLength The length of the file. + */ + contentLength: number; + /** + * @member {string} [contentType] The content type of the file. + */ + contentType?: string; + /** + * @member {string} [fileMode] The file mode attribute in octal format. The + * file mode is returned only for files on Linux compute nodes. + */ + fileMode?: string; +} + +/** + * @interface + * An interface representing NodeFile. + * @summary Information about a file or directory on a compute node. + * + */ +export interface NodeFile { + /** + * @member {string} [name] The file path. + */ + name?: string; + /** + * @member {string} [url] The URL of the file. + */ + url?: string; + /** + * @member {boolean} [isDirectory] Whether the object represents a directory. + */ + isDirectory?: boolean; + /** + * @member {FileProperties} [properties] The file properties. + */ + properties?: FileProperties; +} + +/** + * @interface + * An interface representing Schedule. + * @summary The schedule according to which jobs will be created + * + */ +export interface Schedule { + /** + * @member {Date} [doNotRunUntil] The earliest time at which any job may be + * created under this job schedule. If you do not specify a doNotRunUntil + * time, the schedule becomes ready to create jobs immediately. + */ + doNotRunUntil?: Date; + /** + * @member {Date} [doNotRunAfter] 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. + */ + doNotRunAfter?: Date; + /** + * @member {string} [startWindow] 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). + */ + startWindow?: string; + /** + * @member {string} [recurrenceInterval] 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). + */ + recurrenceInterval?: string; +} + +/** + * @interface + * An interface representing JobConstraints. + * @summary The execution constraints for a job. + * + */ +export interface JobConstraints { + /** + * @member {string} [maxWallClockTime] 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. + */ + maxWallClockTime?: string; + /** + * @member {number} [maxTaskRetryCount] 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). + */ + maxTaskRetryCount?: number; +} + +/** + * @interface + * An interface representing JobNetworkConfiguration. + * @summary The network configuration for the job. + * + */ +export interface JobNetworkConfiguration { + /** + * @member {string} subnetId The ARM resource identifier of the virtual + * network subnet which nodes running tasks from the job will join for the + * duration of the task. This is only supported for jobs running on + * VirtualMachineConfiguration pools. 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 nodes which will run tasks from the + * job. For more details, see + * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. + */ + subnetId: string; +} + +/** + * @interface + * An interface representing ContainerRegistry. + * @summary A private container registry. + * + */ +export interface ContainerRegistry { + /** + * @member {string} [registryServer] The registry URL. If omitted, the + * default is "docker.io". + */ + registryServer?: string; + /** + * @member {string} userName The user name to log into the registry server. + */ + userName: string; + /** + * @member {string} password The password to log into the registry server. + */ + password: string; +} + +/** + * @interface + * An interface representing TaskContainerSettings. + * @summary The container settings for a task. + * + */ +export interface TaskContainerSettings { + /** + * @member {string} [containerRunOptions] 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; + /** + * @member {string} imageName 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; + /** + * @member {ContainerRegistry} [registry] The private registry which contains + * the container image. This setting can be omitted if was already provided + * at pool creation. + */ + registry?: ContainerRegistry; +} + +/** + * @interface + * An interface representing ResourceFile. + * @summary A single file or multiple files to be downloaded to a compute node. + * + */ +export interface ResourceFile { + /** + * @member {string} [autoStorageContainerName] 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. + */ + autoStorageContainerName?: string; + /** + * @member {string} [storageContainerUrl] 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 using + * anonymous access; that is, the Batch service does not present any + * credentials when downloading blobs from the container. There are two 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, or set the ACL for the container to allow public access. + */ + storageContainerUrl?: string; + /** + * @member {string} [httpUrl] 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 using anonymous access; that is, + * the Batch service does not present any credentials when downloading the + * blob. There are two ways to get such a URL for a blob in Azure storage: + * include a Shared Access Signature (SAS) granting read permissions on the + * blob, or set the ACL for the blob or its container to allow public access. + */ + httpUrl?: string; + /** + * @member {string} [blobPrefix] 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. + */ + blobPrefix?: string; + /** + * @member {string} [filePath] 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 '..'). + */ + filePath?: string; + /** + * @member {string} [fileMode] 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 node. If this property is not + * specified for a Linux node, then a default value of 0770 is applied to the + * file. + */ + fileMode?: string; +} + +/** + * @interface + * An interface representing EnvironmentSetting. + * @summary An environment variable to be set on a task process. + * + */ +export interface EnvironmentSetting { + /** + * @member {string} name The name of the environment variable. + */ + name: string; + /** + * @member {string} [value] The value of the environment variable. + */ + value?: string; +} + +/** + * @interface + * An interface representing ExitOptions. + * @summary Specifies how the Batch service responds to a particular exit + * condition. + * + */ +export interface ExitOptions { + /** + * @member {JobAction} [jobAction] 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; + /** + * @member {DependencyAction} [dependencyAction] An action that the Batch + * service performs on tasks that depend on this task. The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If + * the job's usesTaskDependencies property is set to false, then specifying + * the dependencyAction 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: 'satisfy', 'block' + */ + dependencyAction?: DependencyAction; +} + +/** + * @interface + * An interface representing ExitCodeMapping. + * @summary How the Batch service should respond if a task exits with a + * particular exit code. + * + */ +export interface ExitCodeMapping { + /** + * @member {number} code A process exit code. + */ + code: number; + /** + * @member {ExitOptions} exitOptions How the Batch service should respond if + * the task exits with this exit code. + */ + exitOptions: ExitOptions; +} + +/** + * @interface + * 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 { + /** + * @member {number} start The first exit code in the range. + */ + start: number; + /** + * @member {number} end The last exit code in the range. + */ + end: number; + /** + * @member {ExitOptions} exitOptions How the Batch service should respond if + * the task exits with an exit code in the range start to end (inclusive). + */ + exitOptions: ExitOptions; +} + +/** + * @interface + * An interface representing ExitConditions. + * @summary Specifies how the Batch service should respond when the task + * completes. + * + */ +export interface ExitConditions { + /** + * @member {ExitCodeMapping[]} [exitCodes] A list of individual task exit + * codes and how the Batch service should respond to them. + */ + exitCodes?: ExitCodeMapping[]; + /** + * @member {ExitCodeRangeMapping[]} [exitCodeRanges] A list of task exit code + * ranges and how the Batch service should respond to them. + */ + exitCodeRanges?: ExitCodeRangeMapping[]; + /** + * @member {ExitOptions} [preProcessingError] How the Batch service should + * respond if the task fails to start due to an error. + */ + preProcessingError?: ExitOptions; + /** + * @member {ExitOptions} [fileUploadError] 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; + /** + * @member {ExitOptions} [default] 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; +} + +/** + * @interface + * An interface representing AutoUserSpecification. + * @summary Specifies the parameters for the auto user that runs a task on the + * Batch service. + * + */ +export interface AutoUserSpecification { + /** + * @member {AutoUserScope} [scope] The scope for the auto user. The default + * value is task. Possible values include: 'task', 'pool' + */ + scope?: AutoUserScope; + /** + * @member {ElevationLevel} [elevationLevel] The elevation level of the auto + * user. The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' + */ + elevationLevel?: ElevationLevel; +} + +/** + * @interface + * An interface representing UserIdentity. + * @summary The definition of the user identity under which the task is run. + * + * Specify either the userName or autoUser property, but not both. + * + */ +export interface UserIdentity { + /** + * @member {string} [userName] 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; + /** + * @member {AutoUserSpecification} [autoUser] 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; +} + +/** + * @interface + * An interface representing LinuxUserConfiguration. + * @summary Properties used to create a user account on a Linux node. + * + */ +export interface LinuxUserConfiguration { + /** + * @member {number} [uid] 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; + /** + * @member {number} [gid] 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; + /** + * @member {string} [sshPrivateKey] 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 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 nodes (no + * modification of the user's .ssh directory is done). + */ + sshPrivateKey?: string; +} + +/** + * @interface + * An interface representing WindowsUserConfiguration. + * @summary Properties used to create a user account on a Windows node. + * + */ +export interface WindowsUserConfiguration { + /** + * @member {LoginMode} [loginMode] 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; +} + +/** + * @interface + * An interface representing UserAccount. + * @summary Properties used to create a user used to execute tasks on an Azure + * Batch node. + * + */ +export interface UserAccount { + /** + * @member {string} name The name of the user account. + */ + name: string; + /** + * @member {string} password The password for the user account. + */ + password: string; + /** + * @member {ElevationLevel} [elevationLevel] The elevation level of the user + * account. The default value is nonAdmin. Possible values include: + * 'nonAdmin', 'admin' + */ + elevationLevel?: ElevationLevel; + /** + * @member {LinuxUserConfiguration} [linuxUserConfiguration] 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; + /** + * @member {WindowsUserConfiguration} [windowsUserConfiguration] 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; +} + +/** + * @interface + * An interface representing TaskConstraints. + * @summary Execution constraints to apply to a task. + * + */ +export interface TaskConstraints { + /** + * @member {string} [maxWallClockTime] 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; + /** + * @member {string} [retentionTime] 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; + /** + * @member {number} [maxTaskRetryCount] 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; +} + +/** + * @interface + * An interface representing OutputFileBlobContainerDestination. + * @summary Specifies a file upload destination within an Azure blob storage + * container. + * + */ +export interface OutputFileBlobContainerDestination { + /** + * @member {string} [path] 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; + /** + * @member {string} containerUrl The URL of the container within Azure Blob + * Storage to which to upload the file(s). The URL must include a Shared + * Access Signature (SAS) granting write permissions to the container. + */ + containerUrl: string; +} + +/** + * @interface + * An interface representing OutputFileDestination. + * @summary The destination to which a file should be uploaded. + * + */ +export interface OutputFileDestination { + /** + * @member {OutputFileBlobContainerDestination} [container] A location in + * Azure blob storage to which files are uploaded. + */ + container?: OutputFileBlobContainerDestination; +} + +/** + * @interface + * An interface representing OutputFileUploadOptions. + * @summary Details about an output file upload operation, including under what + * conditions to perform the upload. + * + */ +export interface OutputFileUploadOptions { + /** + * @member {OutputFileUploadCondition} uploadCondition 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; +} + +/** + * @interface + * An interface representing OutputFile. + * @summary A specification for uploading files from an Azure Batch node to + * another location after the Batch service has finished executing the task + * process. + * + */ +export interface OutputFile { + /** + * @member {string} filePattern 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; + /** + * @member {OutputFileDestination} destination The destination for the output + * file(s). + */ + destination: OutputFileDestination; + /** + * @member {OutputFileUploadOptions} uploadOptions Additional options for the + * upload operation, including under what conditions to perform the upload. + */ + uploadOptions: OutputFileUploadOptions; +} + +/** + * @interface + * An interface representing JobManagerTask. + * @summary Specifies details of a Job Manager task. + * + * 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 + * compute nodes where Job Manager tasks are running for as long as possible + * (that is, nodes running 'normal' tasks are removed before 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 + * 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 compute node. Examples of + * recovery operations include (but are not limited to) when an unhealthy + * compute 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 { + /** + * @member {string} id 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; + /** + * @member {string} [displayName] 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; + /** + * @member {string} commandLine 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; + /** + * @member {TaskContainerSettings} [containerSettings] 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. + */ + containerSettings?: TaskContainerSettings; + /** + * @member {ResourceFile[]} [resourceFiles] 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[]; + /** + * @member {OutputFile[]} [outputFiles] 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[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the Job Manager task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {TaskConstraints} [constraints] Constraints that apply to the Job + * Manager task. + */ + constraints?: TaskConstraints; + /** + * @member {boolean} [killJobOnCompletion] 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; + /** + * @member {UserIdentity} [userIdentity] 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; + /** + * @member {boolean} [runExclusive] 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 compute 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 node's + * concurrent task limit, so this is only relevant if the node allows + * multiple concurrent tasks. The default value is true. + */ + runExclusive?: boolean; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] 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 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[]; + /** + * @member {AuthenticationTokenSettings} [authenticationTokenSettings] 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; + /** + * @member {boolean} [allowLowPriorityNode] Whether the Job Manager task may + * run on a low-priority compute node. The default value is true. + */ + allowLowPriorityNode?: boolean; +} + +/** + * @interface + * An interface representing JobPreparationTask. + * @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 compute 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 + * compute node. (AZ_BATCH_NODE_ROOT_DIR\shared), or starting a local service + * on the compute 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 + * compute node. The node remains ineligible to run tasks of this job until it + * is reimaged. The node remains active and can be used for other jobs. The Job + * Preparation task can run multiple times on the same compute node. Therefore, + * you should write the Job Preparation task to handle re-execution. If the + * compute node is rebooted, the Job Preparation task is run again on the 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 compute 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 compute node. Examples of + * recovery operations include (but are not limited to) when an unhealthy + * compute 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 { + /** + * @member {string} [id] 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). + */ + id?: string; + /** + * @member {string} commandLine 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). + */ + commandLine: string; + /** + * @member {TaskContainerSettings} [containerSettings] 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. + */ + containerSettings?: TaskContainerSettings; + /** + * @member {ResourceFile[]} [resourceFiles] 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[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the Job Preparation task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {TaskConstraints} [constraints] Constraints that apply to the Job + * Preparation task. + */ + constraints?: TaskConstraints; + /** + * @member {boolean} [waitForSuccess] 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 compute 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 compute node. The compute 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 node. The default value is true. + */ + waitForSuccess?: boolean; + /** + * @member {UserIdentity} [userIdentity] 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 nodes, or a + * non-administrative user unique to the pool on Linux nodes. + */ + userIdentity?: UserIdentity; + /** + * @member {boolean} [rerunOnNodeRebootAfterSuccess] 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. + */ + rerunOnNodeRebootAfterSuccess?: boolean; +} + +/** + * @interface + * An interface representing JobReleaseTask. + * @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 compute node where tasks of the + * job have run and the Job Preparation task ran and completed. If you reimage + * a compute node after it has run the Job Preparation task, and the job ends + * without any further tasks of the job running on that compute node (and hence + * the Job Preparation task does not re-run), then the Job Release task does + * not run on that node. If a compute 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 + * maxTasksPerNode limit specified on the pool. + * + */ +export interface JobReleaseTask { + /** + * @member {string} [id] 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). + */ + id?: string; + /** + * @member {string} commandLine 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). + */ + commandLine: string; + /** + * @member {TaskContainerSettings} [containerSettings] 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. + */ + containerSettings?: TaskContainerSettings; + /** + * @member {ResourceFile[]} [resourceFiles] 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. + */ + resourceFiles?: ResourceFile[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the Job Release task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {string} [maxWallClockTime] 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; + /** + * @member {string} [retentionTime] 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. + */ + retentionTime?: string; + /** + * @member {UserIdentity} [userIdentity] The user identity under which the + * Job Release task runs. If omitted, the task runs as a non-administrative + * user unique to the task. + */ + userIdentity?: UserIdentity; +} + +/** + * @interface + * An interface representing TaskSchedulingPolicy. + * @summary Specifies how tasks should be distributed across compute nodes. + * + */ +export interface TaskSchedulingPolicy { + /** + * @member {ComputeNodeFillType} nodeFillType How tasks are distributed + * across compute nodes in a pool. Possible values include: 'spread', 'pack' + */ + nodeFillType: ComputeNodeFillType; +} + +/** + * @interface + * An interface representing StartTask. + * @summary A task which is run when a compute node joins a pool in the Azure + * Batch service, or when the compute node is rebooted or reimaged. + * + * Batch will retry tasks when a recovery operation is triggered on a compute + * node. Examples of recovery operations include (but are not limited to) when + * an unhealthy compute 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 StartTask { + /** + * @member {string} commandLine The command line of the start 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; + /** + * @member {TaskContainerSettings} [containerSettings] The settings for the + * container under which the start 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. + */ + containerSettings?: TaskContainerSettings; + /** + * @member {ResourceFile[]} [resourceFiles] 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. + */ + resourceFiles?: ResourceFile[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the start task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {UserIdentity} [userIdentity] The user identity under which the + * start task runs. If omitted, the task runs as a non-administrative user + * unique to the task. + */ + userIdentity?: UserIdentity; + /** + * @member {number} [maxTaskRetryCount] 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; + /** + * @member {boolean} [waitForSuccess] Whether the Batch service should wait + * for the start task to complete successfully (that is, to exit with exit + * code 0) before scheduling any tasks on the compute node. If true and the + * start task fails on a compute node, the Batch service retries the start + * task up to its maximum retry count (maxTaskRetryCount). If the task has + * still not completed successfully after all retries, then the Batch service + * marks the compute node unusable, and will not schedule tasks to it. This + * condition can be detected via the node state and failure info details. If + * false, the Batch service will not wait for the start task to complete. In + * this case, other tasks can start executing on the compute node while the + * start task is still running; and even if the start task fails, new tasks + * will continue to be scheduled on the node. The default is false. + */ + waitForSuccess?: boolean; +} + +/** + * @interface + * An interface representing CertificateReference. + * @summary A reference to a certificate to be installed on compute nodes in a + * pool. + * + */ +export interface CertificateReference { + /** + * @member {string} thumbprint The thumbprint of the certificate. + */ + thumbprint: string; + /** + * @member {string} thumbprintAlgorithm The algorithm with which the + * thumbprint is associated. This must be sha1. + */ + thumbprintAlgorithm: string; + /** + * @member {CertificateStoreLocation} [storeLocation] 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 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; + /** + * @member {string} [storeName] 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 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; + /** + * @member {CertificateVisibility[]} [visibility] 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[]; +} + +/** + * @interface + * An interface representing MetadataItem. + * @summary A name-value pair associated with a Batch service resource. + * + * The Batch service does not assign any meaning to this metadata; it is solely + * for the use of user code. + * + */ +export interface MetadataItem { + /** + * @member {string} name The name of the metadata item. + */ + name: string; + /** + * @member {string} value The value of the metadata item. + */ + value: string; +} + +/** + * @interface + * An interface representing CloudServiceConfiguration. + * @summary The configuration for nodes in a pool based on the Azure Cloud + * Services platform. + * + */ +export interface CloudServiceConfiguration { + /** + * @member {string} osFamily 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; + /** + * @member {string} [osVersion] 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; +} + +/** + * @interface + * An interface representing WindowsConfiguration. + * @summary Windows operating system settings to apply to the virtual machine. + * + */ +export interface WindowsConfiguration { + /** + * @member {boolean} [enableAutomaticUpdates] Whether automatic updates are + * enabled on the virtual machine. If omitted, the default value is true. + */ + enableAutomaticUpdates?: boolean; +} + +/** + * @interface + * An interface representing DataDisk. + * @summary Settings which will be used by the data disks associated to compute + * nodes in the pool. + * + */ +export interface DataDisk { + /** + * @member {number} lun The logical unit number. The lun is used to uniquely + * identify each data disk. If attaching multiple disks, each should have a + * distinct lun. + */ + lun: number; + /** + * @member {CachingType} [caching] 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' + */ + caching?: CachingType; + /** + * @member {number} diskSizeGB The initial disk size in gigabytes. + */ + diskSizeGB: number; + /** + * @member {StorageAccountType} [storageAccountType] The storage account type + * to be used for the data disk. If omitted, the default is "standard_lrs". + * Possible values include: 'StandardLRS', 'PremiumLRS' + */ + storageAccountType?: StorageAccountType; +} + +/** + * @interface + * An interface representing ContainerConfiguration. + * @summary The configuration for container-enabled pools. + * + */ +export interface ContainerConfiguration { + /** + * @member {string[]} [containerImageNames] The collection of container image + * names. This is the full image reference, as would be specified to "docker + * pull". An image will be sourced from the default Docker registry unless + * the image is fully qualified with an alternative registry. + */ + containerImageNames?: string[]; + /** + * @member {ContainerRegistry[]} [containerRegistries] Additional private + * registries from which containers can be pulled. If any images must be + * downloaded from a private registry which requires credentials, then those + * credentials must be provided here. + */ + containerRegistries?: ContainerRegistry[]; +} + +/** + * @interface + * An interface representing VirtualMachineConfiguration. + * @summary The configuration for compute nodes in a pool based on the Azure + * Virtual Machines infrastructure. + * + */ +export interface VirtualMachineConfiguration { + /** + * @member {ImageReference} imageReference A reference to the Azure Virtual + * Machines Marketplace image or the custom Virtual Machine image to use. + */ + imageReference: ImageReference; + /** + * @member {string} nodeAgentSKUId The SKU of the Batch node agent to be + * provisioned on compute nodes in the pool. The Batch node agent is a + * program that runs on each node in the pool, and provides the + * command-and-control interface between the node and the Batch service. + * There are different implementations of the node agent, known as SKUs, for + * different operating systems. You must specify a node agent SKU which + * matches the selected image reference. To get the list of supported node + * agent SKUs along with their list of verified image references, see the + * 'List supported node agent SKUs' operation. + */ + nodeAgentSKUId: string; + /** + * @member {WindowsConfiguration} [windowsConfiguration] 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; + /** + * @member {DataDisk[]} [dataDisks] 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 node gets its own disk (the disk is not a + * file share). Existing disks cannot be attached, each attached disk is + * empty. When the 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[]; + /** + * @member {string} [licenseType] 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 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; + /** + * @member {ContainerConfiguration} [containerConfiguration] The container + * configuration for the pool. If specified, setup is performed on each 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; +} + +/** + * @interface + * An interface representing NetworkSecurityGroupRule. + * @summary A network security group rule to apply to an inbound endpoint. + * + */ +export interface NetworkSecurityGroupRule { + /** + * @member {number} priority 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 3500. If any reserved or duplicate values are + * provided the request fails with HTTP status code 400. + */ + priority: number; + /** + * @member {NetworkSecurityGroupRuleAccess} access The action that should be + * taken for a specified IP address, subnet range or tag. Possible values + * include: 'allow', 'deny' + */ + access: NetworkSecurityGroupRuleAccess; + /** + * @member {string} sourceAddressPrefix 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; +} + +/** + * @interface + * 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. + * + */ +export interface InboundNATPool { + /** + * @member {string} name The name of the endpoint. The name must be unique + * within a Batch pool, can contain letters, numbers, underscores, periods, + * and hyphens. Names must start with a letter or number, must end with a + * letter, number, or underscore, and cannot exceed 77 characters. If any + * invalid values are provided the request fails with HTTP status code 400. + */ + name: string; + /** + * @member {InboundEndpointProtocol} protocol The protocol of the endpoint. + * Possible values include: 'tcp', 'udp' + */ + protocol: InboundEndpointProtocol; + /** + * @member {number} backendPort The port number on the compute node. This + * must be unique within a Batch pool. Acceptable values are between 1 and + * 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any + * reserved values are provided the request fails with HTTP status code 400. + */ + backendPort: number; + /** + * @member {number} frontendPortRangeStart 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. + */ + frontendPortRangeStart: number; + /** + * @member {number} frontendPortRangeEnd 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. + */ + frontendPortRangeEnd: number; + /** + * @member {NetworkSecurityGroupRule[]} [networkSecurityGroupRules] 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. + */ + networkSecurityGroupRules?: NetworkSecurityGroupRule[]; +} + +/** + * @interface + * An interface representing PoolEndpointConfiguration. + * @summary The endpoint configuration for a pool. + * + */ +export interface PoolEndpointConfiguration { + /** + * @member {InboundNATPool[]} inboundNATPools 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. + */ + inboundNATPools: InboundNATPool[]; +} + +/** + * @interface + * An interface representing NetworkConfiguration. + * The network configuration for a pool. + * + */ +export interface NetworkConfiguration { + /** + * @member {string} [subnetId] 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 nodes in the pool. If the subnet + * doesn't have enough free IP addresses, the pool will partially allocate + * compute nodes, and a resize error will occur. 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. For more details, see: + * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration + */ + subnetId?: string; + /** + * @member {DynamicVNetAssignmentScope} [dynamicVNetAssignmentScope] The + * scope of dynamic vnet assignment. Possible values include: 'none', 'job' + */ + dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope; + /** + * @member {PoolEndpointConfiguration} [endpointConfiguration] 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; +} + +/** + * @interface + * An interface representing PoolSpecification. + * @summary Specification for creating a new pool. + * + */ +export interface PoolSpecification { + /** + * @member {string} [displayName] 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; + /** + * @member {string} vmSize 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; + /** + * @member {CloudServiceConfiguration} [cloudServiceConfiguration] 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; + /** + * @member {VirtualMachineConfiguration} [virtualMachineConfiguration] 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; + /** + * @member {number} [maxTasksPerNode] The maximum number of tasks that can + * run concurrently on a single compute node in the pool. The default value + * is 1. The maximum value of this setting depends on the size of the compute + * nodes in the pool (the vmSize setting). + */ + maxTasksPerNode?: number; + /** + * @member {TaskSchedulingPolicy} [taskSchedulingPolicy] How tasks are + * distributed across compute nodes in a pool. + */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** + * @member {string} [resizeTimeout] 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; + /** + * @member {number} [targetDedicatedNodes] 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; + /** + * @member {number} [targetLowPriorityNodes] 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; + /** + * @member {boolean} [enableAutoScale] Whether the pool size should + * automatically adjust over time. If false, at least one of + * targetDedicateNodes 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; + /** + * @member {string} [autoScaleFormula] 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; + /** + * @member {string} [autoScaleEvaluationInterval] 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; + /** + * @member {boolean} [enableInterNodeCommunication] Whether the pool permits + * direct communication between nodes. Enabling inter-node communication + * limits the maximum size of the pool due to deployment restrictions on the + * nodes of the pool. This may result in the pool not reaching its desired + * size. The default value is false. + */ + enableInterNodeCommunication?: boolean; + /** + * @member {NetworkConfiguration} [networkConfiguration] The network + * configuration for the pool. + */ + networkConfiguration?: NetworkConfiguration; + /** + * @member {StartTask} [startTask] A task to run on each compute node as it + * joins the pool. The task runs when the node is added to the pool or when + * the node is restarted. + */ + startTask?: StartTask; + /** + * @member {CertificateReference[]} [certificateReferences] A list of + * certificates to be installed on each compute node in the pool. For Windows + * compute 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[]; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] The + * list of application packages to be installed on each compute node in the + * pool. + */ + applicationPackageReferences?: ApplicationPackageReference[]; + /** + * @member {string[]} [applicationLicenses] 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[]; + /** + * @member {UserAccount[]} [userAccounts] The list of user accounts to be + * created on each node in the pool. + */ + userAccounts?: UserAccount[]; + /** + * @member {MetadataItem[]} [metadata] 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[]; +} + +/** + * @interface + * 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 { + /** + * @member {string} [autoPoolIdPrefix] 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; + /** + * @member {PoolLifetimeOption} poolLifetimeOption 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; + /** + * @member {boolean} [keepAlive] 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; + /** + * @member {PoolSpecification} [pool] The pool specification for the auto + * pool. + */ + pool?: PoolSpecification; +} + +/** + * @interface + * An interface representing PoolInformation. + * @summary Specifies how a job should be assigned to a pool. + * + */ +export interface PoolInformation { + /** + * @member {string} [poolId] 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; + /** + * @member {AutoPoolSpecification} [autoPoolSpecification] 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; +} + +/** + * @interface + * An interface representing JobSpecification. + * @summary Specifies details of the jobs to be created on a schedule. + * + */ +export interface JobSpecification { + /** + * @member {number} [priority] 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; + /** + * @member {string} [displayName] 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; + /** + * @member {boolean} [usesTaskDependencies] Whether tasks in the job can + * define dependencies on each other. The default is false. + */ + usesTaskDependencies?: boolean; + /** + * @member {OnAllTasksComplete} [onAllTasksComplete] 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; + /** + * @member {OnTaskFailure} [onTaskFailure] 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; + /** + * @member {JobNetworkConfiguration} [networkConfiguration] The network + * configuration for the job. + */ + networkConfiguration?: JobNetworkConfiguration; + /** + * @member {JobConstraints} [constraints] The execution constraints for jobs + * created under this schedule. + */ + constraints?: JobConstraints; + /** + * @member {JobManagerTask} [jobManagerTask] 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; + /** + * @member {JobPreparationTask} [jobPreparationTask] 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 compute node + * before starting any tasks of that job on that compute node. + */ + jobPreparationTask?: JobPreparationTask; + /** + * @member {JobReleaseTask} [jobReleaseTask] The Job Release task for jobs + * created under this schedule. 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 compute nodes that have run + * the Job Preparation task. + */ + jobReleaseTask?: JobReleaseTask; + /** + * @member {EnvironmentSetting[]} [commonEnvironmentSettings] 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[]; + /** + * @member {PoolInformation} poolInfo The pool on which the Batch service + * runs the tasks of jobs created under this schedule. + */ + poolInfo: PoolInformation; + /** + * @member {MetadataItem[]} [metadata] 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[]; +} + +/** + * @interface + * An interface representing RecentJob. + * @summary Information about the most recent job to run under the job + * schedule. + * + */ +export interface RecentJob { + /** + * @member {string} [id] The ID of the job. + */ + id?: string; + /** + * @member {string} [url] The URL of the job. + */ + url?: string; +} + +/** + * @interface + * An interface representing JobScheduleExecutionInformation. + * @summary Contains information about jobs that have been and will be run + * under a job schedule. + * + */ +export interface JobScheduleExecutionInformation { + /** + * @member {Date} [nextRunTime] 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. + */ + nextRunTime?: Date; + /** + * @member {RecentJob} [recentJob] 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. + */ + recentJob?: RecentJob; + /** + * @member {Date} [endTime] The time at which the schedule ended. This + * property is set only if the job schedule is in the completed state. + */ + endTime?: Date; +} + +/** + * @interface + * An interface representing JobScheduleStatistics. + * @summary Resource usage statistics for a job schedule. + * + */ +export interface JobScheduleStatistics { + /** + * @member {string} url The URL of the statistics. + */ + url: string; + /** + * @member {Date} startTime The start time of the time range covered by the + * statistics. + */ + startTime: Date; + /** + * @member {Date} lastUpdateTime The time at which the statistics were last + * updated. All statistics are limited to the range between startTime and + * lastUpdateTime. + */ + lastUpdateTime: Date; + /** + * @member {string} userCPUTime 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; + /** + * @member {string} kernelCPUTime 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; + /** + * @member {string} wallClockTime 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. + */ + wallClockTime: string; + /** + * @member {number} readIOps The total number of disk read operations made by + * all tasks in all jobs created under the schedule. + */ + readIOps: number; + /** + * @member {number} writeIOps The total number of disk write operations made + * by all tasks in all jobs created under the schedule. + */ + writeIOps: number; + /** + * @member {number} readIOGiB The total gibibytes read from disk by all tasks + * in all jobs created under the schedule. + */ + readIOGiB: number; + /** + * @member {number} writeIOGiB The total gibibytes written to disk by all + * tasks in all jobs created under the schedule. + */ + writeIOGiB: number; + /** + * @member {number} numSucceededTasks 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; + /** + * @member {number} numFailedTasks 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; + /** + * @member {number} numTaskRetries The total number of retries during the + * given time range on all tasks in all jobs created under the schedule. + */ + numTaskRetries: number; + /** + * @member {string} waitTime 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. + */ + waitTime: string; +} + +/** + * @interface + * 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 { + /** + * @member {string} [id] A string that uniquely identifies the schedule + * within the account. + */ + id?: string; + /** + * @member {string} [displayName] The display name for the schedule. + */ + displayName?: string; + /** + * @member {string} [url] The URL of the job schedule. + */ + url?: string; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] 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; + /** + * @member {Date} [creationTime] The creation time of the job schedule. + */ + creationTime?: Date; + /** + * @member {JobScheduleState} [state] The current state of the job schedule. + * Possible values include: 'active', 'completed', 'disabled', 'terminating', + * 'deleting' + */ + state?: JobScheduleState; + /** + * @member {Date} [stateTransitionTime] The time at which the job schedule + * entered the current state. + */ + stateTransitionTime?: Date; + /** + * @member {JobScheduleState} [previousState] 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; + /** + * @member {Date} [previousStateTransitionTime] 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; + /** + * @member {Schedule} [schedule] The schedule according to which jobs will be + * created. + */ + schedule?: Schedule; + /** + * @member {JobSpecification} [jobSpecification] The details of the jobs to + * be created on this schedule. + */ + jobSpecification?: JobSpecification; + /** + * @member {JobScheduleExecutionInformation} [executionInfo] Information + * about jobs that have been and will be run under this schedule. + */ + executionInfo?: JobScheduleExecutionInformation; + /** + * @member {MetadataItem[]} [metadata] 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. + */ + metadata?: MetadataItem[]; + /** + * @member {JobScheduleStatistics} [stats] 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; +} + +/** + * @interface + * 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. + * + */ +export interface JobScheduleAddParameter { + /** + * @member {string} id A string that uniquely identifies the schedule within + * the account. The ID can contain any combination of alphanumeric characters + * including hyphens and underscores, and cannot contain more than 64 + * characters. The ID is case-preserving and case-insensitive (that is, you + * may not have two IDs within an account that differ only by case). + */ + id: string; + /** + * @member {string} [displayName] The display name for the schedule. The + * display name need not be unique and can contain any Unicode characters up + * to a maximum length of 1024. + */ + displayName?: string; + /** + * @member {Schedule} schedule The schedule according to which jobs will be + * created. + */ + schedule: Schedule; + /** + * @member {JobSpecification} jobSpecification The details of the jobs to be + * created on this schedule. + */ + jobSpecification: JobSpecification; + /** + * @member {MetadataItem[]} [metadata] 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. + */ + metadata?: MetadataItem[]; +} + +/** + * @interface + * An interface representing JobSchedulingError. + * @summary An error encountered by the Batch service when scheduling a job. + * + */ +export interface JobSchedulingError { + /** + * @member {ErrorCategory} category The category of the job scheduling error. + * Possible values include: 'userError', 'serverError' + */ + category: ErrorCategory; + /** + * @member {string} [code] An identifier for the job scheduling error. Codes + * are invariant and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {string} [message] A message describing the job scheduling error, + * intended to be suitable for display in a user interface. + */ + message?: string; + /** + * @member {NameValuePair[]} [details] A list of additional error details + * related to the scheduling error. + */ + details?: NameValuePair[]; +} + +/** + * @interface + * An interface representing JobExecutionInformation. + * @summary Contains information about the execution of a job in the Azure + * Batch service. + * + */ +export interface JobExecutionInformation { + /** + * @member {Date} startTime The start time of the job. This is the time at + * which the job was created. + */ + startTime: Date; + /** + * @member {Date} [endTime] The completion time of the job. This property is + * set only if the job is in the completed state. + */ + endTime?: Date; + /** + * @member {string} [poolId] 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; + /** + * @member {JobSchedulingError} [schedulingError] 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; + /** + * @member {string} [terminateReason] 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; +} + +/** + * @interface + * An interface representing CloudJob. + * @summary An Azure Batch job. + * + */ +export interface CloudJob { + /** + * @member {string} [id] 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). + */ + id?: string; + /** + * @member {string} [displayName] The display name for the job. + */ + displayName?: string; + /** + * @member {boolean} [usesTaskDependencies] Whether tasks in the job can + * define dependencies on each other. The default is false. + */ + usesTaskDependencies?: boolean; + /** + * @member {string} [url] The URL of the job. + */ + url?: string; + /** + * @member {string} [eTag] 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. + */ + eTag?: string; + /** + * @member {Date} [lastModified] 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. + */ + lastModified?: Date; + /** + * @member {Date} [creationTime] The creation time of the job. + */ + creationTime?: Date; + /** + * @member {JobState} [state] The current state of the job. Possible values + * include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', + * 'completed', 'deleting' + */ + state?: JobState; + /** + * @member {Date} [stateTransitionTime] The time at which the job entered its + * current state. + */ + stateTransitionTime?: Date; + /** + * @member {JobState} [previousState] 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' + */ + previousState?: JobState; + /** + * @member {Date} [previousStateTransitionTime] The time at which the job + * entered its previous state. This property is not set if the job is in its + * initial Active state. + */ + previousStateTransitionTime?: Date; + /** + * @member {number} [priority] 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?: number; + /** + * @member {JobConstraints} [constraints] The execution constraints for the + * job. + */ + constraints?: JobConstraints; + /** + * @member {JobManagerTask} [jobManagerTask] Details of a Job Manager task to + * be launched when the job is started. + */ + jobManagerTask?: JobManagerTask; + /** + * @member {JobPreparationTask} [jobPreparationTask] The Job Preparation + * task. The Job Preparation task is a special task run on each node before + * any other task of the job. + */ + jobPreparationTask?: JobPreparationTask; + /** + * @member {JobReleaseTask} [jobReleaseTask] The Job Release task. The Job + * Release task is a special task run at the end of the job on each node that + * has run any other task of the job. + */ + jobReleaseTask?: JobReleaseTask; + /** + * @member {EnvironmentSetting[]} [commonEnvironmentSettings] 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. + */ + commonEnvironmentSettings?: EnvironmentSetting[]; + /** + * @member {PoolInformation} [poolInfo] The pool settings associated with the + * job. + */ + poolInfo?: PoolInformation; + /** + * @member {OnAllTasksComplete} [onAllTasksComplete] 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' + */ + onAllTasksComplete?: OnAllTasksComplete; + /** + * @member {OnTaskFailure} [onTaskFailure] 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' + */ + onTaskFailure?: OnTaskFailure; + /** + * @member {JobNetworkConfiguration} [networkConfiguration] The network + * configuration for the job. + */ + networkConfiguration?: JobNetworkConfiguration; + /** + * @member {MetadataItem[]} [metadata] A list of name-value pairs associated + * with the job as metadata. The Batch service does not assign any meaning to + * metadata; it is solely for the use of user code. + */ + metadata?: MetadataItem[]; + /** + * @member {JobExecutionInformation} [executionInfo] The execution + * information for the job. + */ + executionInfo?: JobExecutionInformation; + /** + * @member {JobStatistics} [stats] 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. + */ + stats?: JobStatistics; +} + +/** + * @interface + * An interface representing JobAddParameter. + * @summary An Azure Batch job to add. + * + */ +export interface JobAddParameter { + /** + * @member {string} id A string that uniquely identifies the job within the + * account. The ID can contain any combination of alphanumeric characters + * including hyphens and underscores, and cannot contain more than 64 + * characters. The ID is case-preserving and case-insensitive (that is, you + * may not have two IDs within an account that differ only by case). + */ + id: string; + /** + * @member {string} [displayName] 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. + */ + displayName?: string; + /** + * @member {number} [priority] 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?: number; + /** + * @member {JobConstraints} [constraints] The execution constraints for the + * job. + */ + constraints?: JobConstraints; + /** + * @member {JobManagerTask} [jobManagerTask] 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. + */ + jobManagerTask?: JobManagerTask; + /** + * @member {JobPreparationTask} [jobPreparationTask] The Job Preparation + * task. If a job has a Job Preparation task, the Batch service will run the + * Job Preparation task on a compute node before starting any tasks of that + * job on that compute node. + */ + jobPreparationTask?: JobPreparationTask; + /** + * @member {JobReleaseTask} [jobReleaseTask] 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 + * compute 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; + /** + * @member {EnvironmentSetting[]} [commonEnvironmentSettings] 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. + */ + commonEnvironmentSettings?: EnvironmentSetting[]; + /** + * @member {PoolInformation} poolInfo The pool on which the Batch service + * runs the job's tasks. + */ + poolInfo: PoolInformation; + /** + * @member {OnAllTasksComplete} [onAllTasksComplete] 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' + */ + onAllTasksComplete?: OnAllTasksComplete; + /** + * @member {OnTaskFailure} [onTaskFailure] 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' + */ + onTaskFailure?: OnTaskFailure; + /** + * @member {MetadataItem[]} [metadata] A list of name-value pairs associated + * with the job as metadata. The Batch service does not assign any meaning to + * metadata; it is solely for the use of user code. + */ + metadata?: MetadataItem[]; + /** + * @member {boolean} [usesTaskDependencies] Whether tasks in the job can + * define dependencies on each other. The default is false. + */ + usesTaskDependencies?: boolean; + /** + * @member {JobNetworkConfiguration} [networkConfiguration] The network + * configuration for the job. + */ + networkConfiguration?: JobNetworkConfiguration; +} + +/** + * @interface + * An interface representing TaskContainerExecutionInformation. + * @summary Contains information about the container which a task is executing. + * + */ +export interface TaskContainerExecutionInformation { + /** + * @member {string} [containerId] The ID of the container. + */ + containerId?: string; + /** + * @member {string} [state] 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; + /** + * @member {string} [error] 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; +} + +/** + * @interface + * An interface representing TaskFailureInformation. + * @summary Information about a task failure. + * + */ +export interface TaskFailureInformation { + /** + * @member {ErrorCategory} category The category of the task error. Possible + * values include: 'userError', 'serverError' + */ + category: ErrorCategory; + /** + * @member {string} [code] An identifier for the task error. Codes are + * invariant and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {string} [message] A message describing the task error, intended + * to be suitable for display in a user interface. + */ + message?: string; + /** + * @member {NameValuePair[]} [details] A list of additional details related + * to the error. + */ + details?: NameValuePair[]; +} + +/** + * @interface + * An interface representing JobPreparationTaskExecutionInformation. + * @summary Contains information about the execution of a Job Preparation task + * on a compute node. + * + */ +export interface JobPreparationTaskExecutionInformation { + /** + * @member {Date} startTime 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. + */ + startTime: Date; + /** + * @member {Date} [endTime] The time at which the Job Preparation task + * completed. This property is set only if the task is in the Completed + * state. + */ + endTime?: Date; + /** + * @member {JobPreparationTaskState} state The current state of the Job + * Preparation task on the compute node. Possible values include: 'running', + * 'completed' + */ + state: JobPreparationTaskState; + /** + * @member {string} [taskRootDirectory] 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; + /** + * @member {string} [taskRootDirectoryUrl] The URL to the root directory of + * the Job Preparation task on the compute node. + */ + taskRootDirectoryUrl?: string; + /** + * @member {number} [exitCode] 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. + */ + exitCode?: number; + /** + * @member {TaskContainerExecutionInformation} [containerInfo] 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; + /** + * @member {TaskFailureInformation} [failureInfo] 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; + /** + * @member {number} retryCount 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. + */ + retryCount: number; + /** + * @member {Date} [lastRetryTime] The most recent time at which a retry of + * the Job Preparation task started running. This property is set only if the + * task was retried (i.e. retryCount is nonzero). If present, this is + * typically the same as startTime, but may be different if the task has been + * restarted for reasons other than retry; for example, if the compute node + * was rebooted during a retry, then the startTime is updated but the + * lastRetryTime is not. + */ + lastRetryTime?: Date; + /** + * @member {TaskExecutionResult} [result] 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; +} + +/** + * @interface + * An interface representing JobReleaseTaskExecutionInformation. + * @summary Contains information about the execution of a Job Release task on a + * compute node. + * + */ +export interface JobReleaseTaskExecutionInformation { + /** + * @member {Date} startTime 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. + */ + startTime: Date; + /** + * @member {Date} [endTime] The time at which the Job Release task completed. + * This property is set only if the task is in the Completed state. + */ + endTime?: Date; + /** + * @member {JobReleaseTaskState} state The current state of the Job Release + * task on the compute node. Possible values include: 'running', 'completed' + */ + state: JobReleaseTaskState; + /** + * @member {string} [taskRootDirectory] 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; + /** + * @member {string} [taskRootDirectoryUrl] The URL to the root directory of + * the Job Release task on the compute node. + */ + taskRootDirectoryUrl?: string; + /** + * @member {number} [exitCode] 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. + */ + exitCode?: number; + /** + * @member {TaskContainerExecutionInformation} [containerInfo] 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; + /** + * @member {TaskFailureInformation} [failureInfo] 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; + /** + * @member {TaskExecutionResult} [result] 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; +} + +/** + * @interface + * An interface representing JobPreparationAndReleaseTaskExecutionInformation. + * @summary The status of the Job Preparation and Job Release tasks on a + * compute node. + * + */ +export interface JobPreparationAndReleaseTaskExecutionInformation { + /** + * @member {string} [poolId] The ID of the pool containing the compute node + * to which this entry refers. + */ + poolId?: string; + /** + * @member {string} [nodeId] The ID of the compute node to which this entry + * refers. + */ + nodeId?: string; + /** + * @member {string} [nodeUrl] The URL of the compute node to which this entry + * refers. + */ + nodeUrl?: string; + /** + * @member {JobPreparationTaskExecutionInformation} + * [jobPreparationTaskExecutionInfo] Information about the execution status + * of the Job Preparation task on this compute node. + */ + jobPreparationTaskExecutionInfo?: JobPreparationTaskExecutionInformation; + /** + * @member {JobReleaseTaskExecutionInformation} [jobReleaseTaskExecutionInfo] + * 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 node. + */ + jobReleaseTaskExecutionInfo?: JobReleaseTaskExecutionInformation; +} + +/** + * @interface + * An interface representing TaskCounts. + * @summary The task counts for a job. + * + */ +export interface TaskCounts { + /** + * @member {number} active The number of tasks in the active state. + */ + active: number; + /** + * @member {number} running The number of tasks in the running or preparing + * state. + */ + running: number; + /** + * @member {number} completed The number of tasks in the completed state. + */ + completed: number; + /** + * @member {number} succeeded The number of tasks which succeeded. A task + * succeeds if its result (found in the executionInfo property) is 'success'. + */ + succeeded: number; + /** + * @member {number} failed The number of tasks which failed. A task fails if + * its result (found in the executionInfo property) is 'failure'. + */ + failed: number; +} + +/** + * @interface + * An interface representing AutoScaleRunError. + * @summary An error that occurred when executing or evaluating a pool + * autoscale formula. + * + */ +export interface AutoScaleRunError { + /** + * @member {string} [code] An identifier for the autoscale error. Codes are + * invariant and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {string} [message] A message describing the autoscale error, + * intended to be suitable for display in a user interface. + */ + message?: string; + /** + * @member {NameValuePair[]} [values] A list of additional error details + * related to the autoscale error. + */ + values?: NameValuePair[]; +} + +/** + * @interface + * An interface representing AutoScaleRun. + * @summary The results and errors from an execution of a pool autoscale + * formula. + * + */ +export interface AutoScaleRun { + /** + * @member {Date} timestamp The time at which the autoscale formula was last + * evaluated. + */ + timestamp: Date; + /** + * @member {string} [results] 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. + */ + results?: string; + /** + * @member {AutoScaleRunError} [error] Details of the error encountered + * evaluating the autoscale formula on the pool, if the evaluation was + * unsuccessful. + */ + error?: AutoScaleRunError; +} + +/** + * @interface + * An interface representing ResizeError. + * @summary An error that occurred when resizing a pool. + * + */ +export interface ResizeError { + /** + * @member {string} [code] An identifier for the pool resize error. Codes are + * invariant and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {string} [message] A message describing the pool resize error, + * intended to be suitable for display in a user interface. + */ + message?: string; + /** + * @member {NameValuePair[]} [values] A list of additional error details + * related to the pool resize error. + */ + values?: NameValuePair[]; +} + +/** + * @interface + * An interface representing CloudPool. + * @summary A pool in the Azure Batch service. + * + */ +export interface CloudPool { + /** + * @member {string} [id] 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; + /** + * @member {string} [displayName] 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; + /** + * @member {string} [url] The URL of the pool. + */ + url?: string; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] 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; + /** + * @member {Date} [creationTime] The creation time of the pool. + */ + creationTime?: Date; + /** + * @member {PoolState} [state] The current state of the pool. Possible values + * include: 'active', 'deleting' + */ + state?: PoolState; + /** + * @member {Date} [stateTransitionTime] The time at which the pool entered + * its current state. + */ + stateTransitionTime?: Date; + /** + * @member {AllocationState} [allocationState] Whether the pool is resizing. + * Possible values include: 'steady', 'resizing', 'stopping' + */ + allocationState?: AllocationState; + /** + * @member {Date} [allocationStateTransitionTime] The time at which the pool + * entered its current allocation state. + */ + allocationStateTransitionTime?: Date; + /** + * @member {string} [vmSize] 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; + /** + * @member {CloudServiceConfiguration} [cloudServiceConfiguration] 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; + /** + * @member {VirtualMachineConfiguration} [virtualMachineConfiguration] The + * virtual machine configuration for the pool. This property and + * cloudServiceConfiguration are mutually exclusive and one of the properties + * must be specified. + */ + virtualMachineConfiguration?: VirtualMachineConfiguration; + /** + * @member {string} [resizeTimeout] 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; + /** + * @member {ResizeError[]} [resizeErrors] 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[]; + /** + * @member {number} [currentDedicatedNodes] The number of dedicated compute + * nodes currently in the pool. + */ + currentDedicatedNodes?: number; + /** + * @member {number} [currentLowPriorityNodes] 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; + /** + * @member {number} [targetDedicatedNodes] The desired number of dedicated + * compute nodes in the pool. + */ + targetDedicatedNodes?: number; + /** + * @member {number} [targetLowPriorityNodes] The desired number of + * low-priority compute nodes in the pool. + */ + targetLowPriorityNodes?: number; + /** + * @member {boolean} [enableAutoScale] Whether the pool size should + * automatically adjust over time. If false, at least one of + * targetDedicateNodes 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; + /** + * @member {string} [autoScaleFormula] 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; + /** + * @member {string} [autoScaleEvaluationInterval] 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; + /** + * @member {AutoScaleRun} [autoScaleRun] 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; + /** + * @member {boolean} [enableInterNodeCommunication] Whether the pool permits + * direct communication between nodes. This imposes restrictions on which + * nodes can be assigned to the pool. Specifying this value can reduce the + * chance of the requested number of nodes to be allocated in the pool. + */ + enableInterNodeCommunication?: boolean; + /** + * @member {NetworkConfiguration} [networkConfiguration] The network + * configuration for the pool. + */ + networkConfiguration?: NetworkConfiguration; + /** + * @member {StartTask} [startTask] A task specified to run on each compute + * node as it joins the pool. + */ + startTask?: StartTask; + /** + * @member {CertificateReference[]} [certificateReferences] The list of + * certificates to be installed on each compute node in the pool. For Windows + * compute 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[]; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] The + * list of application packages to be installed on each compute node in the + * pool. + */ + applicationPackageReferences?: ApplicationPackageReference[]; + /** + * @member {string[]} [applicationLicenses] 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[]; + /** + * @member {number} [maxTasksPerNode] The maximum number of tasks that can + * run concurrently on a single compute node in the pool. + */ + maxTasksPerNode?: number; + /** + * @member {TaskSchedulingPolicy} [taskSchedulingPolicy] How tasks are + * distributed across compute nodes in a pool. + */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** + * @member {UserAccount[]} [userAccounts] The list of user accounts to be + * created on each node in the pool. + */ + userAccounts?: UserAccount[]; + /** + * @member {MetadataItem[]} [metadata] A list of name-value pairs associated + * with the pool as metadata. + */ + metadata?: MetadataItem[]; + /** + * @member {PoolStatistics} [stats] 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; +} + +/** + * @interface + * An interface representing PoolAddParameter. + * @summary A pool in the Azure Batch service to add. + * + */ +export interface PoolAddParameter { + /** + * @member {string} id 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; + /** + * @member {string} [displayName] 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; + /** + * @member {string} vmSize 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; + /** + * @member {CloudServiceConfiguration} [cloudServiceConfiguration] 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; + /** + * @member {VirtualMachineConfiguration} [virtualMachineConfiguration] The + * virtual machine configuration for the pool. This property and + * cloudServiceConfiguration are mutually exclusive and one of the properties + * must be specified. + */ + virtualMachineConfiguration?: VirtualMachineConfiguration; + /** + * @member {string} [resizeTimeout] 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; + /** + * @member {number} [targetDedicatedNodes] 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; + /** + * @member {number} [targetLowPriorityNodes] 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; + /** + * @member {boolean} [enableAutoScale] Whether the pool size should + * automatically adjust over time. If false, at least one of + * targetDedicateNodes 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; + /** + * @member {string} [autoScaleFormula] 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/). + */ + autoScaleFormula?: string; + /** + * @member {string} [autoScaleEvaluationInterval] 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). + */ + autoScaleEvaluationInterval?: string; + /** + * @member {boolean} [enableInterNodeCommunication] Whether the pool permits + * direct communication between nodes. Enabling inter-node communication + * limits the maximum size of the pool due to deployment restrictions on the + * nodes of the pool. This may result in the pool not reaching its desired + * size. The default value is false. + */ + enableInterNodeCommunication?: boolean; + /** + * @member {NetworkConfiguration} [networkConfiguration] The network + * configuration for the pool. + */ + networkConfiguration?: NetworkConfiguration; + /** + * @member {StartTask} [startTask] A task specified to run on each compute + * node as it joins the pool. The task runs when the node is added to the + * pool or when the node is restarted. + */ + startTask?: StartTask; + /** + * @member {CertificateReference[]} [certificateReferences] The list of + * certificates to be installed on each compute node in the pool. For Windows + * compute 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[]; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] The + * list of application packages to be installed on each compute node in the + * pool. + */ + applicationPackageReferences?: ApplicationPackageReference[]; + /** + * @member {string[]} [applicationLicenses] 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[]; + /** + * @member {number} [maxTasksPerNode] The maximum number of tasks that can + * run concurrently on a single compute node in the pool. The default value + * is 1. The maximum value of this setting depends on the size of the compute + * nodes in the pool (the vmSize setting). + */ + maxTasksPerNode?: number; + /** + * @member {TaskSchedulingPolicy} [taskSchedulingPolicy] How tasks are + * distributed across compute nodes in a pool. + */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** + * @member {UserAccount[]} [userAccounts] The list of user accounts to be + * created on each node in the pool. + */ + userAccounts?: UserAccount[]; + /** + * @member {MetadataItem[]} [metadata] 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[]; +} + +/** + * @interface + * 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 { + /** + * @member {string} affinityId An opaque string representing the location of + * a compute node or a task that has run previously. You can pass the + * affinityId of a compute node to indicate that this task needs to run on + * that compute node. Note that this is just a soft affinity. If the target + * node is busy or unavailable at the time the task is scheduled, then the + * task will be scheduled elsewhere. + */ + affinityId: string; +} + +/** + * @interface + * An interface representing TaskExecutionInformation. + * @summary Information about the execution of a task. + * + */ +export interface TaskExecutionInformation { + /** + * @member {Date} [startTime] The time at which the task started running. + * 'Running' corresponds to the running state, so if the task specifies + * resource files or application 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; + /** + * @member {Date} [endTime] The time at which the task completed. This + * property is set only if the task is in the Completed state. + */ + endTime?: Date; + /** + * @member {number} [exitCode] 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; + /** + * @member {TaskContainerExecutionInformation} [containerInfo] 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; + /** + * @member {TaskFailureInformation} [failureInfo] 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; + /** + * @member {number} retryCount 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; + /** + * @member {Date} [lastRetryTime] 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; + /** + * @member {number} requeueCount The number of times the task has been + * requeued by the Batch service as the result of a user request. When the + * user removes 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 + * nodes be requeued for execution. This count tracks how many times the task + * has been requeued for these reasons. + */ + requeueCount: number; + /** + * @member {Date} [lastRequeueTime] 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; + /** + * @member {TaskExecutionResult} [result] 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; +} + +/** + * @interface + * An interface representing ComputeNodeInformation. + * @summary Information about the compute node on which a task ran. + * + */ +export interface ComputeNodeInformation { + /** + * @member {string} [affinityId] An identifier for the compute 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; + /** + * @member {string} [nodeUrl] The URL of the node on which the task ran. . + */ + nodeUrl?: string; + /** + * @member {string} [poolId] The ID of the pool on which the task ran. + */ + poolId?: string; + /** + * @member {string} [nodeId] The ID of the node on which the task ran. + */ + nodeId?: string; + /** + * @member {string} [taskRootDirectory] The root directory of the task on the + * compute node. + */ + taskRootDirectory?: string; + /** + * @member {string} [taskRootDirectoryUrl] The URL to the root directory of + * the task on the compute node. + */ + taskRootDirectoryUrl?: string; +} + +/** + * @interface + * An interface representing NodeAgentInformation. + * @summary Information about the node agent. + * + * The Batch node agent is a program that runs on each node in the pool and + * provides Batch capability on the compute node. + * + */ +export interface NodeAgentInformation { + /** + * @member {string} version The version of the Batch node agent running on + * the compute node. This version number can be checked against the node + * agent release notes located at + * https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md. + */ + version: string; + /** + * @member {Date} lastUpdateTime The time when the node agent was updated on + * the compute node. This is the most recent time that the node agent was + * updated to a new version. + */ + lastUpdateTime: Date; +} + +/** + * @interface + * An interface representing MultiInstanceSettings. + * @summary Settings which specify how to run a 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. + * + */ +export interface MultiInstanceSettings { + /** + * @member {number} [numberOfInstances] The number of compute nodes required + * by the task. If omitted, the default is 1. + */ + numberOfInstances?: number; + /** + * @member {string} coordinationCommandLine 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. + */ + coordinationCommandLine: string; + /** + * @member {ResourceFile[]} [commonResourceFiles] 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. + */ + commonResourceFiles?: ResourceFile[]; +} + +/** + * @interface + * An interface representing TaskStatistics. + * @summary Resource usage statistics for a task. + * + */ +export interface TaskStatistics { + /** + * @member {string} url The URL of the statistics. + */ + url: string; + /** + * @member {Date} startTime The start time of the time range covered by the + * statistics. + */ + startTime: Date; + /** + * @member {Date} lastUpdateTime The time at which the statistics were last + * updated. All statistics are limited to the range between startTime and + * lastUpdateTime. + */ + lastUpdateTime: Date; + /** + * @member {string} userCPUTime The total user mode CPU time (summed across + * all cores and all compute nodes) consumed by the task. + */ + userCPUTime: string; + /** + * @member {string} kernelCPUTime The total kernel mode CPU time (summed + * across all cores and all compute nodes) consumed by the task. + */ + kernelCPUTime: string; + /** + * @member {string} wallClockTime 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; + /** + * @member {number} readIOps The total number of disk read operations made by + * the task. + */ + readIOps: number; + /** + * @member {number} writeIOps The total number of disk write operations made + * by the task. + */ + writeIOps: number; + /** + * @member {number} readIOGiB The total gibibytes read from disk by the task. + */ + readIOGiB: number; + /** + * @member {number} writeIOGiB The total gibibytes written to disk by the + * task. + */ + writeIOGiB: number; + /** + * @member {string} waitTime 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; +} + +/** + * @interface + * An interface representing TaskIdRange. + * @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 { + /** + * @member {number} start The first task ID in the range. + */ + start: number; + /** + * @member {number} end The last task ID in the range. + */ + end: number; +} + +/** + * @interface + * 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 { + /** + * @member {string[]} [taskIds] 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[]; + /** + * @member {TaskIdRange[]} [taskIdRanges] 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[]; +} + +/** + * @interface + * An interface representing CloudTask. + * @summary An Azure Batch task. + * + * Batch will retry tasks when a recovery operation is triggered on a compute + * node. Examples of recovery operations include (but are not limited to) when + * an unhealthy compute 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 { + /** + * @member {string} [id] 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. + */ + id?: string; + /** + * @member {string} [displayName] 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; + /** + * @member {string} [url] The URL of the task. + */ + url?: string; + /** + * @member {string} [eTag] 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. + */ + eTag?: string; + /** + * @member {Date} [lastModified] The last modified time of the task. + */ + lastModified?: Date; + /** + * @member {Date} [creationTime] The creation time of the task. + */ + creationTime?: Date; + /** + * @member {ExitConditions} [exitConditions] How the Batch service should + * respond when the task completes. + */ + exitConditions?: ExitConditions; + /** + * @member {TaskState} [state] The current state of the task. Possible values + * include: 'active', 'preparing', 'running', 'completed' + */ + state?: TaskState; + /** + * @member {Date} [stateTransitionTime] The time at which the task entered + * its current state. + */ + stateTransitionTime?: Date; + /** + * @member {TaskState} [previousState] 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' + */ + previousState?: TaskState; + /** + * @member {Date} [previousStateTransitionTime] The time at which the task + * entered its previous state. This property is not set if the task is in its + * initial Active state. + */ + previousStateTransitionTime?: Date; + /** + * @member {string} [commandLine] 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; + /** + * @member {TaskContainerSettings} [containerSettings] 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. + */ + containerSettings?: TaskContainerSettings; + /** + * @member {ResourceFile[]} [resourceFiles] 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[]; + /** + * @member {OutputFile[]} [outputFiles] 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[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {AffinityInformation} [affinityInfo] 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; + /** + * @member {TaskConstraints} [constraints] The execution constraints that + * apply to this task. + */ + constraints?: TaskConstraints; + /** + * @member {UserIdentity} [userIdentity] The user identity under which the + * task runs. If omitted, the task runs as a non-administrative user unique + * to the task. + */ + userIdentity?: UserIdentity; + /** + * @member {TaskExecutionInformation} [executionInfo] Information about the + * execution of the task. + */ + executionInfo?: TaskExecutionInformation; + /** + * @member {ComputeNodeInformation} [nodeInfo] Information about the compute + * node on which the task ran. + */ + nodeInfo?: ComputeNodeInformation; + /** + * @member {MultiInstanceSettings} [multiInstanceSettings] 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; + /** + * @member {TaskStatistics} [stats] Resource usage statistics for the task. + */ + stats?: TaskStatistics; + /** + * @member {TaskDependencies} [dependsOn] 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; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] 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 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[]; + /** + * @member {AuthenticationTokenSettings} [authenticationTokenSettings] 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; +} + +/** + * @interface + * An interface representing TaskAddParameter. + * @summary An Azure Batch task to add. + * + * Batch will retry tasks when a recovery operation is triggered on a compute + * node. Examples of recovery operations include (but are not limited to) when + * an unhealthy compute 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 { + /** + * @member {string} id 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; + /** + * @member {string} [displayName] 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; + /** + * @member {string} commandLine 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; + /** + * @member {TaskContainerSettings} [containerSettings] 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. + */ + containerSettings?: TaskContainerSettings; + /** + * @member {ExitConditions} [exitConditions] How the Batch service should + * respond when the task completes. + */ + exitConditions?: ExitConditions; + /** + * @member {ResourceFile[]} [resourceFiles] 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[]; + /** + * @member {OutputFile[]} [outputFiles] 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[]; + /** + * @member {EnvironmentSetting[]} [environmentSettings] A list of environment + * variable settings for the task. + */ + environmentSettings?: EnvironmentSetting[]; + /** + * @member {AffinityInformation} [affinityInfo] 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; + /** + * @member {TaskConstraints} [constraints] 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; + /** + * @member {UserIdentity} [userIdentity] The user identity under which the + * task runs. If omitted, the task runs as a non-administrative user unique + * to the task. + */ + userIdentity?: UserIdentity; + /** + * @member {MultiInstanceSettings} [multiInstanceSettings] 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; + /** + * @member {TaskDependencies} [dependsOn] The tasks that this task depends + * on. This task will not be scheduled until all tasks that it depends on + * have completed successfully. If any of those tasks fail and exhaust their + * retry counts, this task will never be scheduled. If the job does not have + * usesTaskDependencies set to true, and this element is present, the request + * fails with error code TaskDependenciesNotSpecifiedOnJob. + */ + dependsOn?: TaskDependencies; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] 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 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[]; + /** + * @member {AuthenticationTokenSettings} [authenticationTokenSettings] 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; +} + +/** + * @interface + * An interface representing TaskAddCollectionParameter. + * @summary A collection of Azure Batch tasks to add. + * + */ +export interface TaskAddCollectionParameter { + /** + * @member {TaskAddParameter[]} 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. + */ + value: TaskAddParameter[]; +} + +/** + * @interface + * An interface representing ErrorMessage. + * @summary An error message received in an Azure Batch error response. + * + */ +export interface ErrorMessage { + /** + * @member {string} [lang] The language code of the error message. + */ + lang?: string; + /** + * @member {string} [value] The text of the message. + */ + value?: string; +} + +/** + * @interface + * An interface representing BatchErrorDetail. + * @summary An item of additional information included in an Azure Batch error + * response. + * + */ +export interface BatchErrorDetail { + /** + * @member {string} [key] An identifier specifying the meaning of the Value + * property. + */ + key?: string; + /** + * @member {string} [value] The additional information included with the + * error response. + */ + value?: string; +} + +/** + * @interface + * An interface representing BatchError. + * @summary An error response received from the Azure Batch service. + * + */ +export interface BatchError { + /** + * @member {string} [code] An identifier for the error. Codes are invariant + * and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {ErrorMessage} [message] A message describing the error, intended + * to be suitable for display in a user interface. + */ + message?: ErrorMessage; + /** + * @member {BatchErrorDetail[]} [values] A collection of key-value pairs + * containing additional details about the error. + */ + values?: BatchErrorDetail[]; +} + +/** + * @interface + * An interface representing TaskAddResult. + * @summary Result for a single task added as part of an add task collection + * operation. + * + */ +export interface TaskAddResult { + /** + * @member {TaskAddStatus} status The status of the add task request. + * Possible values include: 'success', 'clientError', 'serverError' + */ + status: TaskAddStatus; + /** + * @member {string} taskId The ID of the task for which this is the result. + */ + taskId: string; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The last modified time of the task. + */ + lastModified?: Date; + /** + * @member {string} [location] The URL of the task, if the task was + * successfully added. + */ + location?: string; + /** + * @member {BatchError} [error] The error encountered while attempting to add + * the task. + */ + error?: BatchError; +} + +/** + * @interface + * An interface representing TaskAddCollectionResult. + * @summary The result of adding a collection of tasks to a job. + * + */ +export interface TaskAddCollectionResult { + /** + * @member {TaskAddResult[]} [value] The results of the add task collection + * operation. + */ + value?: TaskAddResult[]; +} + +/** + * @interface + * An interface representing SubtaskInformation. + * @summary Information about an Azure Batch subtask. + * + */ +export interface SubtaskInformation { + /** + * @member {number} [id] The ID of the subtask. + */ + id?: number; + /** + * @member {ComputeNodeInformation} [nodeInfo] Information about the compute + * node on which the subtask ran. + */ + nodeInfo?: ComputeNodeInformation; + /** + * @member {Date} [startTime] 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; + /** + * @member {Date} [endTime] The time at which the subtask completed. This + * property is set only if the subtask is in the Completed state. + */ + endTime?: Date; + /** + * @member {number} [exitCode] 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; + /** + * @member {TaskContainerExecutionInformation} [containerInfo] 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; + /** + * @member {TaskFailureInformation} [failureInfo] 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; + /** + * @member {SubtaskState} [state] The current state of the subtask. Possible + * values include: 'preparing', 'running', 'completed' + */ + state?: SubtaskState; + /** + * @member {Date} [stateTransitionTime] The time at which the subtask entered + * its current state. + */ + stateTransitionTime?: Date; + /** + * @member {SubtaskState} [previousState] 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; + /** + * @member {Date} [previousStateTransitionTime] 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; + /** + * @member {TaskExecutionResult} [result] 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; +} + +/** + * @interface + * An interface representing CloudTaskListSubtasksResult. + * @summary The result of listing the subtasks of a task. + * + */ +export interface CloudTaskListSubtasksResult { + /** + * @member {SubtaskInformation[]} [value] The list of subtasks. + */ + value?: SubtaskInformation[]; +} + +/** + * @interface + * An interface representing TaskInformation. + * @summary Information about a task running on a compute node. + * + */ +export interface TaskInformation { + /** + * @member {string} [taskUrl] The URL of the task. + */ + taskUrl?: string; + /** + * @member {string} [jobId] The ID of the job to which the task belongs. + */ + jobId?: string; + /** + * @member {string} [taskId] The ID of the task. + */ + taskId?: string; + /** + * @member {number} [subtaskId] The ID of the subtask if the task is a + * multi-instance task. + */ + subtaskId?: number; + /** + * @member {TaskState} taskState The current state of the task. Possible + * values include: 'active', 'preparing', 'running', 'completed' + */ + taskState: TaskState; + /** + * @member {TaskExecutionInformation} [executionInfo] Information about the + * execution of the task. + */ + executionInfo?: TaskExecutionInformation; +} + +/** + * @interface + * An interface representing StartTaskInformation. + * @summary Information about a start task running on a compute node. + * + */ +export interface StartTaskInformation { + /** + * @member {StartTaskState} state The state of the start task on the compute + * node. Possible values include: 'running', 'completed' + */ + state: StartTaskState; + /** + * @member {Date} startTime The time at which the start task 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 start task started running). + */ + startTime: Date; + /** + * @member {Date} [endTime] The time at which the start task stopped running. + * This is the end time of the most recent run of the start task, if that run + * has completed (even if that run failed and a retry is pending). This + * element is not present if the start task is currently running. + */ + endTime?: Date; + /** + * @member {number} [exitCode] The exit code of the program specified on the + * start task command line. This property is set only if the start 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 start task (due to + * timeout, or user termination via the API) you may see an operating + * system-defined exit code. + */ + exitCode?: number; + /** + * @member {TaskContainerExecutionInformation} [containerInfo] 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; + /** + * @member {TaskFailureInformation} [failureInfo] 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; + /** + * @member {number} retryCount 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; + /** + * @member {Date} [lastRetryTime] 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; + /** + * @member {TaskExecutionResult} [result] 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; +} + +/** + * @interface + * An interface representing ComputeNodeError. + * @summary An error encountered by a compute node. + * + */ +export interface ComputeNodeError { + /** + * @member {string} [code] An identifier for the compute node error. Codes + * are invariant and are intended to be consumed programmatically. + */ + code?: string; + /** + * @member {string} [message] A message describing the compute node error, + * intended to be suitable for display in a user interface. + */ + message?: string; + /** + * @member {NameValuePair[]} [errorDetails] The list of additional error + * details related to the compute node error. + */ + errorDetails?: NameValuePair[]; +} + +/** + * @interface + * An interface representing InboundEndpoint. + * @summary An inbound endpoint on a compute node. + * + */ +export interface InboundEndpoint { + /** + * @member {string} name The name of the endpoint. + */ + name: string; + /** + * @member {InboundEndpointProtocol} protocol The protocol of the endpoint. + * Possible values include: 'tcp', 'udp' + */ + protocol: InboundEndpointProtocol; + /** + * @member {string} publicIPAddress The public IP address of the compute + * node. + */ + publicIPAddress: string; + /** + * @member {string} publicFQDN The public fully qualified domain name for the + * compute node. + */ + publicFQDN: string; + /** + * @member {number} frontendPort The public port number of the endpoint. + */ + frontendPort: number; + /** + * @member {number} backendPort The backend port number of the endpoint. + */ + backendPort: number; +} + +/** + * @interface + * An interface representing ComputeNodeEndpointConfiguration. + * @summary The endpoint configuration for the compute node. + * + */ +export interface ComputeNodeEndpointConfiguration { + /** + * @member {InboundEndpoint[]} inboundEndpoints The list of inbound endpoints + * that are accessible on the compute node. + */ + inboundEndpoints: InboundEndpoint[]; +} + +/** + * @interface + * An interface representing ComputeNode. + * @summary A compute node in the Batch service. + * + */ +export interface ComputeNode { + /** + * @member {string} [id] The ID of the compute node. Every node that is added + * to a pool is assigned a unique ID. Whenever a node is removed from a pool, + * all of its local files are deleted, and the ID is reclaimed and could be + * reused for new nodes. + */ + id?: string; + /** + * @member {string} [url] The URL of the compute node. + */ + url?: string; + /** + * @member {ComputeNodeState} [state] The current state of the compute node. + * The low-priority node has been preempted. Tasks which were running on the + * node when it was preempted will be rescheduled when another node becomes + * available. Possible values include: 'idle', 'rebooting', 'reimaging', + * 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', + * 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted' + */ + state?: ComputeNodeState; + /** + * @member {SchedulingState} [schedulingState] Whether the compute node is + * available for task scheduling. Possible values include: 'enabled', + * 'disabled' + */ + schedulingState?: SchedulingState; + /** + * @member {Date} [stateTransitionTime] The time at which the compute node + * entered its current state. + */ + stateTransitionTime?: Date; + /** + * @member {Date} [lastBootTime] The last time at which the compute node was + * started. This property may not be present if the node state is unusable. + */ + lastBootTime?: Date; + /** + * @member {Date} [allocationTime] The time at which this compute node was + * allocated to the pool. This is the time when the node was initially + * allocated and doesn't change once set. It is not updated when the node is + * service healed or preempted. + */ + allocationTime?: Date; + /** + * @member {string} [ipAddress] The IP address that other compute nodes can + * use to communicate with this compute node. Every node that is added to a + * pool is assigned a unique IP address. Whenever a 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 nodes. + */ + ipAddress?: string; + /** + * @member {string} [affinityId] An identifier which can be passed when + * adding a task to request that the task be scheduled on this node. Note + * that this is just a soft affinity. If the target node is busy or + * unavailable at the time the task is scheduled, then the task will be + * scheduled elsewhere. + */ + affinityId?: string; + /** + * @member {string} [vmSize] 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; + /** + * @member {number} [totalTasksRun] 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; + /** + * @member {number} [runningTasksCount] 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; + /** + * @member {number} [totalTasksSucceeded] 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; + /** + * @member {TaskInformation[]} [recentTasks] A list of tasks whose state has + * recently changed. This property is present only if at least one task has + * run on this node since it was assigned to the pool. + */ + recentTasks?: TaskInformation[]; + /** + * @member {StartTask} [startTask] The task specified to run on the compute + * node as it joins the pool. + */ + startTask?: StartTask; + /** + * @member {StartTaskInformation} [startTaskInfo] Runtime information about + * the execution of the start task on the compute node. + */ + startTaskInfo?: StartTaskInformation; + /** + * @member {CertificateReference[]} [certificateReferences] The list of + * certificates installed on the compute node. For Windows compute 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[]; + /** + * @member {ComputeNodeError[]} [errors] The list of errors that are + * currently being encountered by the compute node. + */ + errors?: ComputeNodeError[]; + /** + * @member {boolean} [isDedicated] Whether this compute node is a dedicated + * node. If false, the node is a low-priority node. + */ + isDedicated?: boolean; + /** + * @member {ComputeNodeEndpointConfiguration} [endpointConfiguration] The + * endpoint configuration for the compute node. + */ + endpointConfiguration?: ComputeNodeEndpointConfiguration; + /** + * @member {NodeAgentInformation} [nodeAgentInfo] Information about the node + * agent version and the time the node upgraded to a new version. + */ + nodeAgentInfo?: NodeAgentInformation; +} + +/** + * @interface + * An interface representing ComputeNodeUser. + * @summary A user account for RDP or SSH access on a compute node. + * + */ +export interface ComputeNodeUser { + /** + * @member {string} name The user name of the account. + */ + name: string; + /** + * @member {boolean} [isAdmin] Whether the account should be an administrator + * on the compute node. The default value is false. + */ + isAdmin?: boolean; + /** + * @member {Date} [expiryTime] 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; + /** + * @member {string} [password] The password of the account. The password is + * required for Windows 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; + /** + * @member {string} [sshPublicKey] 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 nodes. If this is specified for a Windows 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; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteLoginSettingsResult. + * @summary The remote login settings for a compute node. + * + */ +export interface ComputeNodeGetRemoteLoginSettingsResult { + /** + * @member {string} remoteLoginIPAddress The IP address used for remote login + * to the compute node. + */ + remoteLoginIPAddress: string; + /** + * @member {number} remoteLoginPort The port used for remote login to the + * compute node. + */ + remoteLoginPort: number; +} + +/** + * @interface + * An interface representing JobSchedulePatchParameter. + * @summary The set of changes to be made to a job schedule. + * + */ +export interface JobSchedulePatchParameter { + /** + * @member {Schedule} [schedule] The schedule according to which jobs will be + * created. If you do not specify this element, the existing schedule is left + * unchanged. + */ + schedule?: Schedule; + /** + * @member {JobSpecification} [jobSpecification] 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; + /** + * @member {MetadataItem[]} [metadata] 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[]; +} + +/** + * @interface + * An interface representing JobScheduleUpdateParameter. + * @summary The set of changes to be made to a job schedule. + * + */ +export interface JobScheduleUpdateParameter { + /** + * @member {Schedule} schedule 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; + /** + * @member {JobSpecification} jobSpecification 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; + /** + * @member {MetadataItem[]} [metadata] 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[]; +} + +/** + * @interface + * An interface representing JobDisableParameter. + * @summary Options when disabling a job. + * + */ +export interface JobDisableParameter { + /** + * @member {DisableJobOption} disableTasks What to do with active tasks + * associated with the job. Possible values include: 'requeue', 'terminate', + * 'wait' + */ + disableTasks: DisableJobOption; +} + +/** + * @interface + * An interface representing JobTerminateParameter. + * @summary Options when terminating a job. + * + */ +export interface JobTerminateParameter { + /** + * @member {string} [terminateReason] The text you want to appear as the + * job's TerminateReason. The default is 'UserTerminate'. + */ + terminateReason?: string; +} + +/** + * @interface + * An interface representing JobPatchParameter. + * @summary The set of changes to be made to a job. + * + */ +export interface JobPatchParameter { + /** + * @member {number} [priority] 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; + /** + * @member {OnAllTasksComplete} [onAllTasksComplete] 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; + /** + * @member {JobConstraints} [constraints] The execution constraints for the + * job. If omitted, the existing execution constraints are left unchanged. + */ + constraints?: JobConstraints; + /** + * @member {PoolInformation} [poolInfo] 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 specification in the poolInfo, only the keepAlive + * property can be updated, and then only if the auto pool has a + * poolLifetimeOption of job. If omitted, the job continues to run on its + * current pool. + */ + poolInfo?: PoolInformation; + /** + * @member {MetadataItem[]} [metadata] A list of name-value pairs associated + * with the job as metadata. If omitted, the existing job metadata is left + * unchanged. + */ + metadata?: MetadataItem[]; +} + +/** + * @interface + * An interface representing JobUpdateParameter. + * @summary The set of changes to be made to a job. + * + */ +export interface JobUpdateParameter { + /** + * @member {number} [priority] 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; + /** + * @member {JobConstraints} [constraints] The execution constraints for the + * job. If omitted, the constraints are cleared. + */ + constraints?: JobConstraints; + /** + * @member {PoolInformation} poolInfo 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 specification in the poolInfo, only the keepAlive + * property can be updated, and then only if the auto pool has a + * poolLifetimeOption of job. + */ + poolInfo: PoolInformation; + /** + * @member {MetadataItem[]} [metadata] 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[]; + /** + * @member {OnAllTasksComplete} [onAllTasksComplete] 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; +} + +/** + * @interface + * An interface representing PoolEnableAutoScaleParameter. + * @summary Options for enabling automatic scaling on a pool. + * + */ +export interface PoolEnableAutoScaleParameter { + /** + * @member {string} [autoScaleFormula] 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; + /** + * @member {string} [autoScaleEvaluationInterval] 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; +} + +/** + * @interface + * An interface representing PoolEvaluateAutoScaleParameter. + * @summary Options for evaluating an automatic scaling formula on a pool. + * + */ +export interface PoolEvaluateAutoScaleParameter { + /** + * @member {string} 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). + */ + autoScaleFormula: string; +} + +/** + * @interface + * An interface representing PoolResizeParameter. + * @summary Options for changing the size of a pool. + * + */ +export interface PoolResizeParameter { + /** + * @member {number} [targetDedicatedNodes] The desired number of dedicated + * compute nodes in the pool. + */ + targetDedicatedNodes?: number; + /** + * @member {number} [targetLowPriorityNodes] The desired number of + * low-priority compute nodes in the pool. + */ + targetLowPriorityNodes?: number; + /** + * @member {string} [resizeTimeout] The timeout for allocation of compute + * 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; + /** + * @member {ComputeNodeDeallocationOption} [nodeDeallocationOption] + * Determines what to do with a 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; +} + +/** + * @interface + * An interface representing PoolUpdatePropertiesParameter. + * @summary The set of changes to be made to a pool. + * + */ +export interface PoolUpdatePropertiesParameter { + /** + * @member {StartTask} [startTask] A task to run on each compute node as it + * joins the pool. The task runs when the node is added to the pool or when + * the node is restarted. If this element is present, it overwrites any + * existing start task. If omitted, any existing start task is removed from + * the pool. + */ + startTask?: StartTask; + /** + * @member {CertificateReference[]} certificateReferences 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 compute 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[]; + /** + * @member {ApplicationPackageReference[]} applicationPackageReferences A + * 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. If omitted, or if you + * specify an empty collection, any existing application packages references + * are removed from the pool. + */ + applicationPackageReferences: ApplicationPackageReference[]; + /** + * @member {MetadataItem[]} metadata 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[]; +} + +/** + * @interface + * An interface representing PoolPatchParameter. + * @summary The set of changes to be made to a pool. + * + */ +export interface PoolPatchParameter { + /** + * @member {StartTask} [startTask] A task to run on each compute node as it + * joins the pool. The task runs when the node is added to the pool or when + * the node is restarted. If this element is present, it overwrites any + * existing start task. If omitted, any existing start task is left + * unchanged. + */ + startTask?: StartTask; + /** + * @member {CertificateReference[]} [certificateReferences] 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 compute 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[]; + /** + * @member {ApplicationPackageReference[]} [applicationPackageReferences] A + * list of application packages to be installed on each compute node in 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. If this element is + * present, it replaces any existing application package references. If you + * specify an empty collection, then all application package references are + * removed from the pool. If omitted, any existing application package + * references are left unchanged. + */ + applicationPackageReferences?: ApplicationPackageReference[]; + /** + * @member {MetadataItem[]} [metadata] 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[]; +} + +/** + * @interface + * An interface representing TaskUpdateParameter. + * @summary The set of changes to be made to a task. + * + */ +export interface TaskUpdateParameter { + /** + * @member {TaskConstraints} [constraints] 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; +} + +/** + * @interface + * An interface representing NodeUpdateUserParameter. + * @summary The set of changes to be made to a user account on a node. + * + */ +export interface NodeUpdateUserParameter { + /** + * @member {string} [password] The password of the account. The password is + * required for Windows 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; + /** + * @member {Date} [expiryTime] 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; + /** + * @member {string} [sshPublicKey] 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 nodes. If this is specified for a Windows 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; +} + +/** + * @interface + * An interface representing NodeRebootParameter. + * @summary Options for rebooting a compute node. + * + */ +export interface NodeRebootParameter { + /** + * @member {ComputeNodeRebootOption} [nodeRebootOption] 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; +} + +/** + * @interface + * An interface representing NodeReimageParameter. + * @summary Options for reimaging a compute node. + * + */ +export interface NodeReimageParameter { + /** + * @member {ComputeNodeReimageOption} [nodeReimageOption] 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; +} + +/** + * @interface + * An interface representing NodeDisableSchedulingParameter. + * @summary Options for disabling scheduling on a compute node. + * + */ +export interface NodeDisableSchedulingParameter { + /** + * @member {DisableComputeNodeSchedulingOption} [nodeDisableSchedulingOption] + * 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; +} + +/** + * @interface + * An interface representing NodeRemoveParameter. + * @summary Options for removing compute nodes from a pool. + * + */ +export interface NodeRemoveParameter { + /** + * @member {string[]} nodeList A list containing the IDs of the compute nodes + * to be removed from the specified pool. + */ + nodeList: string[]; + /** + * @member {string} [resizeTimeout] 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; + /** + * @member {ComputeNodeDeallocationOption} [nodeDeallocationOption] + * Determines what to do with a 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; +} + +/** + * @interface + * An interface representing UploadBatchServiceLogsConfiguration. + * @summary The Azure Batch service log files upload configuration for a + * compute node. + * + */ +export interface UploadBatchServiceLogsConfiguration { + /** + * @member {string} containerUrl The URL of the container within Azure Blob + * Storage to which to upload the Batch Service log file(s). 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; + /** + * @member {Date} startTime 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; + /** + * @member {Date} [endTime] 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; +} + +/** + * @interface + * An interface representing UploadBatchServiceLogsResult. + * @summary The result of uploading Batch service log files from a specific + * compute node. + * + */ +export interface UploadBatchServiceLogsResult { + /** + * @member {string} virtualDirectoryName 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; + /** + * @member {number} numberOfFilesUploaded The number of log files which will + * be uploaded. + */ + numberOfFilesUploaded: number; +} + +/** + * @interface + * An interface representing NodeCounts. + * @summary The number of nodes in each node state. + * + */ +export interface NodeCounts { + /** + * @member {number} creating The number of nodes in the creating state. + */ + creating: number; + /** + * @member {number} idle The number of nodes in the idle state. + */ + idle: number; + /** + * @member {number} offline The number of nodes in the offline state. + */ + offline: number; + /** + * @member {number} preempted The number of nodes in the preempted state. + */ + preempted: number; + /** + * @member {number} rebooting The count of nodes in the rebooting state. + */ + rebooting: number; + /** + * @member {number} reimaging The number of nodes in the reimaging state. + */ + reimaging: number; + /** + * @member {number} running The number of nodes in the running state. + */ + running: number; + /** + * @member {number} starting The number of nodes in the starting state. + */ + starting: number; + /** + * @member {number} startTaskFailed The number of nodes in the + * startTaskFailed state. + */ + startTaskFailed: number; + /** + * @member {number} leavingPool The number of nodes in the leavingPool state. + */ + leavingPool: number; + /** + * @member {number} unknown The number of nodes in the unknown state. + */ + unknown: number; + /** + * @member {number} unusable The number of nodes in the unusable state. + */ + unusable: number; + /** + * @member {number} waitingForStartTask The number of nodes in the + * waitingForStartTask state. + */ + waitingForStartTask: number; + /** + * @member {number} total The total number of nodes. + */ + total: number; +} + +/** + * @interface + * An interface representing PoolNodeCounts. + * @summary The number of nodes in each state for a pool. + * + */ +export interface PoolNodeCounts { + /** + * @member {string} poolId The ID of the pool. + */ + poolId: string; + /** + * @member {NodeCounts} [dedicated] The number of dedicated nodes in each + * state. + */ + dedicated?: NodeCounts; + /** + * @member {NodeCounts} [lowPriority] The number of low priority nodes in + * each state. + */ + lowPriority?: NodeCounts; +} + +/** + * @interface + * An interface representing ApplicationListOptions. + * Additional parameters for list operation. + * + */ +export interface ApplicationListOptions { + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 applications can be returned. Default value: + * 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ApplicationGetOptions. + * Additional parameters for get operation. + * + */ +export interface ApplicationGetOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolListUsageMetricsOptions. + * Additional parameters for listUsageMetrics operation. + * + */ +export interface PoolListUsageMetricsOptions { + /** + * @member {Date} [startTime] 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; + /** + * @member {Date} [endTime] 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; + /** + * @member {string} [filter] 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; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 results will be returned. Default value: 1000 + * . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolGetAllLifetimeStatisticsOptions. + * Additional parameters for getAllLifetimeStatistics operation. + * + */ +export interface PoolGetAllLifetimeStatisticsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolAddOptions. + * Additional parameters for add operation. + * + */ +export interface PoolAddOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolListOptions. + * Additional parameters for list operation. + * + */ +export interface PoolListOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 pools can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolDeleteMethodOptions. + * Additional parameters for deleteMethod operation. + * + */ +export interface PoolDeleteMethodOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolExistsOptions. + * Additional parameters for exists operation. + * + */ +export interface PoolExistsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolGetOptions. + * Additional parameters for get operation. + * + */ +export interface PoolGetOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolPatchOptions. + * Additional parameters for patch operation. + * + */ +export interface PoolPatchOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolDisableAutoScaleOptions. + * Additional parameters for disableAutoScale operation. + * + */ +export interface PoolDisableAutoScaleOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolEnableAutoScaleOptions. + * Additional parameters for enableAutoScale operation. + * + */ +export interface PoolEnableAutoScaleOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolEvaluateAutoScaleOptions. + * Additional parameters for evaluateAutoScale operation. + * + */ +export interface PoolEvaluateAutoScaleOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolResizeOptions. + * Additional parameters for resize operation. + * + */ +export interface PoolResizeOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolStopResizeOptions. + * Additional parameters for stopResize operation. + * + */ +export interface PoolStopResizeOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing PoolUpdatePropertiesOptions. + * Additional parameters for updateProperties operation. + * + */ +export interface PoolUpdatePropertiesOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolRemoveNodesOptions. + * Additional parameters for removeNodes operation. + * + */ +export interface PoolRemoveNodesOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing AccountListNodeAgentSkusOptions. + * Additional parameters for listNodeAgentSkus operation. + * + */ +export interface AccountListNodeAgentSkusOptions { + /** + * @member {string} [filter] 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-node-agent-skus. + */ + filter?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 results will be returned. Default value: 1000 + * . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing AccountListPoolNodeCountsOptions. + * Additional parameters for listPoolNodeCounts operation. + * + */ +export interface AccountListPoolNodeCountsOptions { + /** + * @member {string} [filter] 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; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. Default value: 10 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobGetAllLifetimeStatisticsOptions. + * Additional parameters for getAllLifetimeStatistics operation. + * + */ +export interface JobGetAllLifetimeStatisticsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobDeleteMethodOptions. + * Additional parameters for deleteMethod operation. + * + */ +export interface JobDeleteMethodOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobGetOptions. + * Additional parameters for get operation. + * + */ +export interface JobGetOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobPatchOptions. + * Additional parameters for patch operation. + * + */ +export interface JobPatchOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobUpdateOptions. + * Additional parameters for update operation. + * + */ +export interface JobUpdateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobDisableOptions. + * Additional parameters for disable operation. + * + */ +export interface JobDisableOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobEnableOptions. + * Additional parameters for enable operation. + * + */ +export interface JobEnableOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobTerminateOptions. + * Additional parameters for terminate operation. + * + */ +export interface JobTerminateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobAddOptions. + * Additional parameters for add operation. + * + */ +export interface JobAddOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobListOptions. + * Additional parameters for list operation. + * + */ +export interface JobListOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 jobs can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobListFromJobScheduleOptions. + * Additional parameters for listFromJobSchedule operation. + * + */ +export interface JobListFromJobScheduleOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 jobs can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobListPreparationAndReleaseTaskStatusOptions. + * Additional parameters for listPreparationAndReleaseTaskStatus operation. + * + */ +export interface JobListPreparationAndReleaseTaskStatusOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 tasks can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobGetTaskCountsOptions. + * Additional parameters for getTaskCounts operation. + * + */ +export interface JobGetTaskCountsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing CertificateAddOptions. + * Additional parameters for add operation. + * + */ +export interface CertificateAddOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing CertificateListOptions. + * Additional parameters for list operation. + * + */ +export interface CertificateListOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 certificates can be returned. Default value: + * 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing CertificateCancelDeletionOptions. + * Additional parameters for cancelDeletion operation. + * + */ +export interface CertificateCancelDeletionOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing CertificateDeleteMethodOptions. + * Additional parameters for deleteMethod operation. + * + */ +export interface CertificateDeleteMethodOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing CertificateGetOptions. + * Additional parameters for get operation. + * + */ +export interface CertificateGetOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing FileDeleteFromTaskOptions. + * Additional parameters for deleteFromTask operation. + * + */ +export interface FileDeleteFromTaskOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing FileGetFromTaskOptions. + * Additional parameters for getFromTask operation. + * + */ +export interface FileGetFromTaskOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ocpRange] The byte range to be retrieved. The default is + * to retrieve the entire file. The format is bytes=startRange-endRange. + */ + ocpRange?: string; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing FileGetPropertiesFromTaskOptions. + * Additional parameters for getPropertiesFromTask operation. + * + */ +export interface FileGetPropertiesFromTaskOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing FileDeleteFromComputeNodeOptions. + * Additional parameters for deleteFromComputeNode operation. + * + */ +export interface FileDeleteFromComputeNodeOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing FileGetFromComputeNodeOptions. + * Additional parameters for getFromComputeNode operation. + * + */ +export interface FileGetFromComputeNodeOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ocpRange] The byte range to be retrieved. The default is + * to retrieve the entire file. The format is bytes=startRange-endRange. + */ + ocpRange?: string; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing FileGetPropertiesFromComputeNodeOptions. + * Additional parameters for getPropertiesFromComputeNode operation. + * + */ +export interface FileGetPropertiesFromComputeNodeOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing FileListFromTaskOptions. + * Additional parameters for listFromTask operation. + * + */ +export interface FileListFromTaskOptions { + /** + * @member {string} [filter] 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; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 files can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing FileListFromComputeNodeOptions. + * Additional parameters for listFromComputeNode operation. + * + */ +export interface FileListFromComputeNodeOptions { + /** + * @member {string} [filter] 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; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 files can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobScheduleExistsOptions. + * Additional parameters for exists operation. + * + */ +export interface JobScheduleExistsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleDeleteMethodOptions. + * Additional parameters for deleteMethod operation. + * + */ +export interface JobScheduleDeleteMethodOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleGetOptions. + * Additional parameters for get operation. + * + */ +export interface JobScheduleGetOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobSchedulePatchOptions. + * Additional parameters for patch operation. + * + */ +export interface JobSchedulePatchOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleUpdateOptions. + * Additional parameters for update operation. + * + */ +export interface JobScheduleUpdateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleDisableOptions. + * Additional parameters for disable operation. + * + */ +export interface JobScheduleDisableOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleEnableOptions. + * Additional parameters for enable operation. + * + */ +export interface JobScheduleEnableOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleTerminateOptions. + * Additional parameters for terminate operation. + * + */ +export interface JobScheduleTerminateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing JobScheduleAddOptions. + * Additional parameters for add operation. + * + */ +export interface JobScheduleAddOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobScheduleListOptions. + * Additional parameters for list operation. + * + */ +export interface JobScheduleListOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 job schedules can be returned. Default value: + * 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing TaskAddOptions. + * Additional parameters for add operation. + * + */ +export interface TaskAddOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing TaskListOptions. + * Additional parameters for list operation. + * + */ +export interface TaskListOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 tasks can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing TaskAddCollectionOptions. + * Additional parameters for addCollection operation. + * + */ +export interface TaskAddCollectionOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing TaskDeleteMethodOptions. + * Additional parameters for deleteMethod operation. + * + */ +export interface TaskDeleteMethodOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing TaskGetOptions. + * Additional parameters for get operation. + * + */ +export interface TaskGetOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {string} [expand] An OData $expand clause. + */ + expand?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing TaskUpdateOptions. + * Additional parameters for update operation. + * + */ +export interface TaskUpdateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing TaskListSubtasksOptions. + * Additional parameters for listSubtasks operation. + * + */ +export interface TaskListSubtasksOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing TaskTerminateOptions. + * Additional parameters for terminate operation. + * + */ +export interface TaskTerminateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing TaskReactivateOptions. + * Additional parameters for reactivate operation. + * + */ +export interface TaskReactivateOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; + /** + * @member {string} [ifMatch] 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; + /** + * @member {string} [ifNoneMatch] 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; + /** + * @member {Date} [ifModifiedSince] 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; + /** + * @member {Date} [ifUnmodifiedSince] 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; +} + +/** + * @interface + * An interface representing ComputeNodeAddUserOptions. + * Additional parameters for addUser operation. + * + */ +export interface ComputeNodeAddUserOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeDeleteUserOptions. + * Additional parameters for deleteUser operation. + * + */ +export interface ComputeNodeDeleteUserOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeUpdateUserOptions. + * Additional parameters for updateUser operation. + * + */ +export interface ComputeNodeUpdateUserOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeGetOptions. + * Additional parameters for get operation. + * + */ +export interface ComputeNodeGetOptions { + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeRebootOptions. + * Additional parameters for reboot operation. + * + */ +export interface ComputeNodeRebootOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeReimageOptions. + * Additional parameters for reimage operation. + * + */ +export interface ComputeNodeReimageOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeDisableSchedulingOptions. + * Additional parameters for disableScheduling operation. + * + */ +export interface ComputeNodeDisableSchedulingOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeEnableSchedulingOptions. + * Additional parameters for enableScheduling operation. + * + */ +export interface ComputeNodeEnableSchedulingOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteLoginSettingsOptions. + * Additional parameters for getRemoteLoginSettings operation. + * + */ +export interface ComputeNodeGetRemoteLoginSettingsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteDesktopOptions. + * Additional parameters for getRemoteDesktop operation. + * + */ +export interface ComputeNodeGetRemoteDesktopOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeUploadBatchServiceLogsOptions. + * Additional parameters for uploadBatchServiceLogs operation. + * + */ +export interface ComputeNodeUploadBatchServiceLogsOptions { + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeListOptions. + * Additional parameters for list operation. + * + */ +export interface ComputeNodeListOptions { + /** + * @member {string} [filter] 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; + /** + * @member {string} [select] An OData $select clause. + */ + select?: string; + /** + * @member {number} [maxResults] The maximum number of items to return in the + * response. A maximum of 1000 nodes can be returned. Default value: 1000 . + */ + maxResults?: number; + /** + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + */ + timeout?: number; + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ApplicationListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface ApplicationListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolListUsageMetricsNextOptions. + * Additional parameters for listUsageMetricsNext operation. + * + */ +export interface PoolListUsageMetricsNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing PoolListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface PoolListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing AccountListNodeAgentSkusNextOptions. + * Additional parameters for listNodeAgentSkusNext operation. + * + */ +export interface AccountListNodeAgentSkusNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing AccountListPoolNodeCountsNextOptions. + * Additional parameters for listPoolNodeCountsNext operation. + * + */ +export interface AccountListPoolNodeCountsNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface JobListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobListFromJobScheduleNextOptions. + * Additional parameters for listFromJobScheduleNext operation. + * + */ +export interface JobListFromJobScheduleNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobListPreparationAndReleaseTaskStatusNextOptions. + * Additional parameters for listPreparationAndReleaseTaskStatusNext operation. + * + */ +export interface JobListPreparationAndReleaseTaskStatusNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing CertificateListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface CertificateListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing FileListFromTaskNextOptions. + * Additional parameters for listFromTaskNext operation. + * + */ +export interface FileListFromTaskNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing FileListFromComputeNodeNextOptions. + * Additional parameters for listFromComputeNodeNext operation. + * + */ +export interface FileListFromComputeNodeNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing JobScheduleListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface JobScheduleListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing TaskListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface TaskListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ComputeNodeListNextOptions. + * Additional parameters for listNext operation. + * + */ +export interface ComputeNodeListNextOptions { + /** + * @member {string} [clientRequestId] 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; + /** + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + */ + returnClientRequestId?: boolean; + /** + * @member {Date} [ocpDate] 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; +} + +/** + * @interface + * An interface representing ApplicationListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApplicationListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ApplicationListOptions} [applicationListOptions] Additional + * parameters for the operation + */ + applicationListOptions?: ApplicationListOptions; +} + +/** + * @interface + * An interface representing ApplicationGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApplicationGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ApplicationGetOptions} [applicationGetOptions] Additional + * parameters for the operation + */ + applicationGetOptions?: ApplicationGetOptions; +} + +/** + * @interface + * An interface representing ApplicationListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApplicationListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ApplicationListNextOptions} [applicationListNextOptions] + * Additional parameters for the operation + */ + applicationListNextOptions?: ApplicationListNextOptions; +} + +/** + * @interface + * An interface representing PoolListUsageMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolListUsageMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolListUsageMetricsOptions} [poolListUsageMetricsOptions] + * Additional parameters for the operation + */ + poolListUsageMetricsOptions?: PoolListUsageMetricsOptions; +} + +/** + * @interface + * An interface representing PoolGetAllLifetimeStatisticsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolGetAllLifetimeStatisticsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolGetAllLifetimeStatisticsOptions} + * [poolGetAllLifetimeStatisticsOptions] Additional parameters for the + * operation + */ + poolGetAllLifetimeStatisticsOptions?: PoolGetAllLifetimeStatisticsOptions; +} + +/** + * @interface + * An interface representing PoolAddOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolAddOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolAddOptions} [poolAddOptions] Additional parameters for the + * operation + */ + poolAddOptions?: PoolAddOptions; +} + +/** + * @interface + * An interface representing PoolListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolListOptions} [poolListOptions] Additional parameters for the + * operation + */ + poolListOptions?: PoolListOptions; +} + +/** + * @interface + * An interface representing PoolDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolDeleteMethodOptions} [poolDeleteMethodOptions] Additional + * parameters for the operation + */ + poolDeleteMethodOptions?: PoolDeleteMethodOptions; +} + +/** + * @interface + * An interface representing PoolExistsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolExistsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolExistsOptions} [poolExistsOptions] Additional parameters for + * the operation + */ + poolExistsOptions?: PoolExistsOptions; +} + +/** + * @interface + * An interface representing PoolGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolGetOptions} [poolGetOptions] Additional parameters for the + * operation + */ + poolGetOptions?: PoolGetOptions; +} + +/** + * @interface + * An interface representing PoolPatchOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolPatchOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolPatchOptions} [poolPatchOptions] Additional parameters for + * the operation + */ + poolPatchOptions?: PoolPatchOptions; +} + +/** + * @interface + * An interface representing PoolDisableAutoScaleOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolDisableAutoScaleOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolDisableAutoScaleOptions} [poolDisableAutoScaleOptions] + * Additional parameters for the operation + */ + poolDisableAutoScaleOptions?: PoolDisableAutoScaleOptions; +} + +/** + * @interface + * An interface representing PoolEnableAutoScaleOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolEnableAutoScaleOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolEnableAutoScaleOptions} [poolEnableAutoScaleOptions] + * Additional parameters for the operation + */ + poolEnableAutoScaleOptions?: PoolEnableAutoScaleOptions; +} + +/** + * @interface + * An interface representing PoolEvaluateAutoScaleOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolEvaluateAutoScaleOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolEvaluateAutoScaleOptions} [poolEvaluateAutoScaleOptions] + * Additional parameters for the operation + */ + poolEvaluateAutoScaleOptions?: PoolEvaluateAutoScaleOptions; +} + +/** + * @interface + * An interface representing PoolResizeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolResizeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolResizeOptions} [poolResizeOptions] Additional parameters for + * the operation + */ + poolResizeOptions?: PoolResizeOptions; +} + +/** + * @interface + * An interface representing PoolStopResizeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolStopResizeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolStopResizeOptions} [poolStopResizeOptions] Additional + * parameters for the operation + */ + poolStopResizeOptions?: PoolStopResizeOptions; +} + +/** + * @interface + * An interface representing PoolUpdatePropertiesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolUpdatePropertiesOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolUpdatePropertiesOptions} [poolUpdatePropertiesOptions] + * Additional parameters for the operation + */ + poolUpdatePropertiesOptions?: PoolUpdatePropertiesOptions; +} + +/** + * @interface + * An interface representing PoolRemoveNodesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolRemoveNodesOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolRemoveNodesOptions} [poolRemoveNodesOptions] Additional + * parameters for the operation + */ + poolRemoveNodesOptions?: PoolRemoveNodesOptions; +} + +/** + * @interface + * An interface representing PoolListUsageMetricsNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolListUsageMetricsNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolListUsageMetricsNextOptions} + * [poolListUsageMetricsNextOptions] Additional parameters for the operation + */ + poolListUsageMetricsNextOptions?: PoolListUsageMetricsNextOptions; +} + +/** + * @interface + * An interface representing PoolListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PoolListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PoolListNextOptions} [poolListNextOptions] Additional parameters + * for the operation + */ + poolListNextOptions?: PoolListNextOptions; +} + +/** + * @interface + * An interface representing AccountListNodeAgentSkusOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountListNodeAgentSkusOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AccountListNodeAgentSkusOptions} + * [accountListNodeAgentSkusOptions] Additional parameters for the operation + */ + accountListNodeAgentSkusOptions?: AccountListNodeAgentSkusOptions; +} + +/** + * @interface + * An interface representing AccountListPoolNodeCountsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountListPoolNodeCountsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AccountListPoolNodeCountsOptions} + * [accountListPoolNodeCountsOptions] Additional parameters for the operation + */ + accountListPoolNodeCountsOptions?: AccountListPoolNodeCountsOptions; +} + +/** + * @interface + * An interface representing AccountListNodeAgentSkusNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountListNodeAgentSkusNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AccountListNodeAgentSkusNextOptions} + * [accountListNodeAgentSkusNextOptions] Additional parameters for the + * operation + */ + accountListNodeAgentSkusNextOptions?: AccountListNodeAgentSkusNextOptions; +} + +/** + * @interface + * An interface representing AccountListPoolNodeCountsNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AccountListPoolNodeCountsNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {AccountListPoolNodeCountsNextOptions} + * [accountListPoolNodeCountsNextOptions] Additional parameters for the + * operation + */ + accountListPoolNodeCountsNextOptions?: AccountListPoolNodeCountsNextOptions; +} + +/** + * @interface + * An interface representing JobGetAllLifetimeStatisticsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobGetAllLifetimeStatisticsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobGetAllLifetimeStatisticsOptions} + * [jobGetAllLifetimeStatisticsOptions] Additional parameters for the + * operation + */ + jobGetAllLifetimeStatisticsOptions?: JobGetAllLifetimeStatisticsOptions; +} + +/** + * @interface + * An interface representing JobDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobDeleteMethodOptions} [jobDeleteMethodOptions] Additional + * parameters for the operation + */ + jobDeleteMethodOptions?: JobDeleteMethodOptions; +} + +/** + * @interface + * An interface representing JobGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobGetOptions} [jobGetOptions] Additional parameters for the + * operation + */ + jobGetOptions?: JobGetOptions; +} + +/** + * @interface + * An interface representing JobPatchOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobPatchOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobPatchOptions} [jobPatchOptions] Additional parameters for the + * operation + */ + jobPatchOptions?: JobPatchOptions; +} + +/** + * @interface + * An interface representing JobUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobUpdateOptions} [jobUpdateOptions] Additional parameters for + * the operation + */ + jobUpdateOptions?: JobUpdateOptions; +} + +/** + * @interface + * An interface representing JobDisableOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobDisableOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobDisableOptions} [jobDisableOptions] Additional parameters for + * the operation + */ + jobDisableOptions?: JobDisableOptions; +} + +/** + * @interface + * An interface representing JobEnableOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobEnableOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobEnableOptions} [jobEnableOptions] Additional parameters for + * the operation + */ + jobEnableOptions?: JobEnableOptions; +} + +/** + * @interface + * An interface representing JobTerminateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobTerminateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [terminateReason] The text you want to appear as the + * job's TerminateReason. The default is 'UserTerminate'. + */ + terminateReason?: string; + /** + * @member {JobTerminateOptions} [jobTerminateOptions] Additional parameters + * for the operation + */ + jobTerminateOptions?: JobTerminateOptions; +} + +/** + * @interface + * An interface representing JobAddOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobAddOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobAddOptions} [jobAddOptions] Additional parameters for the + * operation + */ + jobAddOptions?: JobAddOptions; +} + +/** + * @interface + * An interface representing JobListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobListOptions} [jobListOptions] Additional parameters for the + * operation + */ + jobListOptions?: JobListOptions; +} + +/** + * @interface + * An interface representing JobListFromJobScheduleOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListFromJobScheduleOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobListFromJobScheduleOptions} [jobListFromJobScheduleOptions] + * Additional parameters for the operation + */ + jobListFromJobScheduleOptions?: JobListFromJobScheduleOptions; +} + +/** + * @interface + * An interface representing JobListPreparationAndReleaseTaskStatusOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListPreparationAndReleaseTaskStatusOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobListPreparationAndReleaseTaskStatusOptions} + * [jobListPreparationAndReleaseTaskStatusOptions] Additional parameters for + * the operation + */ + jobListPreparationAndReleaseTaskStatusOptions?: JobListPreparationAndReleaseTaskStatusOptions; +} + +/** + * @interface + * An interface representing JobGetTaskCountsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobGetTaskCountsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobGetTaskCountsOptions} [jobGetTaskCountsOptions] Additional + * parameters for the operation + */ + jobGetTaskCountsOptions?: JobGetTaskCountsOptions; +} + +/** + * @interface + * An interface representing JobListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobListNextOptions} [jobListNextOptions] Additional parameters + * for the operation + */ + jobListNextOptions?: JobListNextOptions; +} + +/** + * @interface + * An interface representing JobListFromJobScheduleNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListFromJobScheduleNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobListFromJobScheduleNextOptions} + * [jobListFromJobScheduleNextOptions] Additional parameters for the + * operation + */ + jobListFromJobScheduleNextOptions?: JobListFromJobScheduleNextOptions; +} + +/** + * @interface + * An interface representing JobListPreparationAndReleaseTaskStatusNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListPreparationAndReleaseTaskStatusNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobListPreparationAndReleaseTaskStatusNextOptions} + * [jobListPreparationAndReleaseTaskStatusNextOptions] Additional parameters + * for the operation + */ + jobListPreparationAndReleaseTaskStatusNextOptions?: JobListPreparationAndReleaseTaskStatusNextOptions; +} + +/** + * @interface + * An interface representing CertificateAddOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateAddOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {CertificateAddOptions} [certificateAddOptions] Additional + * parameters for the operation + */ + certificateAddOptions?: CertificateAddOptions; +} + +/** + * @interface + * An interface representing CertificateListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {CertificateListOptions} [certificateListOptions] Additional + * parameters for the operation + */ + certificateListOptions?: CertificateListOptions; +} + +/** + * @interface + * An interface representing CertificateCancelDeletionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateCancelDeletionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {CertificateCancelDeletionOptions} + * [certificateCancelDeletionOptions] Additional parameters for the operation + */ + certificateCancelDeletionOptions?: CertificateCancelDeletionOptions; +} + +/** + * @interface + * An interface representing CertificateDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {CertificateDeleteMethodOptions} [certificateDeleteMethodOptions] + * Additional parameters for the operation + */ + certificateDeleteMethodOptions?: CertificateDeleteMethodOptions; +} + +/** + * @interface + * An interface representing CertificateGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {CertificateGetOptions} [certificateGetOptions] Additional + * parameters for the operation + */ + certificateGetOptions?: CertificateGetOptions; +} + +/** + * @interface + * An interface representing CertificateListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {CertificateListNextOptions} [certificateListNextOptions] + * Additional parameters for the operation + */ + certificateListNextOptions?: CertificateListNextOptions; +} + +/** + * @interface + * An interface representing FileDeleteFromTaskOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileDeleteFromTaskOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [recursive] 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; + /** + * @member {FileDeleteFromTaskOptions} [fileDeleteFromTaskOptions] Additional + * parameters for the operation + */ + fileDeleteFromTaskOptions?: FileDeleteFromTaskOptions; +} + +/** + * @interface + * An interface representing FileGetFromTaskOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileGetFromTaskOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {FileGetFromTaskOptions} [fileGetFromTaskOptions] Additional + * parameters for the operation + */ + fileGetFromTaskOptions?: FileGetFromTaskOptions; +} + +/** + * @interface + * An interface representing FileGetPropertiesFromTaskOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileGetPropertiesFromTaskOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {FileGetPropertiesFromTaskOptions} + * [fileGetPropertiesFromTaskOptions] Additional parameters for the operation + */ + fileGetPropertiesFromTaskOptions?: FileGetPropertiesFromTaskOptions; +} + +/** + * @interface + * An interface representing FileDeleteFromComputeNodeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileDeleteFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [recursive] 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; + /** + * @member {FileDeleteFromComputeNodeOptions} + * [fileDeleteFromComputeNodeOptions] Additional parameters for the operation + */ + fileDeleteFromComputeNodeOptions?: FileDeleteFromComputeNodeOptions; +} + +/** + * @interface + * An interface representing FileGetFromComputeNodeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileGetFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {FileGetFromComputeNodeOptions} [fileGetFromComputeNodeOptions] + * Additional parameters for the operation + */ + fileGetFromComputeNodeOptions?: FileGetFromComputeNodeOptions; +} + +/** + * @interface + * An interface representing FileGetPropertiesFromComputeNodeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileGetPropertiesFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {FileGetPropertiesFromComputeNodeOptions} + * [fileGetPropertiesFromComputeNodeOptions] Additional parameters for the + * operation + */ + fileGetPropertiesFromComputeNodeOptions?: FileGetPropertiesFromComputeNodeOptions; +} + +/** + * @interface + * An interface representing FileListFromTaskOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileListFromTaskOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [recursive] 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; + /** + * @member {FileListFromTaskOptions} [fileListFromTaskOptions] Additional + * parameters for the operation + */ + fileListFromTaskOptions?: FileListFromTaskOptions; +} + +/** + * @interface + * An interface representing FileListFromComputeNodeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileListFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [recursive] Whether to list children of a directory. + */ + recursive?: boolean; + /** + * @member {FileListFromComputeNodeOptions} [fileListFromComputeNodeOptions] + * Additional parameters for the operation + */ + fileListFromComputeNodeOptions?: FileListFromComputeNodeOptions; +} + +/** + * @interface + * An interface representing FileListFromTaskNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileListFromTaskNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {FileListFromTaskNextOptions} [fileListFromTaskNextOptions] + * Additional parameters for the operation + */ + fileListFromTaskNextOptions?: FileListFromTaskNextOptions; +} + +/** + * @interface + * An interface representing FileListFromComputeNodeNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface FileListFromComputeNodeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {FileListFromComputeNodeNextOptions} + * [fileListFromComputeNodeNextOptions] Additional parameters for the + * operation + */ + fileListFromComputeNodeNextOptions?: FileListFromComputeNodeNextOptions; +} + +/** + * @interface + * An interface representing JobScheduleExistsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleExistsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleExistsOptions} [jobScheduleExistsOptions] Additional + * parameters for the operation + */ + jobScheduleExistsOptions?: JobScheduleExistsOptions; +} + +/** + * @interface + * An interface representing JobScheduleDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleDeleteMethodOptions} [jobScheduleDeleteMethodOptions] + * Additional parameters for the operation + */ + jobScheduleDeleteMethodOptions?: JobScheduleDeleteMethodOptions; +} + +/** + * @interface + * An interface representing JobScheduleGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleGetOptions} [jobScheduleGetOptions] Additional + * parameters for the operation + */ + jobScheduleGetOptions?: JobScheduleGetOptions; +} + +/** + * @interface + * An interface representing JobSchedulePatchOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobSchedulePatchOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobSchedulePatchOptions} [jobSchedulePatchOptions] Additional + * parameters for the operation + */ + jobSchedulePatchOptions?: JobSchedulePatchOptions; +} + +/** + * @interface + * An interface representing JobScheduleUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleUpdateOptions} [jobScheduleUpdateOptions] Additional + * parameters for the operation + */ + jobScheduleUpdateOptions?: JobScheduleUpdateOptions; +} + +/** + * @interface + * An interface representing JobScheduleDisableOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleDisableOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleDisableOptions} [jobScheduleDisableOptions] Additional + * parameters for the operation + */ + jobScheduleDisableOptions?: JobScheduleDisableOptions; +} + +/** + * @interface + * An interface representing JobScheduleEnableOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleEnableOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleEnableOptions} [jobScheduleEnableOptions] Additional + * parameters for the operation + */ + jobScheduleEnableOptions?: JobScheduleEnableOptions; +} + +/** + * @interface + * An interface representing JobScheduleTerminateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleTerminateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleTerminateOptions} [jobScheduleTerminateOptions] + * Additional parameters for the operation + */ + jobScheduleTerminateOptions?: JobScheduleTerminateOptions; +} + +/** + * @interface + * An interface representing JobScheduleAddOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleAddOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleAddOptions} [jobScheduleAddOptions] Additional + * parameters for the operation + */ + jobScheduleAddOptions?: JobScheduleAddOptions; +} + +/** + * @interface + * An interface representing JobScheduleListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleListOptions} [jobScheduleListOptions] Additional + * parameters for the operation + */ + jobScheduleListOptions?: JobScheduleListOptions; +} + +/** + * @interface + * An interface representing JobScheduleListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {JobScheduleListNextOptions} [jobScheduleListNextOptions] + * Additional parameters for the operation + */ + jobScheduleListNextOptions?: JobScheduleListNextOptions; +} + +/** + * @interface + * An interface representing TaskAddOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskAddOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskAddOptions} [taskAddOptions] Additional parameters for the + * operation + */ + taskAddOptions?: TaskAddOptions; +} + +/** + * @interface + * An interface representing TaskListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskListOptions} [taskListOptions] Additional parameters for the + * operation + */ + taskListOptions?: TaskListOptions; +} + +/** + * @interface + * An interface representing TaskAddCollectionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskAddCollectionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskAddCollectionOptions} [taskAddCollectionOptions] Additional + * parameters for the operation + */ + taskAddCollectionOptions?: TaskAddCollectionOptions; +} + +/** + * @interface + * An interface representing TaskDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskDeleteMethodOptions} [taskDeleteMethodOptions] Additional + * parameters for the operation + */ + taskDeleteMethodOptions?: TaskDeleteMethodOptions; +} + +/** + * @interface + * An interface representing TaskGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskGetOptions} [taskGetOptions] Additional parameters for the + * operation + */ + taskGetOptions?: TaskGetOptions; +} + +/** + * @interface + * An interface representing TaskUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskConstraints} [constraints] 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; + /** + * @member {TaskUpdateOptions} [taskUpdateOptions] Additional parameters for + * the operation + */ + taskUpdateOptions?: TaskUpdateOptions; +} + +/** + * @interface + * An interface representing TaskListSubtasksOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskListSubtasksOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskListSubtasksOptions} [taskListSubtasksOptions] Additional + * parameters for the operation + */ + taskListSubtasksOptions?: TaskListSubtasksOptions; +} + +/** + * @interface + * An interface representing TaskTerminateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskTerminateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskTerminateOptions} [taskTerminateOptions] Additional + * parameters for the operation + */ + taskTerminateOptions?: TaskTerminateOptions; +} + +/** + * @interface + * An interface representing TaskReactivateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskReactivateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskReactivateOptions} [taskReactivateOptions] Additional + * parameters for the operation + */ + taskReactivateOptions?: TaskReactivateOptions; +} + +/** + * @interface + * An interface representing TaskListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TaskListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {TaskListNextOptions} [taskListNextOptions] Additional parameters + * for the operation + */ + taskListNextOptions?: TaskListNextOptions; +} + +/** + * @interface + * An interface representing ComputeNodeAddUserOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeAddUserOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeAddUserOptions} [computeNodeAddUserOptions] Additional + * parameters for the operation + */ + computeNodeAddUserOptions?: ComputeNodeAddUserOptions; +} + +/** + * @interface + * An interface representing ComputeNodeDeleteUserOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeDeleteUserOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeDeleteUserOptions} [computeNodeDeleteUserOptions] + * Additional parameters for the operation + */ + computeNodeDeleteUserOptions?: ComputeNodeDeleteUserOptions; +} + +/** + * @interface + * An interface representing ComputeNodeUpdateUserOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeUpdateUserOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeUpdateUserOptions} [computeNodeUpdateUserOptions] + * Additional parameters for the operation + */ + computeNodeUpdateUserOptions?: ComputeNodeUpdateUserOptions; +} + +/** + * @interface + * An interface representing ComputeNodeGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeGetOptions} [computeNodeGetOptions] Additional + * parameters for the operation + */ + computeNodeGetOptions?: ComputeNodeGetOptions; +} + +/** + * @interface + * An interface representing ComputeNodeRebootOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeRebootOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeRebootOption} [nodeRebootOption] 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; + /** + * @member {ComputeNodeRebootOptions} [computeNodeRebootOptions] Additional + * parameters for the operation + */ + computeNodeRebootOptions?: ComputeNodeRebootOptions; +} + +/** + * @interface + * An interface representing ComputeNodeReimageOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeReimageOption} [nodeReimageOption] 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; + /** + * @member {ComputeNodeReimageOptions} [computeNodeReimageOptions] Additional + * parameters for the operation + */ + computeNodeReimageOptions?: ComputeNodeReimageOptions; +} + +/** + * @interface + * An interface representing ComputeNodeDisableSchedulingOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeDisableSchedulingOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {DisableComputeNodeSchedulingOption} [nodeDisableSchedulingOption] + * 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; + /** + * @member {ComputeNodeDisableSchedulingOptions} + * [computeNodeDisableSchedulingOptions] Additional parameters for the + * operation + */ + computeNodeDisableSchedulingOptions?: ComputeNodeDisableSchedulingOptions; +} + +/** + * @interface + * An interface representing ComputeNodeEnableSchedulingOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeEnableSchedulingOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeEnableSchedulingOptions} + * [computeNodeEnableSchedulingOptions] Additional parameters for the + * operation + */ + computeNodeEnableSchedulingOptions?: ComputeNodeEnableSchedulingOptions; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteLoginSettingsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeGetRemoteLoginSettingsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeGetRemoteLoginSettingsOptions} + * [computeNodeGetRemoteLoginSettingsOptions] Additional parameters for the + * operation + */ + computeNodeGetRemoteLoginSettingsOptions?: ComputeNodeGetRemoteLoginSettingsOptions; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteDesktopOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeGetRemoteDesktopOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeGetRemoteDesktopOptions} + * [computeNodeGetRemoteDesktopOptions] Additional parameters for the + * operation + */ + computeNodeGetRemoteDesktopOptions?: ComputeNodeGetRemoteDesktopOptions; +} + +/** + * @interface + * An interface representing ComputeNodeUploadBatchServiceLogsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeUploadBatchServiceLogsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeUploadBatchServiceLogsOptions} + * [computeNodeUploadBatchServiceLogsOptions] Additional parameters for the + * operation + */ + computeNodeUploadBatchServiceLogsOptions?: ComputeNodeUploadBatchServiceLogsOptions; +} + +/** + * @interface + * An interface representing ComputeNodeListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeListOptions} [computeNodeListOptions] Additional + * parameters for the operation + */ + computeNodeListOptions?: ComputeNodeListOptions; +} + +/** + * @interface + * An interface representing ComputeNodeListNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ComputeNodeListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {ComputeNodeListNextOptions} [computeNodeListNextOptions] + * Additional parameters for the operation + */ + computeNodeListNextOptions?: ComputeNodeListNextOptions; +} + +/** + * @interface + * An interface representing ApplicationListHeaders. + * Defines headers for List operation. + * + */ +export interface ApplicationListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing ApplicationGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApplicationGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing PoolListUsageMetricsHeaders. + * Defines headers for ListUsageMetrics operation. + * + */ +export interface PoolListUsageMetricsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing AccountListNodeAgentSkusHeaders. + * Defines headers for ListNodeAgentSkus operation. + * + */ +export interface AccountListNodeAgentSkusHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing AccountListPoolNodeCountsHeaders. + * Defines headers for ListPoolNodeCounts operation. + * + */ +export interface AccountListPoolNodeCountsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing PoolGetAllLifetimeStatisticsHeaders. + * Defines headers for GetAllLifetimeStatistics operation. + * + */ +export interface PoolGetAllLifetimeStatisticsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobGetAllLifetimeStatisticsHeaders. + * Defines headers for GetAllLifetimeStatistics operation. + * + */ +export interface JobGetAllLifetimeStatisticsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing CertificateAddHeaders. + * Defines headers for Add operation. + * + */ +export interface CertificateAddHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing CertificateListHeaders. + * Defines headers for List operation. + * + */ +export interface CertificateListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing CertificateCancelDeletionHeaders. + * Defines headers for CancelDeletion operation. + * + */ +export interface CertificateCancelDeletionHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing CertificateDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface CertificateDeleteHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing CertificateGetHeaders. + * Defines headers for Get operation. + * + */ +export interface CertificateGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing FileDeleteFromTaskHeaders. + * Defines headers for DeleteFromTask operation. + * + */ +export interface FileDeleteFromTaskHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing FileGetFromTaskHeaders. + * Defines headers for GetFromTask operation. + * + */ +export interface FileGetFromTaskHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {Date} [ocpCreationTime] The file creation time. + */ + ocpCreationTime: Date; + /** + * @member {boolean} [ocpBatchFileIsdirectory] Whether the object represents + * a directory. + */ + ocpBatchFileIsdirectory: boolean; + /** + * @member {string} [ocpBatchFileUrl] The URL of the file. + */ + ocpBatchFileUrl: string; + /** + * @member {string} [ocpBatchFileMode] The file mode attribute in octal + * format. + */ + ocpBatchFileMode: string; + /** + * @member {string} [contentType] The content type of the file. + */ + contentType: string; + /** + * @member {number} [contentLength] The length of the file. + */ + contentLength: number; +} + +/** + * @interface + * An interface representing FileGetPropertiesFromTaskHeaders. + * Defines headers for GetPropertiesFromTask operation. + * + */ +export interface FileGetPropertiesFromTaskHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {Date} [ocpCreationTime] The file creation time. + */ + ocpCreationTime: Date; + /** + * @member {boolean} [ocpBatchFileIsdirectory] Whether the object represents + * a directory. + */ + ocpBatchFileIsdirectory: boolean; + /** + * @member {string} [ocpBatchFileUrl] The URL of the file. + */ + ocpBatchFileUrl: string; + /** + * @member {string} [ocpBatchFileMode] The file mode attribute in octal + * format. + */ + ocpBatchFileMode: string; + /** + * @member {string} [contentType] The content type of the file. + */ + contentType: string; + /** + * @member {number} [contentLength] The length of the file. + */ + contentLength: number; +} + +/** + * @interface + * An interface representing FileDeleteFromComputeNodeHeaders. + * Defines headers for DeleteFromComputeNode operation. + * + */ +export interface FileDeleteFromComputeNodeHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing FileGetFromComputeNodeHeaders. + * Defines headers for GetFromComputeNode operation. + * + */ +export interface FileGetFromComputeNodeHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {Date} [ocpCreationTime] The file creation time. + */ + ocpCreationTime: Date; + /** + * @member {boolean} [ocpBatchFileIsdirectory] Whether the object represents + * a directory. + */ + ocpBatchFileIsdirectory: boolean; + /** + * @member {string} [ocpBatchFileUrl] The URL of the file. + */ + ocpBatchFileUrl: string; + /** + * @member {string} [ocpBatchFileMode] The file mode attribute in octal + * format. + */ + ocpBatchFileMode: string; + /** + * @member {string} [contentType] The content type of the file. + */ + contentType: string; + /** + * @member {number} [contentLength] The length of the file. + */ + contentLength: number; +} + +/** + * @interface + * An interface representing FileGetPropertiesFromComputeNodeHeaders. + * Defines headers for GetPropertiesFromComputeNode operation. + * + */ +export interface FileGetPropertiesFromComputeNodeHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {Date} [ocpCreationTime] The file creation time. + */ + ocpCreationTime: Date; + /** + * @member {boolean} [ocpBatchFileIsdirectory] Whether the object represents + * a directory. + */ + ocpBatchFileIsdirectory: boolean; + /** + * @member {string} [ocpBatchFileUrl] The URL of the file. + */ + ocpBatchFileUrl: string; + /** + * @member {string} [ocpBatchFileMode] The file mode attribute in octal + * format. + */ + ocpBatchFileMode: string; + /** + * @member {string} [contentType] The content type of the file. + */ + contentType: string; + /** + * @member {number} [contentLength] The length of the file. + */ + contentLength: number; +} + +/** + * @interface + * An interface representing FileListFromTaskHeaders. + * Defines headers for ListFromTask operation. + * + */ +export interface FileListFromTaskHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing FileListFromComputeNodeHeaders. + * Defines headers for ListFromComputeNode operation. + * + */ +export interface FileListFromComputeNodeHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobScheduleExistsHeaders. + * Defines headers for Exists operation. + * + */ +export interface JobScheduleExistsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobScheduleDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface JobScheduleDeleteHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing JobScheduleGetHeaders. + * Defines headers for Get operation. + * + */ +export interface JobScheduleGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTagHeader] 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; + /** + * @member {Date} [lastModifiedHeader] The time at which the resource was + * last modified. + */ + lastModifiedHeader: Date; +} + +/** + * @interface + * An interface representing JobSchedulePatchHeaders. + * Defines headers for Patch operation. + * + */ +export interface JobSchedulePatchHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobScheduleUpdateHeaders. + * Defines headers for Update operation. + * + */ +export interface JobScheduleUpdateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobScheduleDisableHeaders. + * Defines headers for Disable operation. + * + */ +export interface JobScheduleDisableHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobScheduleEnableHeaders. + * Defines headers for Enable operation. + * + */ +export interface JobScheduleEnableHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobScheduleTerminateHeaders. + * Defines headers for Terminate operation. + * + */ +export interface JobScheduleTerminateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobScheduleAddHeaders. + * Defines headers for Add operation. + * + */ +export interface JobScheduleAddHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobScheduleListHeaders. + * Defines headers for List operation. + * + */ +export interface JobScheduleListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface JobDeleteHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing JobGetHeaders. + * Defines headers for Get operation. + * + */ +export interface JobGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTagHeader] 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; + /** + * @member {Date} [lastModifiedHeader] The time at which the resource was + * last modified. + */ + lastModifiedHeader: Date; +} + +/** + * @interface + * An interface representing JobPatchHeaders. + * Defines headers for Patch operation. + * + */ +export interface JobPatchHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobUpdateHeaders. + * Defines headers for Update operation. + * + */ +export interface JobUpdateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobDisableHeaders. + * Defines headers for Disable operation. + * + */ +export interface JobDisableHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobEnableHeaders. + * Defines headers for Enable operation. + * + */ +export interface JobEnableHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobTerminateHeaders. + * Defines headers for Terminate operation. + * + */ +export interface JobTerminateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobAddHeaders. + * Defines headers for Add operation. + * + */ +export interface JobAddHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing JobListHeaders. + * Defines headers for List operation. + * + */ +export interface JobListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobListFromJobScheduleHeaders. + * Defines headers for ListFromJobSchedule operation. + * + */ +export interface JobListFromJobScheduleHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobListPreparationAndReleaseTaskStatusHeaders. + * Defines headers for ListPreparationAndReleaseTaskStatus operation. + * + */ +export interface JobListPreparationAndReleaseTaskStatusHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing JobGetTaskCountsHeaders. + * Defines headers for GetTaskCounts operation. + * + */ +export interface JobGetTaskCountsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing PoolAddHeaders. + * Defines headers for Add operation. + * + */ +export interface PoolAddHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolListHeaders. + * Defines headers for List operation. + * + */ +export interface PoolListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing PoolDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface PoolDeleteHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing PoolExistsHeaders. + * Defines headers for Exists operation. + * + */ +export interface PoolExistsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing PoolGetHeaders. + * Defines headers for Get operation. + * + */ +export interface PoolGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTagHeader] 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; + /** + * @member {Date} [lastModifiedHeader] The time at which the resource was + * last modified. + */ + lastModifiedHeader: Date; +} + +/** + * @interface + * An interface representing PoolPatchHeaders. + * Defines headers for Patch operation. + * + */ +export interface PoolPatchHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolDisableAutoScaleHeaders. + * Defines headers for DisableAutoScale operation. + * + */ +export interface PoolDisableAutoScaleHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolEnableAutoScaleHeaders. + * Defines headers for EnableAutoScale operation. + * + */ +export interface PoolEnableAutoScaleHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolEvaluateAutoScaleHeaders. + * Defines headers for EvaluateAutoScale operation. + * + */ +export interface PoolEvaluateAutoScaleHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolResizeHeaders. + * Defines headers for Resize operation. + * + */ +export interface PoolResizeHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolStopResizeHeaders. + * Defines headers for StopResize operation. + * + */ +export interface PoolStopResizeHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolUpdatePropertiesHeaders. + * Defines headers for UpdateProperties operation. + * + */ +export interface PoolUpdatePropertiesHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing PoolRemoveNodesHeaders. + * Defines headers for RemoveNodes operation. + * + */ +export interface PoolRemoveNodesHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing TaskAddHeaders. + * Defines headers for Add operation. + * + */ +export interface TaskAddHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing TaskListHeaders. + * Defines headers for List operation. + * + */ +export interface TaskListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing TaskAddCollectionHeaders. + * Defines headers for AddCollection operation. + * + */ +export interface TaskAddCollectionHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing TaskDeleteHeaders. + * Defines headers for Delete operation. + * + */ +export interface TaskDeleteHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing TaskGetHeaders. + * Defines headers for Get operation. + * + */ +export interface TaskGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTagHeader] 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; + /** + * @member {Date} [lastModifiedHeader] The time at which the resource was + * last modified. + */ + lastModifiedHeader: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing TaskUpdateHeaders. + * Defines headers for Update operation. + * + */ +export interface TaskUpdateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing TaskListSubtasksHeaders. + * Defines headers for ListSubtasks operation. + * + */ +export interface TaskListSubtasksHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing TaskTerminateHeaders. + * Defines headers for Terminate operation. + * + */ +export interface TaskTerminateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing TaskReactivateHeaders. + * Defines headers for Reactivate operation. + * + */ +export interface TaskReactivateHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeAddUserHeaders. + * Defines headers for AddUser operation. + * + */ +export interface ComputeNodeAddUserHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeDeleteUserHeaders. + * Defines headers for DeleteUser operation. + * + */ +export interface ComputeNodeDeleteUserHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing ComputeNodeUpdateUserHeaders. + * Defines headers for UpdateUser operation. + * + */ +export interface ComputeNodeUpdateUserHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ComputeNodeGetHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing ComputeNodeRebootHeaders. + * Defines headers for Reboot operation. + * + */ +export interface ComputeNodeRebootHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeReimageHeaders. + * Defines headers for Reimage operation. + * + */ +export interface ComputeNodeReimageHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeDisableSchedulingHeaders. + * Defines headers for DisableScheduling operation. + * + */ +export interface ComputeNodeDisableSchedulingHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeEnableSchedulingHeaders. + * Defines headers for EnableScheduling operation. + * + */ +export interface ComputeNodeEnableSchedulingHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; + /** + * @member {string} [dataServiceId] The OData ID of the resource to which the + * request applied. + */ + dataServiceId: string; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteLoginSettingsHeaders. + * Defines headers for GetRemoteLoginSettings operation. + * + */ +export interface ComputeNodeGetRemoteLoginSettingsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing ComputeNodeGetRemoteDesktopHeaders. + * Defines headers for GetRemoteDesktop operation. + * + */ +export interface ComputeNodeGetRemoteDesktopHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + +/** + * @interface + * An interface representing ComputeNodeUploadBatchServiceLogsHeaders. + * Defines headers for UploadBatchServiceLogs operation. + * + */ +export interface ComputeNodeUploadBatchServiceLogsHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; +} + +/** + * @interface + * An interface representing ComputeNodeListHeaders. + * Defines headers for List operation. + * + */ +export interface ComputeNodeListHeaders { + /** + * @member {string} [clientRequestId] The client-request-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; + /** + * @member {string} [requestId] A unique identifier for the request that was + * made to the Batch service. If a request is consistently failing and you + * have verified that the request is properly formulated, you may use this + * value to report the error to Microsoft. In your report, include the value + * of this request ID, 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; + /** + * @member {string} [eTag] 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; + /** + * @member {Date} [lastModified] The time at which the resource was last + * modified. + */ + lastModified: Date; +} + + +/** + * @interface + * An interface representing the ApplicationListResult. + * @summary The result of listing the applications available in an account. + * + * @extends Array + */ +export interface ApplicationListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @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 { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the CloudPoolListResult. + * @summary The result of listing the pools in an account. + * + * @extends Array + */ +export interface CloudPoolListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the AccountListNodeAgentSkusResult. + * @summary The result of listing the supported node agent SKUs. + * + * @extends Array + */ +export interface AccountListNodeAgentSkusResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the PoolNodeCountsListResult. + * @summary The result of listing the node counts in the account. + * + * @extends Array + */ +export interface PoolNodeCountsListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the CloudJobListResult. + * @summary The result of listing the jobs in an account. + * + * @extends Array + */ +export interface CloudJobListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @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 { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the CertificateListResult. + * @summary The result of listing the certificates in the account. + * + * @extends Array + */ +export interface CertificateListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @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 node. + * + * @extends Array + */ +export interface NodeFileListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the CloudJobScheduleListResult. + * @summary The result of listing the job schedules in an account. + * + * @extends Array + */ +export interface CloudJobScheduleListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the CloudTaskListResult. + * @summary The result of listing the tasks in a job. + * + * @extends Array + */ +export interface CloudTaskListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * @interface + * An interface representing the ComputeNodeListResult. + * @summary The result of listing the compute nodes in a pool. + * + * @extends Array + */ +export interface ComputeNodeListResult extends Array { + /** + * @member {string} [odatanextLink] + */ + odatanextLink?: string; +} + +/** + * Defines values for OSType. + * Possible values include: 'linux', 'windows' + * @readonly + * @enum {string} + */ +export type OSType = 'linux' | 'windows'; + +/** + * Defines values for AccessScope. + * Possible values include: 'job' + * @readonly + * @enum {string} + */ +export type AccessScope = 'job'; + +/** + * Defines values for CertificateState. + * Possible values include: 'active', 'deleting', 'deleteFailed' + * @readonly + * @enum {string} + */ +export type CertificateState = 'active' | 'deleting' | 'deletefailed'; + +/** + * Defines values for CertificateFormat. + * Possible values include: 'pfx', 'cer' + * @readonly + * @enum {string} + */ +export type CertificateFormat = 'pfx' | 'cer'; + +/** + * Defines values for JobAction. + * Possible values include: 'none', 'disable', 'terminate' + * @readonly + * @enum {string} + */ +export type JobAction = 'none' | 'disable' | 'terminate'; + +/** + * Defines values for DependencyAction. + * Possible values include: 'satisfy', 'block' + * @readonly + * @enum {string} + */ +export type DependencyAction = 'satisfy' | 'block'; + +/** + * Defines values for AutoUserScope. + * Possible values include: 'task', 'pool' + * @readonly + * @enum {string} + */ +export type AutoUserScope = 'task' | 'pool'; + +/** + * Defines values for ElevationLevel. + * Possible values include: 'nonAdmin', 'admin' + * @readonly + * @enum {string} + */ +export type ElevationLevel = 'nonadmin' | 'admin'; + +/** + * Defines values for LoginMode. + * Possible values include: 'batch', 'interactive' + * @readonly + * @enum {string} + */ +export type LoginMode = 'batch' | 'interactive'; + +/** + * Defines values for OutputFileUploadCondition. + * Possible values include: 'taskSuccess', 'taskFailure', 'taskCompletion' + * @readonly + * @enum {string} + */ +export type OutputFileUploadCondition = 'tasksuccess' | 'taskfailure' | 'taskcompletion'; + +/** + * Defines values for ComputeNodeFillType. + * Possible values include: 'spread', 'pack' + * @readonly + * @enum {string} + */ +export type ComputeNodeFillType = 'spread' | 'pack'; + +/** + * Defines values for CertificateStoreLocation. + * Possible values include: 'currentUser', 'localMachine' + * @readonly + * @enum {string} + */ +export type CertificateStoreLocation = 'currentuser' | 'localmachine'; + +/** + * Defines values for CertificateVisibility. + * Possible values include: 'startTask', 'task', 'remoteUser' + * @readonly + * @enum {string} + */ +export type CertificateVisibility = 'starttask' | 'task' | 'remoteuser'; + +/** + * Defines values for CachingType. + * Possible values include: 'none', 'readOnly', 'readWrite' + * @readonly + * @enum {string} + */ +export type CachingType = 'none' | 'readonly' | 'readwrite'; + +/** + * Defines values for StorageAccountType. + * Possible values include: 'StandardLRS', 'PremiumLRS' + * @readonly + * @enum {string} + */ +export type StorageAccountType = 'standard_lrs' | 'premium_lrs'; + +/** + * Defines values for DynamicVNetAssignmentScope. + * Possible values include: 'none', 'job' + * @readonly + * @enum {string} + */ +export type DynamicVNetAssignmentScope = 'none' | 'job'; + +/** + * Defines values for InboundEndpointProtocol. + * Possible values include: 'tcp', 'udp' + * @readonly + * @enum {string} + */ +export type InboundEndpointProtocol = 'tcp' | 'udp'; + +/** + * Defines values for NetworkSecurityGroupRuleAccess. + * Possible values include: 'allow', 'deny' + * @readonly + * @enum {string} + */ +export type NetworkSecurityGroupRuleAccess = 'allow' | 'deny'; + +/** + * Defines values for PoolLifetimeOption. + * Possible values include: 'jobSchedule', 'job' + * @readonly + * @enum {string} + */ +export type PoolLifetimeOption = 'jobschedule' | 'job'; + +/** + * Defines values for OnAllTasksComplete. + * Possible values include: 'noAction', 'terminateJob' + * @readonly + * @enum {string} + */ +export type OnAllTasksComplete = 'noaction' | 'terminatejob'; + +/** + * Defines values for OnTaskFailure. + * Possible values include: 'noAction', 'performExitOptionsJobAction' + * @readonly + * @enum {string} + */ +export type OnTaskFailure = 'noaction' | 'performexitoptionsjobaction'; + +/** + * Defines values for JobScheduleState. + * Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting' + * @readonly + * @enum {string} + */ +export type JobScheduleState = 'active' | 'completed' | 'disabled' | 'terminating' | 'deleting'; + +/** + * Defines values for ErrorCategory. + * Possible values include: 'userError', 'serverError' + * @readonly + * @enum {string} + */ +export type ErrorCategory = 'usererror' | 'servererror'; + +/** + * 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'; + +/** + * Defines values for JobPreparationTaskState. + * Possible values include: 'running', 'completed' + * @readonly + * @enum {string} + */ +export type JobPreparationTaskState = 'running' | 'completed'; + +/** + * Defines values for TaskExecutionResult. + * Possible values include: 'success', 'failure' + * @readonly + * @enum {string} + */ +export type TaskExecutionResult = 'success' | 'failure'; + +/** + * Defines values for JobReleaseTaskState. + * Possible values include: 'running', 'completed' + * @readonly + * @enum {string} + */ +export type JobReleaseTaskState = 'running' | 'completed'; + +/** + * Defines values for PoolState. + * Possible values include: 'active', 'deleting' + * @readonly + * @enum {string} + */ +export type PoolState = 'active' | 'deleting'; + +/** + * Defines values for AllocationState. + * Possible values include: 'steady', 'resizing', 'stopping' + * @readonly + * @enum {string} + */ +export type AllocationState = 'steady' | 'resizing' | 'stopping'; + +/** + * Defines values for TaskState. + * Possible values include: 'active', 'preparing', 'running', 'completed' + * @readonly + * @enum {string} + */ +export type TaskState = 'active' | 'preparing' | 'running' | 'completed'; + +/** + * Defines values for TaskAddStatus. + * Possible values include: 'success', 'clientError', 'serverError' + * @readonly + * @enum {string} + */ +export type TaskAddStatus = 'success' | 'clienterror' | 'servererror'; + +/** + * Defines values for SubtaskState. + * Possible values include: 'preparing', 'running', 'completed' + * @readonly + * @enum {string} + */ +export type SubtaskState = 'preparing' | 'running' | 'completed'; + +/** + * Defines values for StartTaskState. + * Possible values include: 'running', 'completed' + * @readonly + * @enum {string} + */ +export type StartTaskState = 'running' | 'completed'; + +/** + * 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'; + +/** + * Defines values for SchedulingState. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} + */ +export type SchedulingState = 'enabled' | 'disabled'; + +/** + * Defines values for DisableJobOption. + * Possible values include: 'requeue', 'terminate', 'wait' + * @readonly + * @enum {string} + */ +export type DisableJobOption = 'requeue' | 'terminate' | 'wait'; + +/** + * Defines values for ComputeNodeDeallocationOption. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' + * @readonly + * @enum {string} + */ +export type ComputeNodeDeallocationOption = 'requeue' | 'terminate' | 'taskcompletion' | 'retaineddata'; + +/** + * Defines values for ComputeNodeRebootOption. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' + * @readonly + * @enum {string} + */ +export type ComputeNodeRebootOption = 'requeue' | 'terminate' | 'taskcompletion' | 'retaineddata'; + +/** + * Defines values for ComputeNodeReimageOption. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' + * @readonly + * @enum {string} + */ +export type ComputeNodeReimageOption = 'requeue' | 'terminate' | 'taskcompletion' | 'retaineddata'; + +/** + * Defines values for DisableComputeNodeSchedulingOption. + * Possible values include: 'requeue', 'terminate', 'taskCompletion' + * @readonly + * @enum {string} + */ +export type DisableComputeNodeSchedulingOption = 'requeue' | 'terminate' | 'taskcompletion'; + +/** + * 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; + }; +}; + +/** + * 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 exists operation. + */ +export type PoolExistsResponse = PoolExistsHeaders & { + /** + * The parsed response body. + */ + body: boolean; + /** + * 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 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; + }; +}; + +/** + * 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 enableAutoScale operation. + */ +export type PoolEnableAutoScaleResponse = PoolEnableAutoScaleHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolEnableAutoScaleHeaders; + }; +}; + +/** + * 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 stopResize operation. + */ +export type PoolStopResizeResponse = PoolStopResizeHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolStopResizeHeaders; + }; +}; + +/** + * 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 removeNodes operation. + */ +export type PoolRemoveNodesResponse = PoolRemoveNodesHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PoolRemoveNodesHeaders; + }; +}; + +/** + * Contains response data for the listNodeAgentSkus operation. + */ +export type AccountListNodeAgentSkusResponse = AccountListNodeAgentSkusResult & AccountListNodeAgentSkusHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AccountListNodeAgentSkusHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccountListNodeAgentSkusResult; + }; +}; + +/** + * 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 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; + }; +}; + +/** + * 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 disable operation. + */ +export type JobDisableResponse = JobDisableHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: JobDisableHeaders; + }; +}; + +/** + * 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 terminate operation. + */ +export type JobTerminateResponse = JobTerminateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: JobTerminateHeaders; + }; +}; + +/** + * 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 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 = TaskCounts & 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: TaskCounts; + }; +}; + +/** + * 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; + }; +}; + +/** + * 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 deleteMethod operation. + */ +export type CertificateDeleteResponse = CertificateDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateDeleteHeaders; + }; +}; + +/** + * 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 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; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileGetFromTaskHeaders; + }; +}; + +/** + * 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 deleteFromComputeNode operation. + */ +export type FileDeleteFromComputeNodeResponse = FileDeleteFromComputeNodeHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileDeleteFromComputeNodeHeaders; + }; +}; + +/** + * 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; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileGetFromComputeNodeHeaders; + }; +}; + +/** + * 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; + }; +}; + +/** + * 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; + /** + * 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; + }; +}; + +/** + * 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 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; + }; +}; + +/** + * 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 disable operation. + */ +export type JobScheduleDisableResponse = JobScheduleDisableHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: JobScheduleDisableHeaders; + }; +}; + +/** + * 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 terminate operation. + */ +export type JobScheduleTerminateResponse = JobScheduleTerminateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: JobScheduleTerminateHeaders; + }; +}; + +/** + * 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 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; + }; +}; + +/** + * 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 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; + }; +}; + +/** + * 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 reactivate operation. + */ +export type TaskReactivateResponse = TaskReactivateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TaskReactivateHeaders; + }; +}; + +/** + * 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 deleteUser operation. + */ +export type ComputeNodeDeleteUserResponse = ComputeNodeDeleteUserHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ComputeNodeDeleteUserHeaders; + }; +}; + +/** + * 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 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; + }; +}; + +/** + * 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 disableScheduling operation. + */ +export type ComputeNodeDisableSchedulingResponse = ComputeNodeDisableSchedulingHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ComputeNodeDisableSchedulingHeaders; + }; +}; + +/** + * 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 = 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. + */ +export type ComputeNodeGetRemoteDesktopResponse = ComputeNodeGetRemoteDesktopHeaders & { + /** + * 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; + /** + * 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; + }; +}; diff --git a/sdk/batch/batch/lib/models/jobMappers.ts b/sdk/batch/batch/lib/models/jobMappers.ts new file mode 100644 index 000000000000..f984c4ef0fa4 --- /dev/null +++ b/sdk/batch/batch/lib/models/jobMappers.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + JobStatistics, + JobGetAllLifetimeStatisticsHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + JobDeleteHeaders, + CloudJob, + JobConstraints, + JobManagerTask, + TaskContainerSettings, + ContainerRegistry, + ResourceFile, + OutputFile, + OutputFileDestination, + OutputFileBlobContainerDestination, + OutputFileUploadOptions, + EnvironmentSetting, + TaskConstraints, + UserIdentity, + AutoUserSpecification, + ApplicationPackageReference, + AuthenticationTokenSettings, + JobPreparationTask, + JobReleaseTask, + PoolInformation, + AutoPoolSpecification, + PoolSpecification, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + TaskSchedulingPolicy, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNATPool, + NetworkSecurityGroupRule, + StartTask, + CertificateReference, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + JobNetworkConfiguration, + JobExecutionInformation, + JobSchedulingError, + NameValuePair, + JobGetHeaders, + JobPatchParameter, + JobPatchHeaders, + JobUpdateParameter, + JobUpdateHeaders, + JobDisableParameter, + JobDisableHeaders, + JobEnableHeaders, + JobTerminateParameter, + JobTerminateHeaders, + JobAddParameter, + JobAddHeaders, + CloudJobListResult, + JobListHeaders, + JobListFromJobScheduleHeaders, + CloudJobListPreparationAndReleaseTaskStatusResult, + JobPreparationAndReleaseTaskExecutionInformation, + JobPreparationTaskExecutionInformation, + TaskContainerExecutionInformation, + TaskFailureInformation, + JobReleaseTaskExecutionInformation, + JobListPreparationAndReleaseTaskStatusHeaders, + TaskCounts, + JobGetTaskCountsHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/jobScheduleMappers.ts b/sdk/batch/batch/lib/models/jobScheduleMappers.ts new file mode 100644 index 000000000000..9899e97f6894 --- /dev/null +++ b/sdk/batch/batch/lib/models/jobScheduleMappers.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + JobScheduleExistsHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + JobScheduleDeleteHeaders, + CloudJobSchedule, + Schedule, + JobSpecification, + JobNetworkConfiguration, + JobConstraints, + JobManagerTask, + TaskContainerSettings, + ContainerRegistry, + ResourceFile, + OutputFile, + OutputFileDestination, + OutputFileBlobContainerDestination, + OutputFileUploadOptions, + EnvironmentSetting, + TaskConstraints, + UserIdentity, + AutoUserSpecification, + ApplicationPackageReference, + AuthenticationTokenSettings, + JobPreparationTask, + JobReleaseTask, + PoolInformation, + AutoPoolSpecification, + PoolSpecification, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + TaskSchedulingPolicy, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNATPool, + NetworkSecurityGroupRule, + StartTask, + CertificateReference, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + JobScheduleExecutionInformation, + RecentJob, + JobScheduleStatistics, + JobScheduleGetHeaders, + JobSchedulePatchParameter, + JobSchedulePatchHeaders, + JobScheduleUpdateParameter, + JobScheduleUpdateHeaders, + JobScheduleDisableHeaders, + JobScheduleEnableHeaders, + JobScheduleTerminateHeaders, + JobScheduleAddParameter, + JobScheduleAddHeaders, + CloudJobScheduleListResult, + JobScheduleListHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/mappers.ts b/sdk/batch/batch/lib/models/mappers.ts new file mode 100644 index 000000000000..e2f47fb51dc2 --- /dev/null +++ b/sdk/batch/batch/lib/models/mappers.ts @@ -0,0 +1,13070 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * 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"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const PoolUsageMetrics: msRest.CompositeMapper = { + serializedName: "PoolUsageMetrics", + type: { + name: "Composite", + className: "PoolUsageMetrics", + modelProperties: { + poolId: { + required: true, + serializedName: "poolId", + type: { + name: "String" + } + }, + startTime: { + required: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + required: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + totalCoreHours: { + required: true, + serializedName: "totalCoreHours", + type: { + name: "Number" + } + } + } + } +}; + +export const ImageReference: msRest.CompositeMapper = { + serializedName: "ImageReference", + type: { + name: "Composite", + className: "ImageReference", + modelProperties: { + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + offer: { + serializedName: "offer", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + virtualMachineImageId: { + serializedName: "virtualMachineImageId", + type: { + name: "String" + } + } + } + } +}; + +export const NodeAgentSku: msRest.CompositeMapper = { + serializedName: "NodeAgentSku", + type: { + name: "Composite", + className: "NodeAgentSku", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + verifiedImageReferences: { + serializedName: "verifiedImageReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageReference" + } + } + } + }, + osType: { + serializedName: "osType", + type: { + name: "Enum", + allowedValues: [ + "linux", + "windows" + ] + } + } + } + } +}; + +export const AuthenticationTokenSettings: msRest.CompositeMapper = { + serializedName: "AuthenticationTokenSettings", + type: { + name: "Composite", + className: "AuthenticationTokenSettings", + modelProperties: { + access: { + serializedName: "access", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "job" + ] + } + } + } + } + } + } +}; + +export const UsageStatistics: msRest.CompositeMapper = { + serializedName: "UsageStatistics", + type: { + name: "Composite", + className: "UsageStatistics", + modelProperties: { + startTime: { + required: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + lastUpdateTime: { + required: true, + serializedName: "lastUpdateTime", + type: { + name: "DateTime" + } + }, + dedicatedCoreTime: { + required: true, + serializedName: "dedicatedCoreTime", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const ResourceStatistics: msRest.CompositeMapper = { + serializedName: "ResourceStatistics", + type: { + name: "Composite", + className: "ResourceStatistics", + modelProperties: { + startTime: { + required: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + lastUpdateTime: { + required: true, + serializedName: "lastUpdateTime", + type: { + name: "DateTime" + } + }, + avgCPUPercentage: { + required: true, + serializedName: "avgCPUPercentage", + type: { + name: "Number" + } + }, + avgMemoryGiB: { + required: true, + serializedName: "avgMemoryGiB", + type: { + name: "Number" + } + }, + peakMemoryGiB: { + required: true, + serializedName: "peakMemoryGiB", + type: { + name: "Number" + } + }, + avgDiskGiB: { + required: true, + serializedName: "avgDiskGiB", + type: { + name: "Number" + } + }, + peakDiskGiB: { + required: true, + serializedName: "peakDiskGiB", + type: { + name: "Number" + } + }, + diskReadIOps: { + required: true, + serializedName: "diskReadIOps", + type: { + name: "Number" + } + }, + diskWriteIOps: { + required: true, + serializedName: "diskWriteIOps", + type: { + name: "Number" + } + }, + diskReadGiB: { + required: true, + serializedName: "diskReadGiB", + type: { + name: "Number" + } + }, + diskWriteGiB: { + required: true, + serializedName: "diskWriteGiB", + type: { + name: "Number" + } + }, + networkReadGiB: { + required: true, + serializedName: "networkReadGiB", + type: { + name: "Number" + } + }, + networkWriteGiB: { + required: true, + serializedName: "networkWriteGiB", + type: { + name: "Number" + } + } + } + } +}; + +export const PoolStatistics: msRest.CompositeMapper = { + serializedName: "PoolStatistics", + type: { + name: "Composite", + className: "PoolStatistics", + 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" + } + }, + usageStats: { + serializedName: "usageStats", + type: { + name: "Composite", + className: "UsageStatistics" + } + }, + resourceStats: { + serializedName: "resourceStats", + type: { + name: "Composite", + className: "ResourceStatistics" + } + } + } + } +}; + +export const JobStatistics: msRest.CompositeMapper = { + serializedName: "JobStatistics", + type: { + name: "Composite", + className: "JobStatistics", + 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 NameValuePair: msRest.CompositeMapper = { + serializedName: "NameValuePair", + type: { + name: "Composite", + className: "NameValuePair", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const DeleteCertificateError: msRest.CompositeMapper = { + serializedName: "DeleteCertificateError", + type: { + name: "Composite", + className: "DeleteCertificateError", + 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 Certificate: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "Certificate", + modelProperties: { + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String" + } + }, + thumbprintAlgorithm: { + serializedName: "thumbprintAlgorithm", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "Enum", + allowedValues: [ + "active", + "deleting", + "deletefailed" + ] + } + }, + stateTransitionTime: { + serializedName: "stateTransitionTime", + type: { + name: "DateTime" + } + }, + previousState: { + serializedName: "previousState", + type: { + name: "Enum", + allowedValues: [ + "active", + "deleting", + "deletefailed" + ] + } + }, + previousStateTransitionTime: { + serializedName: "previousStateTransitionTime", + type: { + name: "DateTime" + } + }, + publicData: { + serializedName: "publicData", + type: { + name: "String" + } + }, + deleteCertificateError: { + serializedName: "deleteCertificateError", + type: { + name: "Composite", + className: "DeleteCertificateError" + } + } + } + } +}; + +export const ApplicationPackageReference: msRest.CompositeMapper = { + serializedName: "ApplicationPackageReference", + type: { + name: "Composite", + className: "ApplicationPackageReference", + modelProperties: { + applicationId: { + required: true, + serializedName: "applicationId", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationSummary: msRest.CompositeMapper = { + serializedName: "ApplicationSummary", + type: { + name: "Composite", + className: "ApplicationSummary", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + displayName: { + required: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + versions: { + required: true, + serializedName: "versions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const CertificateAddParameter: msRest.CompositeMapper = { + serializedName: "CertificateAddParameter", + type: { + name: "Composite", + className: "CertificateAddParameter", + modelProperties: { + thumbprint: { + required: true, + serializedName: "thumbprint", + type: { + name: "String" + } + }, + thumbprintAlgorithm: { + required: true, + serializedName: "thumbprintAlgorithm", + type: { + name: "String" + } + }, + data: { + required: true, + serializedName: "data", + type: { + name: "String" + } + }, + certificateFormat: { + serializedName: "certificateFormat", + type: { + name: "Enum", + allowedValues: [ + "pfx", + "cer" + ] + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const FileProperties: msRest.CompositeMapper = { + serializedName: "FileProperties", + type: { + name: "Composite", + className: "FileProperties", + modelProperties: { + creationTime: { + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + lastModified: { + required: true, + serializedName: "lastModified", + type: { + name: "DateTime" + } + }, + contentLength: { + required: true, + serializedName: "contentLength", + type: { + name: "Number" + } + }, + contentType: { + serializedName: "contentType", + type: { + name: "String" + } + }, + fileMode: { + serializedName: "fileMode", + type: { + name: "String" + } + } + } + } +}; + +export const NodeFile: msRest.CompositeMapper = { + serializedName: "NodeFile", + type: { + name: "Composite", + className: "NodeFile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + isDirectory: { + serializedName: "isDirectory", + type: { + name: "Boolean" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FileProperties" + } + } + } + } +}; + +export const Schedule: msRest.CompositeMapper = { + serializedName: "Schedule", + type: { + name: "Composite", + className: "Schedule", + modelProperties: { + doNotRunUntil: { + serializedName: "doNotRunUntil", + type: { + name: "DateTime" + } + }, + doNotRunAfter: { + serializedName: "doNotRunAfter", + type: { + name: "DateTime" + } + }, + startWindow: { + serializedName: "startWindow", + type: { + name: "TimeSpan" + } + }, + recurrenceInterval: { + serializedName: "recurrenceInterval", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const JobConstraints: msRest.CompositeMapper = { + serializedName: "JobConstraints", + type: { + name: "Composite", + className: "JobConstraints", + modelProperties: { + maxWallClockTime: { + serializedName: "maxWallClockTime", + type: { + name: "TimeSpan" + } + }, + maxTaskRetryCount: { + serializedName: "maxTaskRetryCount", + type: { + name: "Number" + } + } + } + } +}; + +export const JobNetworkConfiguration: msRest.CompositeMapper = { + serializedName: "JobNetworkConfiguration", + type: { + name: "Composite", + className: "JobNetworkConfiguration", + modelProperties: { + subnetId: { + required: true, + serializedName: "subnetId", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistry: msRest.CompositeMapper = { + serializedName: "ContainerRegistry", + type: { + name: "Composite", + className: "ContainerRegistry", + modelProperties: { + registryServer: { + serializedName: "registryServer", + type: { + name: "String" + } + }, + userName: { + required: true, + serializedName: "username", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const TaskContainerSettings: msRest.CompositeMapper = { + serializedName: "TaskContainerSettings", + type: { + name: "Composite", + className: "TaskContainerSettings", + modelProperties: { + containerRunOptions: { + serializedName: "containerRunOptions", + type: { + name: "String" + } + }, + imageName: { + required: true, + serializedName: "imageName", + type: { + name: "String" + } + }, + registry: { + serializedName: "registry", + type: { + name: "Composite", + className: "ContainerRegistry" + } + } + } + } +}; + +export const ResourceFile: msRest.CompositeMapper = { + serializedName: "ResourceFile", + type: { + name: "Composite", + className: "ResourceFile", + modelProperties: { + autoStorageContainerName: { + serializedName: "autoStorageContainerName", + type: { + name: "String" + } + }, + storageContainerUrl: { + serializedName: "storageContainerUrl", + type: { + name: "String" + } + }, + httpUrl: { + serializedName: "httpUrl", + type: { + name: "String" + } + }, + blobPrefix: { + serializedName: "blobPrefix", + type: { + name: "String" + } + }, + filePath: { + serializedName: "filePath", + type: { + name: "String" + } + }, + fileMode: { + serializedName: "fileMode", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentSetting: msRest.CompositeMapper = { + serializedName: "EnvironmentSetting", + type: { + name: "Composite", + className: "EnvironmentSetting", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ExitOptions: msRest.CompositeMapper = { + serializedName: "ExitOptions", + type: { + name: "Composite", + className: "ExitOptions", + modelProperties: { + jobAction: { + serializedName: "jobAction", + type: { + name: "Enum", + allowedValues: [ + "none", + "disable", + "terminate" + ] + } + }, + dependencyAction: { + serializedName: "dependencyAction", + type: { + name: "Enum", + allowedValues: [ + "satisfy", + "block" + ] + } + } + } + } +}; + +export const ExitCodeMapping: msRest.CompositeMapper = { + serializedName: "ExitCodeMapping", + type: { + name: "Composite", + className: "ExitCodeMapping", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "Number" + } + }, + exitOptions: { + required: true, + serializedName: "exitOptions", + type: { + name: "Composite", + className: "ExitOptions" + } + } + } + } +}; + +export const ExitCodeRangeMapping: msRest.CompositeMapper = { + serializedName: "ExitCodeRangeMapping", + type: { + name: "Composite", + className: "ExitCodeRangeMapping", + modelProperties: { + start: { + required: true, + serializedName: "start", + type: { + name: "Number" + } + }, + end: { + required: true, + serializedName: "end", + type: { + name: "Number" + } + }, + exitOptions: { + required: true, + serializedName: "exitOptions", + type: { + name: "Composite", + className: "ExitOptions" + } + } + } + } +}; + +export const ExitConditions: msRest.CompositeMapper = { + serializedName: "ExitConditions", + type: { + name: "Composite", + className: "ExitConditions", + modelProperties: { + exitCodes: { + serializedName: "exitCodes", + 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" + } + }, + default: { + serializedName: "default", + type: { + name: "Composite", + className: "ExitOptions" + } + } + } + } +}; + +export const AutoUserSpecification: msRest.CompositeMapper = { + serializedName: "AutoUserSpecification", + type: { + name: "Composite", + className: "AutoUserSpecification", + modelProperties: { + scope: { + serializedName: "scope", + type: { + name: "Enum", + allowedValues: [ + "task", + "pool" + ] + } + }, + elevationLevel: { + serializedName: "elevationLevel", + type: { + name: "Enum", + allowedValues: [ + "nonadmin", + "admin" + ] + } + } + } + } +}; + +export const UserIdentity: msRest.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + modelProperties: { + userName: { + serializedName: "username", + type: { + name: "String" + } + }, + autoUser: { + serializedName: "autoUser", + type: { + name: "Composite", + className: "AutoUserSpecification" + } + } + } + } +}; + +export const LinuxUserConfiguration: msRest.CompositeMapper = { + serializedName: "LinuxUserConfiguration", + type: { + name: "Composite", + className: "LinuxUserConfiguration", + modelProperties: { + uid: { + serializedName: "uid", + type: { + name: "Number" + } + }, + gid: { + serializedName: "gid", + type: { + name: "Number" + } + }, + sshPrivateKey: { + serializedName: "sshPrivateKey", + type: { + name: "String" + } + } + } + } +}; + +export const WindowsUserConfiguration: msRest.CompositeMapper = { + serializedName: "WindowsUserConfiguration", + type: { + name: "Composite", + className: "WindowsUserConfiguration", + modelProperties: { + loginMode: { + serializedName: "loginMode", + type: { + name: "Enum", + allowedValues: [ + "batch", + "interactive" + ] + } + } + } + } +}; + +export const UserAccount: msRest.CompositeMapper = { + serializedName: "UserAccount", + type: { + name: "Composite", + className: "UserAccount", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "password", + type: { + name: "String" + } + }, + elevationLevel: { + serializedName: "elevationLevel", + type: { + name: "Enum", + allowedValues: [ + "nonadmin", + "admin" + ] + } + }, + linuxUserConfiguration: { + serializedName: "linuxUserConfiguration", + type: { + name: "Composite", + className: "LinuxUserConfiguration" + } + }, + windowsUserConfiguration: { + serializedName: "windowsUserConfiguration", + type: { + name: "Composite", + className: "WindowsUserConfiguration" + } + } + } + } +}; + +export const TaskConstraints: msRest.CompositeMapper = { + serializedName: "TaskConstraints", + type: { + name: "Composite", + className: "TaskConstraints", + modelProperties: { + maxWallClockTime: { + serializedName: "maxWallClockTime", + type: { + name: "TimeSpan" + } + }, + retentionTime: { + serializedName: "retentionTime", + type: { + name: "TimeSpan" + } + }, + maxTaskRetryCount: { + serializedName: "maxTaskRetryCount", + type: { + name: "Number" + } + } + } + } +}; + +export const OutputFileBlobContainerDestination: msRest.CompositeMapper = { + serializedName: "OutputFileBlobContainerDestination", + type: { + name: "Composite", + className: "OutputFileBlobContainerDestination", + modelProperties: { + path: { + serializedName: "path", + type: { + name: "String" + } + }, + containerUrl: { + required: true, + serializedName: "containerUrl", + type: { + name: "String" + } + } + } + } +}; + +export const OutputFileDestination: msRest.CompositeMapper = { + serializedName: "OutputFileDestination", + type: { + name: "Composite", + className: "OutputFileDestination", + modelProperties: { + container: { + serializedName: "container", + type: { + name: "Composite", + className: "OutputFileBlobContainerDestination" + } + } + } + } +}; + +export const OutputFileUploadOptions: msRest.CompositeMapper = { + serializedName: "OutputFileUploadOptions", + type: { + name: "Composite", + className: "OutputFileUploadOptions", + modelProperties: { + uploadCondition: { + 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" + } + }, + destination: { + required: true, + serializedName: "destination", + type: { + name: "Composite", + className: "OutputFileDestination" + } + }, + uploadOptions: { + required: true, + serializedName: "uploadOptions", + type: { + name: "Composite", + className: "OutputFileUploadOptions" + } + } + } + } +}; + +export const JobManagerTask: msRest.CompositeMapper = { + serializedName: "JobManagerTask", + type: { + name: "Composite", + className: "JobManagerTask", + 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" + } + }, + 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" + } + } + } + }, + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "TaskConstraints" + } + }, + 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 JobPreparationTask: msRest.CompositeMapper = { + serializedName: "JobPreparationTask", + type: { + name: "Composite", + className: "JobPreparationTask", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + commandLine: { + required: true, + 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" + } + } + } + }, + environmentSettings: { + serializedName: "environmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "TaskConstraints" + } + }, + waitForSuccess: { + serializedName: "waitForSuccess", + type: { + name: "Boolean" + } + }, + userIdentity: { + serializedName: "userIdentity", + type: { + name: "Composite", + className: "UserIdentity" + } + }, + rerunOnNodeRebootAfterSuccess: { + serializedName: "rerunOnNodeRebootAfterSuccess", + type: { + name: "Boolean" + } + } + } + } +}; + +export const JobReleaseTask: msRest.CompositeMapper = { + serializedName: "JobReleaseTask", + type: { + name: "Composite", + className: "JobReleaseTask", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + commandLine: { + required: true, + 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" + } + } + } + }, + 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", + type: { + name: "Composite", + className: "TaskSchedulingPolicy", + modelProperties: { + nodeFillType: { + required: true, + serializedName: "nodeFillType", + type: { + name: "Enum", + allowedValues: [ + "spread", + "pack" + ] + } + } + } + } +}; + +export const StartTask: msRest.CompositeMapper = { + serializedName: "StartTask", + type: { + name: "Composite", + className: "StartTask", + modelProperties: { + commandLine: { + required: true, + 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" + } + } + } + }, + environmentSettings: { + serializedName: "environmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, + 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", + type: { + name: "String" + } + }, + thumbprintAlgorithm: { + required: true, + serializedName: "thumbprintAlgorithm", + type: { + name: "String" + } + }, + storeLocation: { + serializedName: "storeLocation", + type: { + name: "Enum", + allowedValues: [ + "currentuser", + "localmachine" + ] + } + }, + storeName: { + serializedName: "storeName", + type: { + name: "String" + } + }, + visibility: { + serializedName: "visibility", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "starttask", + "task", + "remoteuser" + ] + } + } + } + } + } + } +}; + +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", + type: { + name: "String" + } + } + } + } +}; + +export const WindowsConfiguration: msRest.CompositeMapper = { + serializedName: "WindowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration", + modelProperties: { + enableAutomaticUpdates: { + serializedName: "enableAutomaticUpdates", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DataDisk: msRest.CompositeMapper = { + serializedName: "DataDisk", + type: { + name: "Composite", + className: "DataDisk", + modelProperties: { + lun: { + required: true, + serializedName: "lun", + type: { + name: "Number" + } + }, + caching: { + serializedName: "caching", + type: { + name: "Enum", + allowedValues: [ + "none", + "readonly", + "readwrite" + ] + } + }, + diskSizeGB: { + required: true, + serializedName: "diskSizeGB", + type: { + name: "Number" + } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "Enum", + allowedValues: [ + "standard_lrs", + "premium_lrs" + ] + } + } + } + } +}; + +export const ContainerConfiguration: msRest.CompositeMapper = { + serializedName: "ContainerConfiguration", + type: { + name: "Composite", + className: "ContainerConfiguration", + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'dockerCompatible', + type: { + name: "String" + } + }, + containerImageNames: { + serializedName: "containerImageNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + containerRegistries: { + serializedName: "containerRegistries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerRegistry" + } + } + } + } + } + } +}; + +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" + } + } + } + } +}; + +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" + } + } + } + } +}; + +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 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" + } + } + } + } +}; + +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" + } + }, + maxTasksPerNode: { + serializedName: "maxTasksPerNode", + 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" + } + } + } + } + } + } +}; + +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" + } + }, + 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" + } + }, + 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" + } + }, + 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 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 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" + } + } + } + }, + maxTasksPerNode: { + serializedName: "maxTasksPerNode", + 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" + } + } + } + } +}; + +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" + } + } + } + }, + maxTasksPerNode: { + serializedName: "maxTasksPerNode", + 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" + } + } + } + } + } + } +}; + +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" + } + }, + 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" + } + }, + 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 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" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeUser: msRest.CompositeMapper = { + serializedName: "ComputeNodeUser", + type: { + name: "Composite", + className: "ComputeNodeUser", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + isAdmin: { + serializedName: "isAdmin", + type: { + name: "Boolean" + } + }, + expiryTime: { + serializedName: "expiryTime", + type: { + name: "DateTime" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + sshPublicKey: { + serializedName: "sshPublicKey", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeNodeGetRemoteLoginSettingsResult: msRest.CompositeMapper = { + serializedName: "ComputeNodeGetRemoteLoginSettingsResult", + type: { + name: "Composite", + className: "ComputeNodeGetRemoteLoginSettingsResult", + modelProperties: { + remoteLoginIPAddress: { + required: true, + serializedName: "remoteLoginIPAddress", + type: { + name: "String" + } + }, + remoteLoginPort: { + required: true, + serializedName: "remoteLoginPort", + type: { + name: "Number" + } + } + } + } +}; + +export const JobSchedulePatchParameter: msRest.CompositeMapper = { + serializedName: "JobSchedulePatchParameter", + type: { + name: "Composite", + className: "JobSchedulePatchParameter", + modelProperties: { + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "Schedule" + } + }, + jobSpecification: { + serializedName: "jobSpecification", + type: { + name: "Composite", + className: "JobSpecification" + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + } + } + } +}; + +export const JobScheduleUpdateParameter: msRest.CompositeMapper = { + serializedName: "JobScheduleUpdateParameter", + type: { + name: "Composite", + className: "JobScheduleUpdateParameter", + modelProperties: { + 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 JobDisableParameter: msRest.CompositeMapper = { + serializedName: "JobDisableParameter", + type: { + name: "Composite", + className: "JobDisableParameter", + modelProperties: { + disableTasks: { + required: true, + serializedName: "disableTasks", + type: { + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "wait" + ] + } + } + } + } +}; + +export const JobTerminateParameter: msRest.CompositeMapper = { + serializedName: "JobTerminateParameter", + type: { + name: "Composite", + className: "JobTerminateParameter", + modelProperties: { + terminateReason: { + serializedName: "terminateReason", + type: { + name: "String" + } + } + } + } +}; + +export const JobPatchParameter: msRest.CompositeMapper = { + serializedName: "JobPatchParameter", + type: { + name: "Composite", + className: "JobPatchParameter", + modelProperties: { + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + onAllTasksComplete: { + serializedName: "onAllTasksComplete", + type: { + name: "Enum", + allowedValues: [ + "noaction", + "terminatejob" + ] + } + }, + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "JobConstraints" + } + }, + poolInfo: { + serializedName: "poolInfo", + type: { + name: "Composite", + className: "PoolInformation" + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + } + } + } +}; + +export const JobUpdateParameter: msRest.CompositeMapper = { + serializedName: "JobUpdateParameter", + type: { + name: "Composite", + className: "JobUpdateParameter", + modelProperties: { + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "JobConstraints" + } + }, + poolInfo: { + required: true, + serializedName: "poolInfo", + defaultValue: {}, + type: { + name: "Composite", + className: "PoolInformation" + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + }, + onAllTasksComplete: { + serializedName: "onAllTasksComplete", + type: { + name: "Enum", + allowedValues: [ + "noaction", + "terminatejob" + ] + } + } + } + } +}; + +export const PoolEnableAutoScaleParameter: msRest.CompositeMapper = { + serializedName: "PoolEnableAutoScaleParameter", + type: { + name: "Composite", + className: "PoolEnableAutoScaleParameter", + modelProperties: { + autoScaleFormula: { + serializedName: "autoScaleFormula", + type: { + name: "String" + } + }, + autoScaleEvaluationInterval: { + serializedName: "autoScaleEvaluationInterval", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const PoolEvaluateAutoScaleParameter: msRest.CompositeMapper = { + serializedName: "PoolEvaluateAutoScaleParameter", + type: { + name: "Composite", + className: "PoolEvaluateAutoScaleParameter", + modelProperties: { + autoScaleFormula: { + required: true, + serializedName: "autoScaleFormula", + type: { + name: "String" + } + } + } + } +}; + +export const PoolResizeParameter: msRest.CompositeMapper = { + serializedName: "PoolResizeParameter", + type: { + name: "Composite", + className: "PoolResizeParameter", + modelProperties: { + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", + type: { + name: "Number" + } + }, + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", + type: { + name: "Number" + } + }, + resizeTimeout: { + serializedName: "resizeTimeout", + type: { + name: "TimeSpan" + } + }, + nodeDeallocationOption: { + serializedName: "nodeDeallocationOption", + type: { + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] + } + } + } + } +}; + +export const PoolUpdatePropertiesParameter: msRest.CompositeMapper = { + serializedName: "PoolUpdatePropertiesParameter", + type: { + name: "Composite", + className: "PoolUpdatePropertiesParameter", + modelProperties: { + startTask: { + serializedName: "startTask", + type: { + name: "Composite", + className: "StartTask" + } + }, + certificateReferences: { + required: true, + serializedName: "certificateReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } + } + }, + applicationPackageReferences: { + required: true, + serializedName: "applicationPackageReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } + } + }, + metadata: { + required: true, + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + } + } + } +}; + +export const PoolPatchParameter: msRest.CompositeMapper = { + serializedName: "PoolPatchParameter", + type: { + name: "Composite", + className: "PoolPatchParameter", + modelProperties: { + 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" + } + } + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + } + } + } +}; + +export const TaskUpdateParameter: msRest.CompositeMapper = { + serializedName: "TaskUpdateParameter", + type: { + name: "Composite", + className: "TaskUpdateParameter", + modelProperties: { + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "TaskConstraints" + } + } + } + } +}; + +export const NodeUpdateUserParameter: msRest.CompositeMapper = { + serializedName: "NodeUpdateUserParameter", + type: { + name: "Composite", + className: "NodeUpdateUserParameter", + modelProperties: { + password: { + serializedName: "password", + type: { + name: "String" + } + }, + expiryTime: { + serializedName: "expiryTime", + type: { + name: "DateTime" + } + }, + sshPublicKey: { + serializedName: "sshPublicKey", + type: { + name: "String" + } + } + } + } +}; + +export const NodeRebootParameter: msRest.CompositeMapper = { + serializedName: "NodeRebootParameter", + type: { + name: "Composite", + className: "NodeRebootParameter", + modelProperties: { + nodeRebootOption: { + serializedName: "nodeRebootOption", + type: { + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] + } + } + } + } +}; + +export const NodeReimageParameter: msRest.CompositeMapper = { + serializedName: "NodeReimageParameter", + type: { + name: "Composite", + className: "NodeReimageParameter", + modelProperties: { + nodeReimageOption: { + serializedName: "nodeReimageOption", + type: { + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] + } + } + } + } +}; + +export const NodeDisableSchedulingParameter: msRest.CompositeMapper = { + serializedName: "NodeDisableSchedulingParameter", + type: { + name: "Composite", + className: "NodeDisableSchedulingParameter", + modelProperties: { + nodeDisableSchedulingOption: { + serializedName: "nodeDisableSchedulingOption", + type: { + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion" + ] + } + } + } + } +}; + +export const NodeRemoveParameter: msRest.CompositeMapper = { + serializedName: "NodeRemoveParameter", + type: { + name: "Composite", + className: "NodeRemoveParameter", + modelProperties: { + nodeList: { + required: true, + serializedName: "nodeList", + constraints: { + MaxItems: 100 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resizeTimeout: { + serializedName: "resizeTimeout", + type: { + name: "TimeSpan" + } + }, + nodeDeallocationOption: { + serializedName: "nodeDeallocationOption", + type: { + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] + } + } + } + } +}; + +export const UploadBatchServiceLogsConfiguration: msRest.CompositeMapper = { + serializedName: "UploadBatchServiceLogsConfiguration", + type: { + name: "Composite", + className: "UploadBatchServiceLogsConfiguration", + modelProperties: { + containerUrl: { + required: true, + serializedName: "containerUrl", + type: { + name: "String" + } + }, + startTime: { + required: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const UploadBatchServiceLogsResult: msRest.CompositeMapper = { + serializedName: "UploadBatchServiceLogsResult", + type: { + name: "Composite", + className: "UploadBatchServiceLogsResult", + modelProperties: { + virtualDirectoryName: { + required: true, + serializedName: "virtualDirectoryName", + type: { + name: "String" + } + }, + numberOfFilesUploaded: { + required: true, + serializedName: "numberOfFilesUploaded", + type: { + name: "Number" + } + } + } + } +}; + +export const NodeCounts: msRest.CompositeMapper = { + serializedName: "NodeCounts", + type: { + name: "Composite", + className: "NodeCounts", + modelProperties: { + creating: { + required: true, + serializedName: "creating", + type: { + name: "Number" + } + }, + idle: { + required: true, + serializedName: "idle", + type: { + name: "Number" + } + }, + offline: { + required: true, + serializedName: "offline", + type: { + name: "Number" + } + }, + preempted: { + required: true, + serializedName: "preempted", + type: { + name: "Number" + } + }, + rebooting: { + required: true, + serializedName: "rebooting", + type: { + name: "Number" + } + }, + reimaging: { + required: true, + serializedName: "reimaging", + type: { + name: "Number" + } + }, + running: { + required: true, + serializedName: "running", + type: { + name: "Number" + } + }, + starting: { + required: true, + serializedName: "starting", + type: { + name: "Number" + } + }, + startTaskFailed: { + required: true, + serializedName: "startTaskFailed", + type: { + name: "Number" + } + }, + leavingPool: { + required: true, + serializedName: "leavingPool", + type: { + name: "Number" + } + }, + unknown: { + required: true, + serializedName: "unknown", + type: { + name: "Number" + } + }, + unusable: { + required: true, + serializedName: "unusable", + type: { + name: "Number" + } + }, + waitingForStartTask: { + required: true, + serializedName: "waitingForStartTask", + type: { + name: "Number" + } + }, + total: { + required: true, + serializedName: "total", + type: { + name: "Number" + } + } + } + } +}; + +export const PoolNodeCounts: msRest.CompositeMapper = { + serializedName: "PoolNodeCounts", + type: { + name: "Composite", + className: "PoolNodeCounts", + modelProperties: { + poolId: { + required: true, + serializedName: "poolId", + type: { + name: "String" + } + }, + dedicated: { + serializedName: "dedicated", + type: { + name: "Composite", + className: "NodeCounts" + } + }, + lowPriority: { + serializedName: "lowPriority", + 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" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ApplicationGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGetOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolListUsageMetricsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolListUsageMetricsOptions", + modelProperties: { + startTime: { + type: { + name: "DateTime" + } + }, + endTime: { + type: { + name: "DateTime" + } + }, + filter: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolGetAllLifetimeStatisticsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolGetAllLifetimeStatisticsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolAddOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolAddOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolListOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolListOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolDeleteMethodOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolDeleteMethodOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolExistsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolExistsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolGetOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolPatchOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolPatchOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolDisableAutoScaleOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolDisableAutoScaleOptions", + modelProperties: { + timeout: { + defaultValue: 30, + 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, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolEvaluateAutoScaleOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolEvaluateAutoScaleOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolResizeOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolResizeOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolStopResizeOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolStopResizeOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolUpdatePropertiesOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolUpdatePropertiesOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolRemoveNodesOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolRemoveNodesOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const AccountListNodeAgentSkusOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "AccountListNodeAgentSkusOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const AccountListPoolNodeCountsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "AccountListPoolNodeCountsOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 10, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobGetAllLifetimeStatisticsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobGetAllLifetimeStatisticsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobDeleteMethodOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobDeleteMethodOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobGetOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobPatchOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobPatchOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobUpdateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobUpdateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobDisableOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobDisableOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobEnableOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobEnableOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobTerminateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobTerminateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobAddOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobAddOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobListOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListFromJobScheduleOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobListFromJobScheduleOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListPreparationAndReleaseTaskStatusOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobListPreparationAndReleaseTaskStatusOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobGetTaskCountsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobGetTaskCountsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateAddOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateAddOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateListOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateListOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateCancelDeletionOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateCancelDeletionOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateDeleteMethodOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateDeleteMethodOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateGetOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileDeleteFromTaskOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileDeleteFromTaskOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileGetFromTaskOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileGetFromTaskOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ocpRange: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileGetPropertiesFromTaskOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileGetPropertiesFromTaskOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileDeleteFromComputeNodeOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileDeleteFromComputeNodeOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileGetFromComputeNodeOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileGetFromComputeNodeOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ocpRange: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileGetPropertiesFromComputeNodeOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileGetPropertiesFromComputeNodeOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileListFromTaskOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileListFromTaskOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileListFromComputeNodeOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileListFromComputeNodeOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleExistsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleExistsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleDeleteMethodOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleDeleteMethodOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleGetOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobSchedulePatchOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobSchedulePatchOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleUpdateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleUpdateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleDisableOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleDisableOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleEnableOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleEnableOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleTerminateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleTerminateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleAddOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleAddOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleListOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleListOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskAddOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskAddOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskListOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskListOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskAddCollectionOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskAddCollectionOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskDeleteMethodOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskDeleteMethodOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskGetOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + expand: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskUpdateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskUpdateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskListSubtasksOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskListSubtasksOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskTerminateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskTerminateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskReactivateOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskReactivateOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + }, + ifMatch: { + type: { + name: "String" + } + }, + ifNoneMatch: { + type: { + name: "String" + } + }, + ifModifiedSince: { + type: { + name: "DateTimeRfc1123" + } + }, + ifUnmodifiedSince: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeAddUserOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeAddUserOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + 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: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeUpdateUserOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeUpdateUserOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeGetOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeGetOptions", + modelProperties: { + select: { + type: { + name: "String" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeRebootOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeRebootOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeReimageOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeReimageOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeDisableSchedulingOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeDisableSchedulingOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeEnableSchedulingOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeEnableSchedulingOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeGetRemoteLoginSettingsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeGetRemoteLoginSettingsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeGetRemoteDesktopOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeGetRemoteDesktopOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeUploadBatchServiceLogsOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeUploadBatchServiceLogsOptions", + modelProperties: { + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeListOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeListOptions", + modelProperties: { + filter: { + type: { + name: "String" + } + }, + select: { + type: { + name: "String" + } + }, + maxResults: { + defaultValue: 1000, + type: { + name: "Number" + } + }, + timeout: { + defaultValue: 30, + type: { + name: "Number" + } + }, + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ApplicationListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolListUsageMetricsNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolListUsageMetricsNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "PoolListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const AccountListNodeAgentSkusNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "AccountListNodeAgentSkusNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const AccountListPoolNodeCountsNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "AccountListPoolNodeCountsNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListFromJobScheduleNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobListFromJobScheduleNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListPreparationAndReleaseTaskStatusNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobListPreparationAndReleaseTaskStatusNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileListFromTaskNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileListFromTaskNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileListFromComputeNodeNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "FileListFromComputeNodeNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "TaskListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeListNextOptions: msRest.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeListNextOptions", + modelProperties: { + clientRequestId: { + type: { + name: "Uuid" + } + }, + returnClientRequestId: { + defaultValue: false, + type: { + name: "Boolean" + } + }, + ocpDate: { + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ApplicationListHeaders: msRest.CompositeMapper = { + serializedName: "application-list-headers", + type: { + name: "Composite", + className: "ApplicationListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ApplicationGetHeaders: msRest.CompositeMapper = { + serializedName: "application-get-headers", + type: { + name: "Composite", + className: "ApplicationGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolListUsageMetricsHeaders: msRest.CompositeMapper = { + serializedName: "pool-listusagemetrics-headers", + type: { + name: "Composite", + className: "PoolListUsageMetricsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const AccountListNodeAgentSkusHeaders: msRest.CompositeMapper = { + serializedName: "account-listnodeagentskus-headers", + type: { + name: "Composite", + className: "AccountListNodeAgentSkusHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const AccountListPoolNodeCountsHeaders: msRest.CompositeMapper = { + serializedName: "account-listpoolnodecounts-headers", + type: { + name: "Composite", + className: "AccountListPoolNodeCountsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + } + } + } +}; + +export const PoolGetAllLifetimeStatisticsHeaders: msRest.CompositeMapper = { + serializedName: "pool-getalllifetimestatistics-headers", + type: { + name: "Composite", + className: "PoolGetAllLifetimeStatisticsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobGetAllLifetimeStatisticsHeaders: msRest.CompositeMapper = { + serializedName: "job-getalllifetimestatistics-headers", + type: { + name: "Composite", + className: "JobGetAllLifetimeStatisticsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateAddHeaders: msRest.CompositeMapper = { + serializedName: "certificate-add-headers", + type: { + name: "Composite", + className: "CertificateAddHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const CertificateListHeaders: msRest.CompositeMapper = { + serializedName: "certificate-list-headers", + type: { + name: "Composite", + className: "CertificateListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateCancelDeletionHeaders: msRest.CompositeMapper = { + serializedName: "certificate-canceldeletion-headers", + type: { + name: "Composite", + className: "CertificateCancelDeletionHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const CertificateDeleteHeaders: msRest.CompositeMapper = { + serializedName: "certificate-delete-headers", + type: { + name: "Composite", + className: "CertificateDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const CertificateGetHeaders: msRest.CompositeMapper = { + serializedName: "certificate-get-headers", + type: { + name: "Composite", + className: "CertificateGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const FileGetFromTaskHeaders: msRest.CompositeMapper = { + serializedName: "file-getfromtask-headers", + type: { + name: "Composite", + className: "FileGetFromTaskHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + 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 FileGetPropertiesFromTaskHeaders: msRest.CompositeMapper = { + serializedName: "file-getpropertiesfromtask-headers", + type: { + name: "Composite", + className: "FileGetPropertiesFromTaskHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + 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 FileDeleteFromComputeNodeHeaders: msRest.CompositeMapper = { + serializedName: "file-deletefromcomputenode-headers", + type: { + name: "Composite", + className: "FileDeleteFromComputeNodeHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const FileGetFromComputeNodeHeaders: msRest.CompositeMapper = { + serializedName: "file-getfromcomputenode-headers", + type: { + name: "Composite", + className: "FileGetFromComputeNodeHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + 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", + type: { + name: "Composite", + className: "FileGetPropertiesFromComputeNodeHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + 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 FileListFromTaskHeaders: msRest.CompositeMapper = { + serializedName: "file-listfromtask-headers", + type: { + name: "Composite", + className: "FileListFromTaskHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const FileListFromComputeNodeHeaders: msRest.CompositeMapper = { + serializedName: "file-listfromcomputenode-headers", + type: { + name: "Composite", + className: "FileListFromComputeNodeHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + 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", + type: { + name: "Composite", + className: "JobScheduleExistsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobScheduleDeleteHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-delete-headers", + type: { + name: "Composite", + className: "JobScheduleDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const JobScheduleGetHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-get-headers", + type: { + name: "Composite", + className: "JobScheduleGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTagHeader: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModifiedHeader: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobSchedulePatchHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-patch-headers", + type: { + name: "Composite", + className: "JobSchedulePatchHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobScheduleUpdateHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-update-headers", + type: { + name: "Composite", + className: "JobScheduleUpdateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobScheduleDisableHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-disable-headers", + type: { + name: "Composite", + className: "JobScheduleDisableHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobScheduleEnableHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-enable-headers", + type: { + name: "Composite", + className: "JobScheduleEnableHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobScheduleTerminateHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-terminate-headers", + type: { + name: "Composite", + className: "JobScheduleTerminateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobScheduleAddHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-add-headers", + type: { + name: "Composite", + className: "JobScheduleAddHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobScheduleListHeaders: msRest.CompositeMapper = { + serializedName: "jobschedule-list-headers", + type: { + name: "Composite", + className: "JobScheduleListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobDeleteHeaders: msRest.CompositeMapper = { + serializedName: "job-delete-headers", + type: { + name: "Composite", + className: "JobDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const JobGetHeaders: msRest.CompositeMapper = { + serializedName: "job-get-headers", + type: { + name: "Composite", + className: "JobGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTagHeader: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModifiedHeader: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobPatchHeaders: msRest.CompositeMapper = { + serializedName: "job-patch-headers", + type: { + name: "Composite", + className: "JobPatchHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobUpdateHeaders: msRest.CompositeMapper = { + serializedName: "job-update-headers", + type: { + name: "Composite", + className: "JobUpdateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobDisableHeaders: msRest.CompositeMapper = { + serializedName: "job-disable-headers", + type: { + name: "Composite", + className: "JobDisableHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobEnableHeaders: msRest.CompositeMapper = { + serializedName: "job-enable-headers", + type: { + name: "Composite", + className: "JobEnableHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobTerminateHeaders: msRest.CompositeMapper = { + serializedName: "job-terminate-headers", + type: { + name: "Composite", + className: "JobTerminateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobAddHeaders: msRest.CompositeMapper = { + serializedName: "job-add-headers", + type: { + name: "Composite", + className: "JobAddHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const JobListHeaders: msRest.CompositeMapper = { + serializedName: "job-list-headers", + type: { + name: "Composite", + className: "JobListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListFromJobScheduleHeaders: msRest.CompositeMapper = { + serializedName: "job-listfromjobschedule-headers", + type: { + name: "Composite", + className: "JobListFromJobScheduleHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobListPreparationAndReleaseTaskStatusHeaders: msRest.CompositeMapper = { + serializedName: "job-listpreparationandreleasetaskstatus-headers", + type: { + name: "Composite", + className: "JobListPreparationAndReleaseTaskStatusHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const JobGetTaskCountsHeaders: msRest.CompositeMapper = { + serializedName: "job-gettaskcounts-headers", + type: { + name: "Composite", + className: "JobGetTaskCountsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + } + } + } +}; + +export const PoolAddHeaders: msRest.CompositeMapper = { + serializedName: "pool-add-headers", + type: { + name: "Composite", + className: "PoolAddHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolListHeaders: msRest.CompositeMapper = { + serializedName: "pool-list-headers", + type: { + name: "Composite", + className: "PoolListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolDeleteHeaders: msRest.CompositeMapper = { + serializedName: "pool-delete-headers", + type: { + name: "Composite", + className: "PoolDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const PoolExistsHeaders: msRest.CompositeMapper = { + serializedName: "pool-exists-headers", + type: { + name: "Composite", + className: "PoolExistsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolGetHeaders: msRest.CompositeMapper = { + serializedName: "pool-get-headers", + type: { + name: "Composite", + className: "PoolGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTagHeader: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModifiedHeader: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const PoolPatchHeaders: msRest.CompositeMapper = { + serializedName: "pool-patch-headers", + type: { + name: "Composite", + className: "PoolPatchHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolDisableAutoScaleHeaders: msRest.CompositeMapper = { + serializedName: "pool-disableautoscale-headers", + type: { + name: "Composite", + className: "PoolDisableAutoScaleHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolEnableAutoScaleHeaders: msRest.CompositeMapper = { + serializedName: "pool-enableautoscale-headers", + type: { + name: "Composite", + className: "PoolEnableAutoScaleHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolEvaluateAutoScaleHeaders: msRest.CompositeMapper = { + serializedName: "pool-evaluateautoscale-headers", + type: { + name: "Composite", + className: "PoolEvaluateAutoScaleHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolResizeHeaders: msRest.CompositeMapper = { + serializedName: "pool-resize-headers", + type: { + name: "Composite", + className: "PoolResizeHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolStopResizeHeaders: msRest.CompositeMapper = { + serializedName: "pool-stopresize-headers", + type: { + name: "Composite", + className: "PoolStopResizeHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolUpdatePropertiesHeaders: msRest.CompositeMapper = { + serializedName: "pool-updateproperties-headers", + type: { + name: "Composite", + className: "PoolUpdatePropertiesHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const PoolRemoveNodesHeaders: msRest.CompositeMapper = { + serializedName: "pool-removenodes-headers", + type: { + name: "Composite", + className: "PoolRemoveNodesHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const TaskAddHeaders: msRest.CompositeMapper = { + serializedName: "task-add-headers", + type: { + name: "Composite", + className: "TaskAddHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const TaskListHeaders: msRest.CompositeMapper = { + serializedName: "task-list-headers", + type: { + name: "Composite", + className: "TaskListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskAddCollectionHeaders: msRest.CompositeMapper = { + serializedName: "task-addcollection-headers", + type: { + name: "Composite", + className: "TaskAddCollectionHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const TaskDeleteHeaders: msRest.CompositeMapper = { + serializedName: "task-delete-headers", + type: { + name: "Composite", + className: "TaskDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const TaskGetHeaders: msRest.CompositeMapper = { + serializedName: "task-get-headers", + type: { + name: "Composite", + className: "TaskGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTagHeader: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModifiedHeader: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } + } + } + } +}; + +export const TaskUpdateHeaders: msRest.CompositeMapper = { + serializedName: "task-update-headers", + type: { + name: "Composite", + className: "TaskUpdateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const TaskListSubtasksHeaders: msRest.CompositeMapper = { + serializedName: "task-listsubtasks-headers", + type: { + name: "Composite", + className: "TaskListSubtasksHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const TaskTerminateHeaders: msRest.CompositeMapper = { + serializedName: "task-terminate-headers", + type: { + name: "Composite", + className: "TaskTerminateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const TaskReactivateHeaders: msRest.CompositeMapper = { + serializedName: "task-reactivate-headers", + type: { + name: "Composite", + className: "TaskReactivateHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeAddUserHeaders: msRest.CompositeMapper = { + serializedName: "computenode-adduser-headers", + type: { + name: "Composite", + className: "ComputeNodeAddUserHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeDeleteUserHeaders: msRest.CompositeMapper = { + serializedName: "computenode-deleteuser-headers", + type: { + name: "Composite", + className: "ComputeNodeDeleteUserHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeNodeUpdateUserHeaders: msRest.CompositeMapper = { + serializedName: "computenode-updateuser-headers", + type: { + name: "Composite", + className: "ComputeNodeUpdateUserHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeGetHeaders: msRest.CompositeMapper = { + serializedName: "computenode-get-headers", + type: { + name: "Composite", + className: "ComputeNodeGetHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeRebootHeaders: msRest.CompositeMapper = { + serializedName: "computenode-reboot-headers", + type: { + name: "Composite", + className: "ComputeNodeRebootHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeReimageHeaders: msRest.CompositeMapper = { + serializedName: "computenode-reimage-headers", + type: { + name: "Composite", + className: "ComputeNodeReimageHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeDisableSchedulingHeaders: msRest.CompositeMapper = { + serializedName: "computenode-disablescheduling-headers", + type: { + name: "Composite", + className: "ComputeNodeDisableSchedulingHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeEnableSchedulingHeaders: msRest.CompositeMapper = { + serializedName: "computenode-enablescheduling-headers", + type: { + name: "Composite", + className: "ComputeNodeEnableSchedulingHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + 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" + } + } + } + } +}; + +export const ComputeNodeGetRemoteLoginSettingsHeaders: msRest.CompositeMapper = { + serializedName: "computenode-getremoteloginsettings-headers", + type: { + name: "Composite", + className: "ComputeNodeGetRemoteLoginSettingsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeGetRemoteDesktopHeaders: msRest.CompositeMapper = { + serializedName: "computenode-getremotedesktop-headers", + type: { + name: "Composite", + className: "ComputeNodeGetRemoteDesktopHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ComputeNodeUploadBatchServiceLogsHeaders: msRest.CompositeMapper = { + serializedName: "computenode-uploadbatchservicelogs-headers", + type: { + name: "Composite", + className: "ComputeNodeUploadBatchServiceLogsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ComputeNodeListHeaders: msRest.CompositeMapper = { + serializedName: "computenode-list-headers", + type: { + name: "Composite", + className: "ComputeNodeListHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const ApplicationListResult: msRest.CompositeMapper = { + serializedName: "ApplicationListResult", + type: { + name: "Composite", + className: "ApplicationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSummary" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PoolListUsageMetricsResult: msRest.CompositeMapper = { + serializedName: "PoolListUsageMetricsResult", + type: { + name: "Composite", + className: "PoolListUsageMetricsResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PoolUsageMetrics" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudPoolListResult: msRest.CompositeMapper = { + serializedName: "CloudPoolListResult", + type: { + name: "Composite", + className: "CloudPoolListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudPool" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AccountListNodeAgentSkusResult: msRest.CompositeMapper = { + serializedName: "AccountListNodeAgentSkusResult", + type: { + name: "Composite", + className: "AccountListNodeAgentSkusResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeAgentSku" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PoolNodeCountsListResult: msRest.CompositeMapper = { + serializedName: "PoolNodeCountsListResult", + type: { + name: "Composite", + className: "PoolNodeCountsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PoolNodeCounts" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudJobListResult: msRest.CompositeMapper = { + serializedName: "CloudJobListResult", + type: { + name: "Composite", + className: "CloudJobListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudJob" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudJobListPreparationAndReleaseTaskStatusResult: msRest.CompositeMapper = { + serializedName: "CloudJobListPreparationAndReleaseTaskStatusResult", + type: { + name: "Composite", + className: "CloudJobListPreparationAndReleaseTaskStatusResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobPreparationAndReleaseTaskExecutionInformation" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateListResult: msRest.CompositeMapper = { + serializedName: "CertificateListResult", + type: { + name: "Composite", + className: "CertificateListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NodeFileListResult: msRest.CompositeMapper = { + serializedName: "NodeFileListResult", + type: { + name: "Composite", + className: "NodeFileListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeFile" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudJobScheduleListResult: msRest.CompositeMapper = { + serializedName: "CloudJobScheduleListResult", + type: { + name: "Composite", + className: "CloudJobScheduleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudJobSchedule" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudTaskListResult: msRest.CompositeMapper = { + serializedName: "CloudTaskListResult", + type: { + name: "Composite", + className: "CloudTaskListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudTask" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeNodeListResult: msRest.CompositeMapper = { + serializedName: "ComputeNodeListResult", + type: { + name: "Composite", + className: "ComputeNodeListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeNode" + } + } + } + }, + odatanextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/batch/batch/lib/models/parameters.ts b/sdk/batch/batch/lib/models/parameters.ts new file mode 100644 index 000000000000..4c80b2d3ecf2 --- /dev/null +++ b/sdk/batch/batch/lib/models/parameters.ts @@ -0,0 +1,7176 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const applicationId: msRest.OperationURLParameter = { + parameterPath: "applicationId", + mapper: { + required: true, + serializedName: "applicationId", + type: { + name: "String" + } + } +}; +export const batchUrl: msRest.OperationURLParameter = { + parameterPath: "batchUrl", + mapper: { + required: true, + serializedName: "batchUrl", + defaultValue: '', + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const clientRequestId0: msRest.OperationParameter = { + parameterPath: [ + "options", + "applicationListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId1: msRest.OperationParameter = { + parameterPath: [ + "options", + "applicationGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId10: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId11: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDisableAutoScaleOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId12: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId13: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEvaluateAutoScaleOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId14: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolResizeOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId15: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId16: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolUpdatePropertiesOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId17: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId18: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId19: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId2: msRest.OperationParameter = { + parameterPath: [ + "options", + "applicationListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId20: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListNodeAgentSkusOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId21: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId22: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListNodeAgentSkusNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId23: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId24: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetAllLifetimeStatisticsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId25: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId26: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId27: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId28: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId29: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId30: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId31: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId32: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobAddOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId33: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId34: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId35: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId36: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetTaskCountsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId37: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId38: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId39: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetAllLifetimeStatisticsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId40: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateAddOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId41: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId42: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateCancelDeletionOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId43: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateDeleteMethodOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId44: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId45: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId46: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromTaskOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId47: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId48: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId49: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromComputeNodeOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolAddOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId50: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId51: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId52: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId53: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId54: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId55: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId56: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId57: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId58: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId59: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId60: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId61: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId62: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId63: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId64: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleAddOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId65: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId66: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId67: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskAddOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId68: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId69: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskAddCollectionOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId70: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId71: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId72: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId73: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListSubtasksOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId74: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId75: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId76: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId77: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeAddUserOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId78: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeDeleteUserOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId79: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeUpdateUserOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId8: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId80: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId81: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeRebootOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId82: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeReimageOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId83: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeDisableSchedulingOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId84: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeEnableSchedulingOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId85: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId86: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteDesktopOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId87: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId88: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId89: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeListNextOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const clientRequestId9: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "clientRequestId" + ], + mapper: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + } +}; +export const endTime: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "endTime" + ], + mapper: { + serializedName: "endtime", + type: { + name: "DateTime" + } + } +}; +export const expand0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand2: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand3: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand4: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand5: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand6: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand7: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskListOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const expand8: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const filePath: msRest.OperationURLParameter = { + parameterPath: "filePath", + mapper: { + required: true, + serializedName: "filePath", + type: { + name: "String" + } + } +}; +export const filter0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter10: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter11: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskListOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter12: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter2: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "accountListNodeAgentSkusOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter3: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter4: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter5: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter6: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter7: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateListOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter8: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileListFromTaskOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter9: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const ifMatch0: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch1: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch10: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch11: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch12: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch13: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch14: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch15: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch16: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch17: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch18: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch19: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch2: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch20: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch21: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch22: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch23: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch24: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch25: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch26: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch27: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolResizeOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch8: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch9: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifModifiedSince0: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince1: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince10: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince11: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince12: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince13: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince14: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince15: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince16: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince17: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince18: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince19: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince2: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince20: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince21: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince22: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince23: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince24: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince25: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince26: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince27: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince28: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince29: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince30: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince31: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolResizeOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince8: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifModifiedSince9: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "ifModifiedSince" + ], + mapper: { + serializedName: "If-Modified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifNoneMatch0: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch1: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch10: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch11: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch12: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch13: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch14: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch15: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch16: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch17: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch18: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch19: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch2: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch20: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch21: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch22: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch23: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch24: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch25: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch26: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch27: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolResizeOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch8: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifNoneMatch9: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "ifNoneMatch" + ], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; +export const ifUnmodifiedSince0: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince1: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince10: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince11: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince12: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince13: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince14: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince15: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince16: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince17: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince18: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +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" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince23: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince24: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince25: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince26: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince27: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince28: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince29: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince30: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince31: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolResizeOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince8: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ifUnmodifiedSince9: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "ifUnmodifiedSince" + ], + mapper: { + serializedName: "If-Unmodified-Since", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const jobId: msRest.OperationURLParameter = { + parameterPath: "jobId", + mapper: { + required: true, + serializedName: "jobId", + type: { + name: "String" + } + } +}; +export const jobScheduleId: msRest.OperationURLParameter = { + parameterPath: "jobScheduleId", + mapper: { + 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" + ], + mapper: { + serializedName: "maxresults", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } +}; +export const maxResults13: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "maxResults" + ], + 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", + "accountListNodeAgentSkusOptions", + "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", + "accountListNodeAgentSkusOptions", + "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", + "accountListNodeAgentSkusNextOptions", + "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", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate27: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate28: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate29: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate30: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate31: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate32: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobAddOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate33: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate34: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate35: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate36: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetTaskCountsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate37: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate38: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate39: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetAllLifetimeStatisticsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate40: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateAddOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate41: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateListOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate42: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateCancelDeletionOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate43: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateDeleteMethodOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate44: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateGetOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate45: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateListNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate46: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromTaskOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate47: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate48: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate49: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromComputeNodeOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolAddOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate50: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate51: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate52: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate53: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate54: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate55: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate56: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate57: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate58: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate59: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate60: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate61: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate62: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate63: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate64: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleAddOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate65: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate66: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleListNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate67: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskAddOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate68: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate69: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskAddCollectionOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate70: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate71: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate72: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate73: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListSubtasksOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate74: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate75: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate76: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate77: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeAddUserOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate78: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeDeleteUserOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate79: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeUpdateUserOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate8: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate80: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate81: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeRebootOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate82: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeReimageOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate83: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeDisableSchedulingOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate84: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeEnableSchedulingOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate85: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate86: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteDesktopOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate87: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate88: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate89: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeListNextOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpDate9: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "ocpDate" + ], + mapper: { + serializedName: "ocp-date", + type: { + name: "DateTimeRfc1123" + } + } +}; +export const ocpRange0: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "ocpRange" + ], + mapper: { + serializedName: "ocp-range", + type: { + name: "String" + } + } +}; +export const ocpRange1: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "ocpRange" + ], + mapper: { + serializedName: "ocp-range", + type: { + name: "String" + } + } +}; +export const poolId: msRest.OperationURLParameter = { + parameterPath: "poolId", + mapper: { + required: true, + serializedName: "poolId", + type: { + name: "String" + } + } +}; +export const recursive: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "recursive" + ], + mapper: { + serializedName: "recursive", + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId0: msRest.OperationParameter = { + parameterPath: [ + "options", + "applicationListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId1: msRest.OperationParameter = { + parameterPath: [ + "options", + "applicationGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId10: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId11: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDisableAutoScaleOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId12: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "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" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId15: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId16: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolUpdatePropertiesOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId17: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId18: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId19: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId2: msRest.OperationParameter = { + parameterPath: [ + "options", + "applicationListNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId20: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListNodeAgentSkusOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId21: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId22: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListNodeAgentSkusNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId23: msRest.OperationParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId24: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetAllLifetimeStatisticsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId25: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId26: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId27: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId28: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId29: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId3: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId30: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId31: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId32: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobAddOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId33: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId34: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId35: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "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" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId38: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId39: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId4: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetAllLifetimeStatisticsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId40: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateAddOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId41: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId42: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateCancelDeletionOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId43: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateDeleteMethodOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId44: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId45: msRest.OperationParameter = { + parameterPath: [ + "options", + "certificateListNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId46: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromTaskOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId47: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId48: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId49: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromComputeNodeOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId5: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolAddOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId50: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId51: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId52: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId53: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId54: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId55: msRest.OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId56: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId57: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId58: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId59: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId6: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId60: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId61: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId62: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId63: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId64: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleAddOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId65: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId66: msRest.OperationParameter = { + parameterPath: [ + "options", + "jobScheduleListNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId67: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskAddOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId68: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId69: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskAddCollectionOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId7: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId70: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId71: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId72: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId73: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListSubtasksOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId74: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId75: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId76: msRest.OperationParameter = { + parameterPath: [ + "options", + "taskListNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId77: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeAddUserOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId78: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeDeleteUserOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId79: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeUpdateUserOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId8: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId80: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId81: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeRebootOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId82: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeReimageOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId83: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeDisableSchedulingOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId84: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeEnableSchedulingOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId85: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId86: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteDesktopOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId87: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId88: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId89: msRest.OperationParameter = { + parameterPath: [ + "options", + "computeNodeListNextOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const returnClientRequestId9: msRest.OperationParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "returnClientRequestId" + ], + mapper: { + serializedName: "return-client-request-id", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const select0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select10: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskListOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select11: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select12: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskListSubtasksOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select13: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeGetOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select14: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select2: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select3: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select4: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select5: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select6: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateListOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select7: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateGetOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select8: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const select9: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const startTime: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "startTime" + ], + mapper: { + serializedName: "starttime", + type: { + name: "DateTime" + } + } +}; +export const taskId: msRest.OperationURLParameter = { + parameterPath: "taskId", + mapper: { + required: true, + serializedName: "taskId", + type: { + name: "String" + } + } +}; +export const thumbprint: msRest.OperationURLParameter = { + parameterPath: "thumbprint", + mapper: { + required: true, + serializedName: "thumbprint", + type: { + name: "String" + } + } +}; +export const thumbprintAlgorithm: msRest.OperationURLParameter = { + parameterPath: "thumbprintAlgorithm", + mapper: { + required: true, + serializedName: "thumbprintAlgorithm", + type: { + name: "String" + } + } +}; +export const timeout0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "applicationListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "applicationGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout10: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolDisableAutoScaleOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout11: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout12: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolEvaluateAutoScaleOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout13: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolResizeOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout14: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolStopResizeOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout15: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolUpdatePropertiesOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout16: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolRemoveNodesOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout17: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "accountListNodeAgentSkusOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout18: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout19: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobGetAllLifetimeStatisticsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout2: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout20: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobDeleteMethodOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout21: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout22: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobPatchOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout23: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobUpdateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout24: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobDisableOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout25: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobEnableOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout26: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobTerminateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout27: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobAddOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout28: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout29: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout3: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolGetAllLifetimeStatisticsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout30: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout31: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobGetTaskCountsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout32: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateAddOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout33: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout34: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateCancelDeletionOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout35: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateDeleteMethodOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout36: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "certificateGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout37: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileDeleteFromTaskOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout38: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileGetFromTaskOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout39: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout4: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolAddOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout40: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileDeleteFromComputeNodeOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout41: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout42: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout43: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileListFromTaskOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout44: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout45: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout46: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteMethodOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout47: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout48: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout49: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout5: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout50: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleDisableOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout51: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout52: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout53: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleAddOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout54: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobScheduleListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout55: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskAddOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout56: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout57: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskAddCollectionOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout58: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskDeleteMethodOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout59: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout6: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolDeleteMethodOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout60: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskUpdateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout61: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskListSubtasksOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout62: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskTerminateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout63: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "taskReactivateOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout64: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeAddUserOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout65: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeDeleteUserOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout66: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeUpdateUserOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout67: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout68: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeRebootOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout69: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeReimageOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout7: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolExistsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout70: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeDisableSchedulingOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout71: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeEnableSchedulingOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout72: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout73: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteDesktopOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout74: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout75: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeListOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout8: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolGetOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const timeout9: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "poolPatchOptions", + "timeout" + ], + mapper: { + serializedName: "timeout", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const userName: msRest.OperationURLParameter = { + parameterPath: "userName", + mapper: { + required: true, + serializedName: "userName", + type: { + name: "String" + } + } +}; diff --git a/sdk/batch/batch/lib/models/poolMappers.ts b/sdk/batch/batch/lib/models/poolMappers.ts new file mode 100644 index 000000000000..b319fcfd4afb --- /dev/null +++ b/sdk/batch/batch/lib/models/poolMappers.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + PoolListUsageMetricsResult, + PoolUsageMetrics, + PoolListUsageMetricsHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + PoolStatistics, + UsageStatistics, + ResourceStatistics, + PoolGetAllLifetimeStatisticsHeaders, + PoolAddParameter, + CloudServiceConfiguration, + VirtualMachineConfiguration, + ImageReference, + WindowsConfiguration, + DataDisk, + ContainerConfiguration, + ContainerRegistry, + NetworkConfiguration, + PoolEndpointConfiguration, + InboundNATPool, + NetworkSecurityGroupRule, + StartTask, + TaskContainerSettings, + ResourceFile, + EnvironmentSetting, + UserIdentity, + AutoUserSpecification, + CertificateReference, + ApplicationPackageReference, + TaskSchedulingPolicy, + UserAccount, + LinuxUserConfiguration, + WindowsUserConfiguration, + MetadataItem, + PoolAddHeaders, + CloudPoolListResult, + CloudPool, + ResizeError, + NameValuePair, + AutoScaleRun, + AutoScaleRunError, + PoolListHeaders, + PoolDeleteHeaders, + PoolExistsHeaders, + PoolGetHeaders, + PoolPatchParameter, + PoolPatchHeaders, + PoolDisableAutoScaleHeaders, + PoolEnableAutoScaleParameter, + PoolEnableAutoScaleHeaders, + PoolEvaluateAutoScaleParameter, + PoolEvaluateAutoScaleHeaders, + PoolResizeParameter, + PoolResizeHeaders, + PoolStopResizeHeaders, + PoolUpdatePropertiesParameter, + PoolUpdatePropertiesHeaders, + NodeRemoveParameter, + PoolRemoveNodesHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/models/taskMappers.ts b/sdk/batch/batch/lib/models/taskMappers.ts new file mode 100644 index 000000000000..e71f2fcfe8b9 --- /dev/null +++ b/sdk/batch/batch/lib/models/taskMappers.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + TaskAddParameter, + TaskContainerSettings, + ContainerRegistry, + ExitConditions, + ExitCodeMapping, + ExitOptions, + ExitCodeRangeMapping, + ResourceFile, + OutputFile, + OutputFileDestination, + OutputFileBlobContainerDestination, + OutputFileUploadOptions, + EnvironmentSetting, + AffinityInformation, + TaskConstraints, + UserIdentity, + AutoUserSpecification, + MultiInstanceSettings, + TaskDependencies, + TaskIdRange, + ApplicationPackageReference, + AuthenticationTokenSettings, + TaskAddHeaders, + BatchError, + ErrorMessage, + BatchErrorDetail, + CloudTaskListResult, + CloudTask, + TaskExecutionInformation, + TaskContainerExecutionInformation, + TaskFailureInformation, + NameValuePair, + ComputeNodeInformation, + TaskStatistics, + TaskListHeaders, + TaskAddCollectionParameter, + TaskAddCollectionResult, + TaskAddResult, + TaskAddCollectionHeaders, + TaskDeleteHeaders, + TaskGetHeaders, + TaskUpdateParameter, + TaskUpdateHeaders, + CloudTaskListSubtasksResult, + SubtaskInformation, + TaskListSubtasksHeaders, + TaskTerminateHeaders, + TaskReactivateHeaders +} from "../models/mappers"; + diff --git a/sdk/batch/batch/lib/operations/account.ts b/sdk/batch/batch/lib/operations/account.ts new file mode 100644 index 000000000000..aefa31e9c111 --- /dev/null +++ b/sdk/batch/batch/lib/operations/account.ts @@ -0,0 +1,244 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/accountMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a Account. */ +export class Account { + private readonly client: BatchServiceClientContext; + + /** + * Create a Account. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + this.client = client; + } + + /** + * @summary Lists all node agent SKUs supported by the Azure Batch service. + * @param [options] The optional parameters + * @returns Promise + */ + listNodeAgentSkus(options?: Models.AccountListNodeAgentSkusOptionalParams): Promise; + /** + * @param callback The callback + */ + listNodeAgentSkus(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listNodeAgentSkus(options: Models.AccountListNodeAgentSkusOptionalParams, callback: msRest.ServiceCallback): void; + listNodeAgentSkus(options?: Models.AccountListNodeAgentSkusOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listNodeAgentSkusOperationSpec, + callback) as Promise; + } + + /** + * Gets the number of nodes in each state, grouped by pool. + * @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 + */ + listPoolNodeCounts(options: Models.AccountListPoolNodeCountsOptionalParams, callback: msRest.ServiceCallback): void; + listPoolNodeCounts(options?: Models.AccountListPoolNodeCountsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listPoolNodeCountsOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all node agent SKUs 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 + */ + listNodeAgentSkusNext(nextPageLink: string, options?: Models.AccountListNodeAgentSkusNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNodeAgentSkusNext(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 + */ + listNodeAgentSkusNext(nextPageLink: string, options: Models.AccountListNodeAgentSkusNextOptionalParams, callback: msRest.ServiceCallback): void; + listNodeAgentSkusNext(nextPageLink: string, options?: Models.AccountListNodeAgentSkusNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNodeAgentSkusNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the number of nodes in each state, grouped by pool. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPoolNodeCountsNext(nextPageLink: string, options?: Models.AccountListPoolNodeCountsNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPoolNodeCountsNext(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 + */ + listPoolNodeCountsNext(nextPageLink: string, options: Models.AccountListPoolNodeCountsNextOptionalParams, callback: msRest.ServiceCallback): void; + listPoolNodeCountsNext(nextPageLink: string, options?: Models.AccountListPoolNodeCountsNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPoolNodeCountsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listNodeAgentSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "nodeagentskus", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter2, + Parameters.maxResults3, + Parameters.timeout17 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId20, + Parameters.returnClientRequestId20, + Parameters.ocpDate20 + ], + responses: { + 200: { + bodyMapper: Mappers.AccountListNodeAgentSkusResult, + headersMapper: Mappers.AccountListNodeAgentSkusHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listPoolNodeCountsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "nodecounts", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter3, + Parameters.maxResults4, + Parameters.timeout18 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId21, + Parameters.returnClientRequestId21, + Parameters.ocpDate21 + ], + responses: { + 200: { + bodyMapper: Mappers.PoolNodeCountsListResult, + headersMapper: Mappers.AccountListPoolNodeCountsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listNodeAgentSkusNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId22, + Parameters.returnClientRequestId22, + Parameters.ocpDate22 + ], + responses: { + 200: { + bodyMapper: Mappers.AccountListNodeAgentSkusResult, + headersMapper: Mappers.AccountListNodeAgentSkusHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listPoolNodeCountsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId23, + Parameters.returnClientRequestId23, + Parameters.ocpDate23 + ], + responses: { + 200: { + bodyMapper: Mappers.PoolNodeCountsListResult, + headersMapper: Mappers.AccountListPoolNodeCountsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/application.ts b/sdk/batch/batch/lib/operations/application.ts new file mode 100644 index 000000000000..d689f9bb17ab --- /dev/null +++ b/sdk/batch/batch/lib/operations/application.ts @@ -0,0 +1,205 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/applicationMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a Application. */ +export class Application { + private readonly client: BatchServiceClientContext; + + /** + * Create a Application. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + 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 application 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 + */ + 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 + }, + listOperationSpec, + callback) as Promise; + } + + /** + * This operation returns only applications and versions that are available for use on compute + * nodes; that is, that can be used in an application 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 + */ + get(applicationId: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationId The ID of the application. + * @param options The optional parameters + * @param callback The callback + */ + get(applicationId: string, options: Models.ApplicationGetOptionalParams, callback: msRest.ServiceCallback): void; + get(applicationId: string, options?: Models.ApplicationGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * This operation returns only applications and versions that are available for use on compute + * nodes; that is, that can be used in an application 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(nextPageLink: string, options: Models.ApplicationListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ApplicationListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId2, + Parameters.returnClientRequestId2, + Parameters.ocpDate2 + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationListResult, + headersMapper: Mappers.ApplicationListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/certificateOperations.ts b/sdk/batch/batch/lib/operations/certificateOperations.ts new file mode 100644 index 000000000000..7cbabb12ffc7 --- /dev/null +++ b/sdk/batch/batch/lib/operations/certificateOperations.ts @@ -0,0 +1,409 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/certificateOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a CertificateOperations. */ +export class CertificateOperations { + private readonly client: BatchServiceClientContext; + + /** + * Create a CertificateOperations. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + 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 + */ + add(certificate: Models.CertificateAddParameter, callback: msRest.ServiceCallback): void; + /** + * @param certificate The certificate to be added. + * @param options The optional parameters + * @param callback The callback + */ + add(certificate: Models.CertificateAddParameter, options: Models.CertificateAddOptionalParams, callback: msRest.ServiceCallback): void; + add(certificate: Models.CertificateAddParameter, options?: Models.CertificateAddOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + certificate, + options + }, + addOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all of the certificates that have been added to the specified account. + * @param [options] The optional parameters + * @returns Promise + */ + 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; + } + + /** + * 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. + * @param thumbprint The thumbprint of the certificate being deleted. + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + thumbprintAlgorithm, + thumbprint, + options + }, + cancelDeletionOperationSpec, + callback) as 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 compute 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. + * @param thumbprint The thumbprint of the certificate to be deleted. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(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 { + return this.client.sendOperationRequest( + { + thumbprintAlgorithm, + thumbprint, + options + }, + deleteMethodOperationSpec, + callback) as 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 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 thumbprint The thumbprint of the certificate to get. + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + thumbprintAlgorithm, + thumbprint, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @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(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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "certificates", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter7, + Parameters.select6, + Parameters.maxResults8, + Parameters.timeout33 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId41, + Parameters.returnClientRequestId41, + Parameters.ocpDate41 + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateListResult, + headersMapper: Mappers.CertificateListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const cancelDeletionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + 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 + ], + responses: { + 204: { + headersMapper: Mappers.CertificateCancelDeletionHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId45, + Parameters.returnClientRequestId45, + Parameters.ocpDate45 + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateListResult, + headersMapper: Mappers.CertificateListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/computeNodeOperations.ts b/sdk/batch/batch/lib/operations/computeNodeOperations.ts new file mode 100644 index 000000000000..3ffcd01b7dc2 --- /dev/null +++ b/sdk/batch/batch/lib/operations/computeNodeOperations.ts @@ -0,0 +1,932 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/computeNodeOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a ComputeNodeOperations. */ +export class ComputeNodeOperations { + private readonly client: BatchServiceClientContext; + + /** + * Create a ComputeNodeOperations. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + this.client = client; + } + + /** + * You can add a user account to a 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 + */ + addUser(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(poolId: string, nodeId: string, user: Models.ComputeNodeUser, 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 create a user account. + * @param user The user account to be created. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + user, + options + }, + addUserOperationSpec, + callback) as Promise; + } + + /** + * You can delete a user account to a 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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + userName, + options + }, + deleteUserOperationSpec, + callback) as 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 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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + userName, + nodeUpdateUserParameter, + options + }, + updateUserOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * You can restart a 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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + rebootOperationSpec, + callback) as Promise; + } + + /** + * You can reinstall the operating system on a 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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + reimageOperationSpec, + callback) as Promise; + } + + /** + * You can disable task scheduling on a node only if its current scheduling state is enabled. + * @summary Disables task scheduling 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 on which you want to disable task scheduling. + * @param [options] The optional parameters + * @returns Promise + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + disableSchedulingOperationSpec, + callback) as Promise; + } + + /** + * You can enable task scheduling on a node only if its current scheduling state is disabled + * @summary Enables task scheduling 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 on which you want to enable task scheduling. + * @param [options] The optional parameters + * @returns Promise + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + enableSchedulingOperationSpec, + callback) as Promise; + } + + /** + * Before you can remotely login to a node using the remote login settings, you must create a user + * account on the 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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + getRemoteLoginSettingsOperationSpec, + callback) as Promise; + } + + /** + * Before you can access a node by using the RDP file, you must create a user account on the 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. + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + getRemoteDesktopOperationSpec, + callback) as Promise; + } + + /** + * This is for gathering Azure Batch service log files in an automated fashion from 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. + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + uploadBatchServiceLogsConfiguration, + options + }, + uploadBatchServiceLogsOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists the compute nodes in the specified pool. + * @param poolId The ID of the pool from which you want to list nodes. + * @param [options] The optional parameters + * @returns Promise + */ + list(poolId: string, options?: Models.ComputeNodeListOptionalParams): Promise; + /** + * @param poolId The ID of the pool from which you want to list 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 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 { + return this.client.sendOperationRequest( + { + poolId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @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(nextPageLink: string, options: Models.ComputeNodeListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ComputeNodeListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addUserOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const deleteUserOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const updateUserOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const rebootOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/nodes/{nodeId}/reboot", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout68 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId81, + Parameters.returnClientRequestId81, + Parameters.ocpDate81 + ], + requestBody: { + parameterPath: { + nodeRebootOption: [ + "options", + "nodeRebootOption" + ] + }, + mapper: Mappers.NodeRebootParameter + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 202: { + headersMapper: Mappers.ComputeNodeRebootHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const reimageOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/nodes/{nodeId}/reimage", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout69 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId82, + Parameters.returnClientRequestId82, + Parameters.ocpDate82 + ], + requestBody: { + parameterPath: { + nodeReimageOption: [ + "options", + "nodeReimageOption" + ] + }, + mapper: Mappers.NodeReimageParameter + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 202: { + headersMapper: Mappers.ComputeNodeReimageHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const disableSchedulingOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/nodes/{nodeId}/disablescheduling", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout70 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId83, + Parameters.returnClientRequestId83, + Parameters.ocpDate83 + ], + requestBody: { + parameterPath: { + nodeDisableSchedulingOption: [ + "options", + "nodeDisableSchedulingOption" + ] + }, + mapper: Mappers.NodeDisableSchedulingParameter + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + headersMapper: Mappers.ComputeNodeDisableSchedulingHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const enableSchedulingOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/nodes/{nodeId}/enablescheduling", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout71 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId84, + Parameters.returnClientRequestId84, + Parameters.ocpDate84 + ], + responses: { + 200: { + headersMapper: Mappers.ComputeNodeEnableSchedulingHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const getRemoteLoginSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "pools/{poolId}/nodes/{nodeId}/remoteloginsettings", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout72 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId85, + Parameters.returnClientRequestId85, + Parameters.ocpDate85 + ], + responses: { + 200: { + bodyMapper: Mappers.ComputeNodeGetRemoteLoginSettingsResult, + headersMapper: Mappers.ComputeNodeGetRemoteLoginSettingsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const getRemoteDesktopOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "pools/{poolId}/nodes/{nodeId}/rdp", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout73 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId86, + Parameters.returnClientRequestId86, + Parameters.ocpDate86 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + }, + headersMapper: Mappers.ComputeNodeGetRemoteDesktopHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const uploadBatchServiceLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout74 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId87, + Parameters.returnClientRequestId87, + Parameters.ocpDate87 + ], + requestBody: { + parameterPath: "uploadBatchServiceLogsConfiguration", + mapper: { + ...Mappers.UploadBatchServiceLogsConfiguration, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + bodyMapper: Mappers.UploadBatchServiceLogsResult, + headersMapper: Mappers.ComputeNodeUploadBatchServiceLogsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "pools/{poolId}/nodes", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter12, + Parameters.select14, + Parameters.maxResults13, + Parameters.timeout75 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId88, + Parameters.returnClientRequestId88, + Parameters.ocpDate88 + ], + responses: { + 200: { + bodyMapper: Mappers.ComputeNodeListResult, + headersMapper: Mappers.ComputeNodeListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId89, + Parameters.returnClientRequestId89, + Parameters.ocpDate89 + ], + responses: { + 200: { + bodyMapper: Mappers.ComputeNodeListResult, + headersMapper: Mappers.ComputeNodeListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/file.ts b/sdk/batch/batch/lib/operations/file.ts new file mode 100644 index 000000000000..75169781d916 --- /dev/null +++ b/sdk/batch/batch/lib/operations/file.ts @@ -0,0 +1,686 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/fileMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a File. */ +export class File { + private readonly client: BatchServiceClientContext; + + /** + * Create a File. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + this.client = client; + } + + /** + * @summary 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 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 + */ + deleteFromTask(jobId: string, taskId: string, filePath: string, options: Models.FileDeleteFromTaskOptionalParams, callback: msRest.ServiceCallback): void; + deleteFromTask(jobId: string, taskId: string, filePath: string, options?: Models.FileDeleteFromTaskOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + taskId, + filePath, + options + }, + deleteFromTaskOperationSpec, + callback) as 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 optional parameters + * @returns Promise + */ + getFromTask(jobId: string, taskId: string, filePath: string, options?: Models.FileGetFromTaskOptionalParams): Promise; + /** + * @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 + */ + getFromTask(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 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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + filePath, + options + }, + getFromTaskOperationSpec, + callback) as 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 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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + filePath, + options + }, + getPropertiesFromTaskOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + filePath, + options + }, + deleteFromComputeNodeOperationSpec, + callback) as 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 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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + filePath, + options + }, + getFromComputeNodeOperationSpec, + callback) as 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 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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + filePath, + options + }, + getPropertiesFromComputeNodeOperationSpec, + callback) as Promise; + } + + /** + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + listFromTaskOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 + */ + 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(poolId: string, nodeId: string, options?: Models.FileListFromComputeNodeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + poolId, + nodeId, + options + }, + listFromComputeNodeOperationSpec, + callback) as Promise; + } + + /** + * @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(nextPageLink: string, options: Models.FileListFromTaskNextOptionalParams, callback: msRest.ServiceCallback): void; + listFromTaskNext(nextPageLink: string, options?: Models.FileListFromTaskNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listFromTaskNextOperationSpec, + callback) as Promise; + } + + /** + * @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(nextPageLink: string, options: Models.FileListFromComputeNodeNextOptionalParams, callback: msRest.ServiceCallback): void; + listFromComputeNodeNext(nextPageLink: string, options?: Models.FileListFromComputeNodeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listFromComputeNodeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteFromTaskOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const getFromTaskOperationSpec: msRest.OperationSpec = { + 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" + } + }, + headersMapper: Mappers.FileGetFromTaskHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const getPropertiesFromTaskOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const deleteFromComputeNodeOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const getFromComputeNodeOperationSpec: msRest.OperationSpec = { + 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" + } + }, + headersMapper: Mappers.FileGetFromComputeNodeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const getPropertiesFromComputeNodeOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "pools/{poolId}/nodes/{nodeId}/files/{filePath}", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId, + Parameters.filePath + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout42 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId51, + Parameters.returnClientRequestId51, + Parameters.ocpDate51, + Parameters.ifModifiedSince18, + Parameters.ifUnmodifiedSince18 + ], + responses: { + 200: { + headersMapper: Mappers.FileGetPropertiesFromComputeNodeHeaders + }, + default: { + 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.filter8, + Parameters.maxResults9, + Parameters.timeout43 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId52, + Parameters.returnClientRequestId52, + Parameters.ocpDate52 + ], + responses: { + 200: { + bodyMapper: Mappers.NodeFileListResult, + headersMapper: Mappers.FileListFromTaskHeaders + }, + default: { + 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.filter9, + Parameters.maxResults10, + Parameters.timeout44 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId53, + Parameters.returnClientRequestId53, + Parameters.ocpDate53 + ], + responses: { + 200: { + bodyMapper: Mappers.NodeFileListResult, + headersMapper: Mappers.FileListFromComputeNodeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listFromTaskNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId54, + Parameters.returnClientRequestId54, + Parameters.ocpDate54 + ], + responses: { + 200: { + bodyMapper: Mappers.NodeFileListResult, + headersMapper: Mappers.FileListFromTaskHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listFromComputeNodeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId55, + Parameters.returnClientRequestId55, + Parameters.ocpDate55 + ], + responses: { + 200: { + bodyMapper: Mappers.NodeFileListResult, + headersMapper: Mappers.FileListFromComputeNodeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/index.ts b/sdk/batch/batch/lib/operations/index.ts new file mode 100644 index 000000000000..ab28bd75785c --- /dev/null +++ b/sdk/batch/batch/lib/operations/index.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; diff --git a/sdk/batch/batch/lib/operations/job.ts b/sdk/batch/batch/lib/operations/job.ts new file mode 100644 index 000000000000..032091ec6211 --- /dev/null +++ b/sdk/batch/batch/lib/operations/job.ts @@ -0,0 +1,1067 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/jobMappers"; +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) { + 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 + */ + 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 + }, + getAllLifetimeStatisticsOperationSpec, + callback) as 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. + * @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 + */ + deleteMethod(jobId: string, callback: msRest.ServiceCallback): void; + /** + * @param jobId The ID of the job to delete. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(jobId: string, options: Models.JobDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(jobId: string, options?: Models.JobDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets information about the specified job. + * @param jobId The ID of the job. + * @param [options] The optional parameters + * @returns Promise + */ + get(jobId: string, options?: Models.JobGetOptionalParams): Promise; + /** + * @param jobId The ID of the job. + * @param callback The callback + */ + get(jobId: string, callback: msRest.ServiceCallback): void; + /** + * @param jobId The ID of the job. + * @param options The optional parameters + * @param callback The callback + */ + get(jobId: string, options: Models.JobGetOptionalParams, callback: msRest.ServiceCallback): void; + get(jobId: string, options?: Models.JobGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + options + }, + getOperationSpec, + callback) as 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. + * @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; + /** + * @param jobId The ID of the job whose properties you want to update. + * @param jobPatchParameter The parameters for the request. + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + jobPatchParameter, + options + }, + patchOperationSpec, + callback) as 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. + * @summary Updates the properties of the specified job. + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + jobUpdateParameter, + options + }, + updateOperationSpec, + callback) as 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. + * @summary Disables the specified job, preventing new tasks from running. + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + disableTasks, + options + }, + disableOperationSpec, + callback) as 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. + * @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; + /** + * @param jobId The ID of the job to enable. + * @param options The optional parameters + * @param callback The callback + */ + enable(jobId: string, options: Models.JobEnableOptionalParams, callback: msRest.ServiceCallback): void; + enable(jobId: string, options?: Models.JobEnableOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + options + }, + enableOperationSpec, + callback) as 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. + * @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; + /** + * @param jobId The ID of the job to terminate. + * @param options The optional parameters + * @param callback The callback + */ + terminate(jobId: string, options: Models.JobTerminateOptionalParams, callback: msRest.ServiceCallback): void; + terminate(jobId: string, options?: Models.JobTerminateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + options + }, + terminateOperationSpec, + callback) as 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. + * @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; + /** + * @param job The job to be added. + * @param options The optional parameters + * @param callback The callback + */ + 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; + } + + /** + * @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 + */ + 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; + } + + /** + * @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; + /** + * @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 + */ + listFromJobSchedule(jobScheduleId: string, options: Models.JobListFromJobScheduleOptionalParams, callback: msRest.ServiceCallback): void; + listFromJobSchedule(jobScheduleId: string, options?: Models.JobListFromJobScheduleOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + listFromJobScheduleOperationSpec, + callback) as Promise; + } + + /** + * 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 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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + options + }, + listPreparationAndReleaseTaskStatusOperationSpec, + callback) as 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. + * @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; + /** + * @param jobId The ID of the job. + * @param options The optional parameters + * @param callback The callback + */ + getTaskCounts(jobId: string, options: Models.JobGetTaskCountsOptionalParams, callback: msRest.ServiceCallback): void; + getTaskCounts(jobId: string, options?: Models.JobGetTaskCountsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + options + }, + getTaskCountsOperationSpec, + callback) as Promise; + } + + /** + * @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(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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * @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(nextPageLink: string, options: Models.JobListFromJobScheduleNextOptionalParams, callback: msRest.ServiceCallback): void; + listFromJobScheduleNext(nextPageLink: string, options?: Models.JobListFromJobScheduleNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listFromJobScheduleNextOperationSpec, + callback) as Promise; + } + + /** + * 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 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(nextPageLink: string, options: Models.JobListPreparationAndReleaseTaskStatusNextOptionalParams, callback: msRest.ServiceCallback): void; + listPreparationAndReleaseTaskStatusNext(nextPageLink: string, options?: Models.JobListPreparationAndReleaseTaskStatusNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPreparationAndReleaseTaskStatusNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getAllLifetimeStatisticsOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "jobs/{jobId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout20 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId25, + Parameters.returnClientRequestId25, + Parameters.ocpDate25, + Parameters.ifMatch8, + Parameters.ifNoneMatch8, + Parameters.ifModifiedSince8, + Parameters.ifUnmodifiedSince8 + ], + responses: { + 202: { + headersMapper: Mappers.JobDeleteHeaders + }, + default: { + 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 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId26, + Parameters.returnClientRequestId26, + Parameters.ocpDate26, + Parameters.ifMatch9, + Parameters.ifNoneMatch9, + Parameters.ifModifiedSince9, + Parameters.ifUnmodifiedSince9 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJob, + headersMapper: Mappers.JobGetHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const patchOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "jobs/{jobId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout22 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId27, + Parameters.returnClientRequestId27, + Parameters.ocpDate27, + Parameters.ifMatch10, + Parameters.ifNoneMatch10, + Parameters.ifModifiedSince10, + Parameters.ifUnmodifiedSince10 + ], + requestBody: { + parameterPath: "jobPatchParameter", + mapper: { + ...Mappers.JobPatchParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + headersMapper: Mappers.JobPatchHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "jobs/{jobId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout23 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId28, + Parameters.returnClientRequestId28, + Parameters.ocpDate28, + Parameters.ifMatch11, + Parameters.ifNoneMatch11, + Parameters.ifModifiedSince11, + Parameters.ifUnmodifiedSince11 + ], + requestBody: { + parameterPath: "jobUpdateParameter", + mapper: { + ...Mappers.JobUpdateParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + headersMapper: Mappers.JobUpdateHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const disableOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobs/{jobId}/disable", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout24 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId29, + Parameters.returnClientRequestId29, + Parameters.ocpDate29, + 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", + responses: { + 202: { + headersMapper: Mappers.JobDisableHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const enableOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobs/{jobId}/enable", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout25 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId30, + Parameters.returnClientRequestId30, + Parameters.ocpDate30, + Parameters.ifMatch13, + Parameters.ifNoneMatch13, + Parameters.ifModifiedSince13, + Parameters.ifUnmodifiedSince13 + ], + responses: { + 202: { + headersMapper: Mappers.JobEnableHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const terminateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobs/{jobId}/terminate", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout26 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId31, + Parameters.returnClientRequestId31, + Parameters.ocpDate31, + 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 + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "jobs", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter4, + Parameters.select3, + Parameters.expand3, + Parameters.maxResults5, + Parameters.timeout28 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId33, + Parameters.returnClientRequestId33, + Parameters.ocpDate33 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListResult, + headersMapper: Mappers.JobListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listFromJobScheduleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "jobschedules/{jobScheduleId}/jobs", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter5, + Parameters.select4, + Parameters.expand4, + Parameters.maxResults6, + Parameters.timeout29 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId34, + Parameters.returnClientRequestId34, + Parameters.ocpDate34 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListResult, + headersMapper: Mappers.JobListFromJobScheduleHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listPreparationAndReleaseTaskStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "jobs/{jobId}/jobpreparationandreleasetaskstatus", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter6, + Parameters.select5, + Parameters.maxResults7, + Parameters.timeout30 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId35, + Parameters.returnClientRequestId35, + Parameters.ocpDate35 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListPreparationAndReleaseTaskStatusResult, + headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const getTaskCountsOperationSpec: msRest.OperationSpec = { + 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.TaskCounts, + headersMapper: Mappers.JobGetTaskCountsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId37, + Parameters.returnClientRequestId37, + Parameters.ocpDate37 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListResult, + headersMapper: Mappers.JobListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listFromJobScheduleNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId38, + Parameters.returnClientRequestId38, + Parameters.ocpDate38 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListResult, + headersMapper: Mappers.JobListFromJobScheduleHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listPreparationAndReleaseTaskStatusNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId39, + Parameters.returnClientRequestId39, + Parameters.ocpDate39 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListPreparationAndReleaseTaskStatusResult, + headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/jobSchedule.ts b/sdk/batch/batch/lib/operations/jobSchedule.ts new file mode 100644 index 000000000000..1aca6bbdd8ad --- /dev/null +++ b/sdk/batch/batch/lib/operations/jobSchedule.ts @@ -0,0 +1,726 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/jobScheduleMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a JobSchedule. */ +export class JobSchedule { + private readonly client: BatchServiceClientContext; + + /** + * Create a JobSchedule. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + 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 + */ + exists(jobScheduleId: string, callback: msRest.ServiceCallback): void; + /** + * @param jobScheduleId The ID of the job schedule which you want to check. + * @param options The optional parameters + * @param callback The callback + */ + exists(jobScheduleId: string, options: Models.JobScheduleExistsOptionalParams, callback: msRest.ServiceCallback): void; + exists(jobScheduleId: string, options?: Models.JobScheduleExistsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + existsOperationSpec, + callback) as 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. + * @summary Deletes a job schedule from the specified account. + * @param jobScheduleId The ID of the job schedule to delete. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the specified job schedule. + * @param jobScheduleId The ID of the job schedule to get. + * @param [options] The optional parameters + * @returns Promise + */ + 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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + getOperationSpec, + callback) as 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. + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + jobSchedulePatchParameter, + options + }, + patchOperationSpec, + callback) as 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. + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + jobScheduleUpdateParameter, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + disableOperationSpec, + callback) as Promise; + } + + /** + * @summary Enables a job schedule. + * @param jobScheduleId The ID of the job schedule to enable. + * @param [options] The optional parameters + * @returns Promise + */ + 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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + enableOperationSpec, + callback) as Promise; + } + + /** + * @summary Terminates a job schedule. + * @param jobScheduleId The ID of the job schedule to terminates. + * @param [options] The optional parameters + * @returns Promise + */ + 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 { + return this.client.sendOperationRequest( + { + jobScheduleId, + options + }, + terminateOperationSpec, + callback) as Promise; + } + + /** + * @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; + /** + * @param cloudJobSchedule The job schedule to be added. + * @param options The optional parameters + * @param callback The callback + */ + add(cloudJobSchedule: Models.JobScheduleAddParameter, options: Models.JobScheduleAddOptionalParams, callback: msRest.ServiceCallback): void; + add(cloudJobSchedule: Models.JobScheduleAddParameter, options?: Models.JobScheduleAddOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + cloudJobSchedule, + options + }, + addOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all of the job schedules in the specified account. + * @param [options] The optional parameters + * @returns Promise + */ + 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; + } + + /** + * @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(nextPageLink: string, options: Models.JobScheduleListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.JobScheduleListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const existsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "jobschedules/{jobScheduleId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout45 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId56, + Parameters.returnClientRequestId56, + Parameters.ocpDate56, + Parameters.ifMatch15, + Parameters.ifNoneMatch15, + Parameters.ifModifiedSince19, + Parameters.ifUnmodifiedSince19 + ], + responses: { + 200: { + headersMapper: Mappers.JobScheduleExistsHeaders + }, + 404: { + headersMapper: Mappers.JobScheduleExistsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "jobschedules/{jobScheduleId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout46 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId57, + Parameters.returnClientRequestId57, + Parameters.ocpDate57, + Parameters.ifMatch16, + Parameters.ifNoneMatch16, + Parameters.ifModifiedSince20, + Parameters.ifUnmodifiedSince20 + ], + responses: { + 202: { + headersMapper: Mappers.JobScheduleDeleteHeaders + }, + default: { + 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 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId58, + Parameters.returnClientRequestId58, + Parameters.ocpDate58, + Parameters.ifMatch17, + Parameters.ifNoneMatch17, + Parameters.ifModifiedSince21, + Parameters.ifUnmodifiedSince21 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobSchedule, + headersMapper: Mappers.JobScheduleGetHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const patchOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "jobschedules/{jobScheduleId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout48 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId59, + Parameters.returnClientRequestId59, + Parameters.ocpDate59, + Parameters.ifMatch18, + Parameters.ifNoneMatch18, + Parameters.ifModifiedSince22, + Parameters.ifUnmodifiedSince22 + ], + requestBody: { + parameterPath: "jobSchedulePatchParameter", + mapper: { + ...Mappers.JobSchedulePatchParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + headersMapper: Mappers.JobSchedulePatchHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "jobschedules/{jobScheduleId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout49 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId60, + Parameters.returnClientRequestId60, + Parameters.ocpDate60, + Parameters.ifMatch19, + Parameters.ifNoneMatch19, + Parameters.ifModifiedSince23, + Parameters.ifUnmodifiedSince23 + ], + requestBody: { + parameterPath: "jobScheduleUpdateParameter", + mapper: { + ...Mappers.JobScheduleUpdateParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + headersMapper: Mappers.JobScheduleUpdateHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const disableOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobschedules/{jobScheduleId}/disable", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout50 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId61, + Parameters.returnClientRequestId61, + Parameters.ocpDate61, + Parameters.ifMatch20, + Parameters.ifNoneMatch20, + Parameters.ifModifiedSince24, + Parameters.ifUnmodifiedSince24 + ], + responses: { + 204: { + headersMapper: Mappers.JobScheduleDisableHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const enableOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobschedules/{jobScheduleId}/enable", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout51 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId62, + Parameters.returnClientRequestId62, + Parameters.ocpDate62, + Parameters.ifMatch21, + Parameters.ifNoneMatch21, + Parameters.ifModifiedSince25, + Parameters.ifUnmodifiedSince25 + ], + responses: { + 204: { + headersMapper: Mappers.JobScheduleEnableHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const terminateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobschedules/{jobScheduleId}/terminate", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobScheduleId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout52 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId63, + Parameters.returnClientRequestId63, + Parameters.ocpDate63, + Parameters.ifMatch22, + Parameters.ifNoneMatch22, + Parameters.ifModifiedSince26, + Parameters.ifUnmodifiedSince26 + ], + responses: { + 202: { + headersMapper: Mappers.JobScheduleTerminateHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "jobschedules", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter10, + Parameters.select9, + Parameters.expand6, + Parameters.maxResults11, + Parameters.timeout54 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId65, + Parameters.returnClientRequestId65, + Parameters.ocpDate65 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobScheduleListResult, + headersMapper: Mappers.JobScheduleListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId66, + Parameters.returnClientRequestId66, + Parameters.ocpDate66 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudJobScheduleListResult, + headersMapper: Mappers.JobScheduleListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/pool.ts b/sdk/batch/batch/lib/operations/pool.ts new file mode 100644 index 000000000000..4fb694a9153e --- /dev/null +++ b/sdk/batch/batch/lib/operations/pool.ts @@ -0,0 +1,1160 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/poolMappers"; +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) { + 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; + /** + * @param callback The callback + */ + listUsageMetrics(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listUsageMetricsOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + getAllLifetimeStatistics(options: Models.PoolGetAllLifetimeStatisticsOptionalParams, callback: msRest.ServiceCallback): void; + getAllLifetimeStatistics(options?: Models.PoolGetAllLifetimeStatisticsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getAllLifetimeStatisticsOperationSpec, + callback) as 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. + * @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; + /** + * @param pool The pool to be added. + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + pool, + options + }, + addOperationSpec, + callback) as Promise; + } + + /** + * @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 + */ + 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; + } + + /** + * 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 nodes; any tasks running on existing 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; + /** + * @param poolId The ID of the pool to delete. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(poolId: string, options: Models.PoolDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(poolId: string, options?: Models.PoolDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + poolId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + exists(poolId: string, options: Models.PoolExistsOptionalParams, callback: msRest.ServiceCallback): void; + exists(poolId: string, options?: Models.PoolExistsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + poolId, + options + }, + existsOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + get(poolId: string, options: Models.PoolGetOptionalParams, callback: msRest.ServiceCallback): void; + get(poolId: string, options?: Models.PoolGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + poolId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * This only replaces the pool properties specified in the request. For example, if the pool has a + * start task associated with it, and a request does not specify a start task element, then the + * pool keeps the existing start task. + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + poolPatchParameter, + options + }, + patchOperationSpec, + callback) as Promise; + } + + /** + * @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; + /** + * @param poolId The ID of the pool on which to disable automatic scaling. + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + options + }, + disableAutoScaleOperationSpec, + callback) as 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. + * @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; + /** + * @param poolId The ID of the pool on which to enable automatic scaling. + * @param poolEnableAutoScaleParameter The parameters for the request. + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + poolEnableAutoScaleParameter, + options + }, + enableAutoScaleOperationSpec, + callback) as 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. + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + autoScaleFormula, + options + }, + evaluateAutoScaleOperationSpec, + callback) as 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 nodes to remove. To remove specific nodes, use the + * pool remove 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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + poolResizeParameter, + options + }, + resizeOperationSpec, + callback) as 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 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; + /** + * @param poolId The ID of the pool whose resizing you want to stop. + * @param options The optional parameters + * @param callback The callback + */ + stopResize(poolId: string, options: Models.PoolStopResizeOptionalParams, callback: msRest.ServiceCallback): void; + stopResize(poolId: string, options?: Models.PoolStopResizeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + poolId, + options + }, + stopResizeOperationSpec, + callback) as Promise; + } + + /** + * This fully replaces all the updatable properties of the pool. For example, if the pool has a + * start task associated with it and if start task is not specified with this request, then the + * Batch service will remove the existing start task. + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + poolUpdatePropertiesParameter, + options + }, + updatePropertiesOperationSpec, + callback) as 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. + * @summary Removes compute nodes from the specified pool. + * @param poolId The ID of the pool from which you want to remove 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 nodes. + * @param nodeRemoveParameter The parameters for the request. + * @param callback The callback + */ + removeNodes(poolId: string, nodeRemoveParameter: Models.NodeRemoveParameter, callback: msRest.ServiceCallback): void; + /** + * @param poolId The ID of the pool from which you want to remove nodes. + * @param nodeRemoveParameter The parameters for the request. + * @param options The optional parameters + * @param callback The callback + */ + 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 { + return this.client.sendOperationRequest( + { + poolId, + nodeRemoveParameter, + options + }, + removeNodesOperationSpec, + callback) as 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. + * @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(nextPageLink: string, options: Models.PoolListUsageMetricsNextOptionalParams, callback: msRest.ServiceCallback): void; + listUsageMetricsNext(nextPageLink: string, options?: Models.PoolListUsageMetricsNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUsageMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * @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(nextPageLink: string, options: Models.PoolListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.PoolListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listUsageMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "poolusagemetrics", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.startTime, + Parameters.endTime, + Parameters.filter0, + Parameters.maxResults1, + Parameters.timeout2 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId3, + Parameters.returnClientRequestId3, + Parameters.ocpDate3 + ], + responses: { + 200: { + bodyMapper: Mappers.PoolListUsageMetricsResult, + headersMapper: Mappers.PoolListUsageMetricsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const getAllLifetimeStatisticsOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools", + urlParameters: [ + Parameters.batchUrl + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout4 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId5, + Parameters.returnClientRequestId5, + Parameters.ocpDate5 + ], + requestBody: { + parameterPath: "pool", + mapper: { + ...Mappers.PoolAddParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 201: { + headersMapper: Mappers.PoolAddHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "pools", + 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 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudPoolListResult, + headersMapper: Mappers.PoolListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const existsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "pools/{poolId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout7 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId8, + Parameters.returnClientRequestId8, + Parameters.ocpDate8, + Parameters.ifMatch1, + Parameters.ifNoneMatch1, + Parameters.ifModifiedSince1, + Parameters.ifUnmodifiedSince1 + ], + responses: { + 200: { + headersMapper: Mappers.PoolExistsHeaders + }, + 404: { + headersMapper: Mappers.PoolExistsHeaders + }, + default: { + 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 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId9, + Parameters.returnClientRequestId9, + Parameters.ocpDate9, + Parameters.ifMatch2, + Parameters.ifNoneMatch2, + Parameters.ifModifiedSince2, + Parameters.ifUnmodifiedSince2 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudPool, + headersMapper: Mappers.PoolGetHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const patchOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "pools/{poolId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout9 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId10, + Parameters.returnClientRequestId10, + Parameters.ocpDate10, + Parameters.ifMatch3, + Parameters.ifNoneMatch3, + Parameters.ifModifiedSince3, + Parameters.ifUnmodifiedSince3 + ], + requestBody: { + parameterPath: "poolPatchParameter", + mapper: { + ...Mappers.PoolPatchParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + headersMapper: Mappers.PoolPatchHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const disableAutoScaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/disableautoscale", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout10 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId11, + Parameters.returnClientRequestId11, + Parameters.ocpDate11 + ], + responses: { + 200: { + headersMapper: Mappers.PoolDisableAutoScaleHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const enableAutoScaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/enableautoscale", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout11 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId12, + Parameters.returnClientRequestId12, + Parameters.ocpDate12, + 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 + } + }, + serializer +}; + +const evaluateAutoScaleOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const resizeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/resize", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout13 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId14, + Parameters.returnClientRequestId14, + Parameters.ocpDate14, + Parameters.ifMatch5, + Parameters.ifNoneMatch5, + Parameters.ifModifiedSince5, + Parameters.ifUnmodifiedSince5 + ], + requestBody: { + parameterPath: "poolResizeParameter", + mapper: { + ...Mappers.PoolResizeParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 202: { + headersMapper: Mappers.PoolResizeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const stopResizeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/stopresize", + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout14 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId15, + Parameters.returnClientRequestId15, + Parameters.ocpDate15, + Parameters.ifMatch6, + Parameters.ifNoneMatch6, + Parameters.ifModifiedSince6, + Parameters.ifUnmodifiedSince6 + ], + responses: { + 202: { + headersMapper: Mappers.PoolStopResizeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const updatePropertiesOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const removeNodesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "pools/{poolId}/removenodes", + 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 + ], + requestBody: { + parameterPath: "nodeRemoveParameter", + mapper: { + ...Mappers.NodeRemoveParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 202: { + headersMapper: Mappers.PoolRemoveNodesHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listUsageMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId18, + Parameters.returnClientRequestId18, + Parameters.ocpDate18 + ], + responses: { + 200: { + bodyMapper: Mappers.PoolListUsageMetricsResult, + headersMapper: Mappers.PoolListUsageMetricsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId19, + Parameters.returnClientRequestId19, + Parameters.ocpDate19 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudPoolListResult, + headersMapper: Mappers.PoolListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/lib/operations/task.ts b/sdk/batch/batch/lib/operations/task.ts new file mode 100644 index 000000000000..809212a479e2 --- /dev/null +++ b/sdk/batch/batch/lib/operations/task.ts @@ -0,0 +1,732 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/taskMappers"; +import * as Parameters from "../models/parameters"; +import { BatchServiceClientContext } from "../batchServiceClientContext"; + +/** Class representing a Task. */ +export class Task { + private readonly client: BatchServiceClientContext; + + /** + * Create a Task. + * @param {BatchServiceClientContext} client Reference to the service client. + */ + constructor(client: BatchServiceClientContext) { + 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 + */ + add(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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + task, + options + }, + addOperationSpec, + callback) as 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. + * @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; + /** + * @param jobId The ID of the job. + * @param options The optional parameters + * @param callback The callback + */ + list(jobId: string, options: Models.TaskListOptionalParams, callback: msRest.ServiceCallback): void; + list(jobId: string, options?: Models.TaskListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + jobId, + options + }, + listOperationSpec, + callback) as 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. + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + value, + options + }, + addCollectionOperationSpec, + callback) as 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. + * @summary Deletes a task from the specified job. + * @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 + */ + deleteMethod(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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + deleteMethodOperationSpec, + callback) as 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. + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + getOperationSpec, + callback) as 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 [options] The optional parameters + * @returns Promise + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + listSubtasksOperationSpec, + callback) as 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. + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + terminateOperationSpec, + callback) as 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). + * @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; + /** + * @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 + */ + 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 { + return this.client.sendOperationRequest( + { + jobId, + taskId, + options + }, + reactivateOperationSpec, + callback) as 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. + * @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(nextPageLink: string, options: Models.TaskListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.TaskListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "jobs/{jobId}/tasks", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter11, + Parameters.select10, + Parameters.expand7, + Parameters.maxResults12, + Parameters.timeout56 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId68, + Parameters.returnClientRequestId68, + Parameters.ocpDate68 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudTaskListResult, + headersMapper: Mappers.TaskListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const addCollectionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobs/{jobId}/addtaskcollection", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout57 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId69, + Parameters.returnClientRequestId69, + Parameters.ocpDate69 + ], + requestBody: { + parameterPath: { + value: "value" + }, + mapper: { + ...Mappers.TaskAddCollectionParameter, + required: true + } + }, + contentType: "application/json; odata=minimalmetadata; charset=utf-8", + responses: { + 200: { + bodyMapper: Mappers.TaskAddCollectionResult, + headersMapper: Mappers.TaskAddCollectionHeaders + }, + default: { + 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 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId70, + Parameters.returnClientRequestId70, + Parameters.ocpDate70, + Parameters.ifMatch23, + Parameters.ifNoneMatch23, + Parameters.ifModifiedSince27, + Parameters.ifUnmodifiedSince27 + ], + responses: { + 200: { + headersMapper: Mappers.TaskDeleteHeaders + }, + default: { + 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 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId71, + Parameters.returnClientRequestId71, + Parameters.ocpDate71, + Parameters.ifMatch24, + Parameters.ifNoneMatch24, + Parameters.ifModifiedSince28, + Parameters.ifUnmodifiedSince28 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudTask, + headersMapper: Mappers.TaskGetHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "jobs/{jobId}/tasks/{taskId}", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId, + Parameters.taskId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout60 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId72, + Parameters.returnClientRequestId72, + Parameters.ocpDate72, + 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 + } + }, + serializer +}; + +const listSubtasksOperationSpec: msRest.OperationSpec = { + 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 + } + }, + serializer +}; + +const terminateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "jobs/{jobId}/tasks/{taskId}/terminate", + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId, + Parameters.taskId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.timeout62 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId74, + Parameters.returnClientRequestId74, + Parameters.ocpDate74, + Parameters.ifMatch26, + Parameters.ifNoneMatch26, + Parameters.ifModifiedSince30, + Parameters.ifUnmodifiedSince30 + ], + responses: { + 204: { + headersMapper: Mappers.TaskTerminateHeaders + }, + default: { + 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 + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId75, + Parameters.returnClientRequestId75, + Parameters.ocpDate75, + Parameters.ifMatch27, + Parameters.ifNoneMatch27, + Parameters.ifModifiedSince31, + Parameters.ifUnmodifiedSince31 + ], + responses: { + 204: { + headersMapper: Mappers.TaskReactivateHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "{batchUrl}", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage, + Parameters.clientRequestId76, + Parameters.returnClientRequestId76, + Parameters.ocpDate76 + ], + responses: { + 200: { + bodyMapper: Mappers.CloudTaskListResult, + headersMapper: Mappers.TaskListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + serializer +}; diff --git a/sdk/batch/batch/package.json b/sdk/batch/batch/package.json index 42fc6dc1d957..080e3f6c1195 100644 --- a/sdk/batch/batch/package.json +++ b/sdk/batch/batch/package.json @@ -4,8 +4,8 @@ "description": "BatchServiceClient Library with typescript type definitions for node.js and browser.", "version": "6.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/batch/batch", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,7 +43,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", + "lib/**/*.ts", "rollup.config.js", "tsconfig.json" ], @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/batch.js.map'\" -o ./dist/batch.min.js ./dist/batch.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/sdk/batch/batch/rollup.config.js b/sdk/batch/batch/rollup.config.js index e9508c720dd7..c97755549636 100644 --- a/sdk/batch/batch/rollup.config.js +++ b/sdk/batch/batch/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/batchServiceClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/batchServiceClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/batch.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/batch/batch/tsconfig.json b/sdk/batch/batch/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/batch/batch/tsconfig.json +++ b/sdk/batch/batch/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] }