|
| 1 | +/* |
| 2 | + * Copyright (c) Microsoft Corporation. |
| 3 | + * Licensed under the MIT License. |
| 4 | + * |
| 5 | + * Code generated by Microsoft (R) AutoRest Code Generator. |
| 6 | + * Changes may cause incorrect behavior and will be lost if the code is |
| 7 | + * regenerated. |
| 8 | + */ |
| 9 | + |
| 10 | +import * as msRest from "@azure/ms-rest-js"; |
| 11 | +import { TokenCredential } from "@azure/core-auth"; |
| 12 | +import * as msRestAzure from "@azure/ms-rest-azure-js"; |
| 13 | +import * as Models from "./models"; |
| 14 | +import * as Mappers from "./models/mappers"; |
| 15 | +import * as operations from "./operations"; |
| 16 | +import { BatchServiceContext } from "./batchServiceContext"; |
| 17 | + |
| 18 | + |
| 19 | +class BatchService extends BatchServiceContext { |
| 20 | + // Operation groups |
| 21 | + application: operations.Application; |
| 22 | + pool: operations.Pool; |
| 23 | + account: operations.Account; |
| 24 | + job: operations.Job; |
| 25 | + certificate: operations.CertificateOperations; |
| 26 | + file: operations.File; |
| 27 | + jobSchedule: operations.JobSchedule; |
| 28 | + task: operations.Task; |
| 29 | + computeNode: operations.ComputeNodeOperations; |
| 30 | + computeNodeExtension: operations.ComputeNodeExtension; |
| 31 | + computeNodeExtensions: operations.ComputeNodeExtensions; |
| 32 | + |
| 33 | + /** |
| 34 | + * Initializes a new instance of the BatchService class. |
| 35 | + * @param credentials Credentials needed for the client to connect to Azure. Credentials |
| 36 | + * implementing the TokenCredential interface from the @azure/identity package are recommended. For |
| 37 | + * more information about these credentials, see |
| 38 | + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the |
| 39 | + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and |
| 40 | + * @azure/ms-rest-browserauth are also supported. |
| 41 | + * @param batchUrl The base URL for all Azure Batch service requests. |
| 42 | + * @param [options] The parameter options |
| 43 | + */ |
| 44 | + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, batchUrl: string, options?: msRest.AzureServiceClientOptions) { |
| 45 | + super(credentials, batchUrl, options); |
| 46 | + this.application = new operations.Application(this); |
| 47 | + this.pool = new operations.Pool(this); |
| 48 | + this.account = new operations.Account(this); |
| 49 | + this.job = new operations.Job(this); |
| 50 | + this.certificate = new operations.CertificateOperations(this); |
| 51 | + this.file = new operations.File(this); |
| 52 | + this.jobSchedule = new operations.JobSchedule(this); |
| 53 | + this.task = new operations.Task(this); |
| 54 | + this.computeNode = new operations.ComputeNodeOperations(this); |
| 55 | + this.computeNodeExtension = new operations.ComputeNodeExtension(this); |
| 56 | + this.computeNodeExtensions = new operations.ComputeNodeExtensions(this); |
| 57 | + } |
| 58 | +} |
| 59 | + |
| 60 | +// Operation Specifications |
| 61 | + |
| 62 | +export { |
| 63 | + BatchService, |
| 64 | + BatchServiceContext, |
| 65 | + Models as BatchServiceModels, |
| 66 | + Mappers as BatchServiceMappers |
| 67 | +}; |
| 68 | +export * from "./operations"; |
0 commit comments