From b7126123b47d050c3df3b49b9aeec95bc31b8983 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sat, 24 Nov 2018 10:35:15 -0800 Subject: [PATCH] Generated from b3f4961eaf9134e18bb570f2e3d659eaa2fbe0ea (#564) typo: batchai/resource-manager/Microsoft.BatchAI/BatchAI - abouth -> about - everytime -> every time - choosen -> chosen - succesfully -> successfully - downloand -> download - parmeter -> parameter - respnose -> response - instumentation -> instrumentation - concatinate -> concatenate - unmouted -> unmounted - mouted -> mounted --- packages/@azure/arm-batchai/LICENSE.txt | 42 ++--- packages/@azure/arm-batchai/README.md | 173 ++++++++---------- .../lib/batchAIManagementClient.ts | 2 +- .../lib/batchAIManagementClientContext.ts | 4 +- .../@azure/arm-batchai/lib/models/index.ts | 18 +- .../@azure/arm-batchai/lib/models/mappers.ts | 4 +- .../arm-batchai/lib/models/parameters.ts | 2 +- .../arm-batchai/lib/operations/clusters.ts | 4 +- .../arm-batchai/lib/operations/experiments.ts | 4 +- .../arm-batchai/lib/operations/fileServers.ts | 4 +- .../@azure/arm-batchai/lib/operations/jobs.ts | 4 +- .../arm-batchai/lib/operations/operations.ts | 2 +- .../arm-batchai/lib/operations/usages.ts | 2 +- .../arm-batchai/lib/operations/workspaces.ts | 4 +- packages/@azure/arm-batchai/package.json | 4 +- packages/@azure/arm-batchai/rollup.config.js | 6 +- packages/@azure/arm-batchai/tsconfig.json | 2 +- 17 files changed, 131 insertions(+), 150 deletions(-) diff --git a/packages/@azure/arm-batchai/LICENSE.txt b/packages/@azure/arm-batchai/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-batchai/LICENSE.txt +++ b/packages/@azure/arm-batchai/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-batchai/README.md b/packages/@azure/arm-batchai/README.md index 7618a377a4e3..51d7e08df561 100644 --- a/packages/@azure/arm-batchai/README.md +++ b/packages/@azure/arm-batchai/README.md @@ -1,96 +1,77 @@ -## Azure BatchAIManagementClient SDK for JavaScript - -This package contains an isomorphic SDK for BatchAIManagementClient. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -``` -npm install @azure/arm-batchai -``` - -### How to use - -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```ts -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"; -import { BatchAIManagementClient, BatchAIManagementModels, BatchAIManagementMappers } from "@azure/arm-batchai"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new BatchAIManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-batchai sample - - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure BatchAIManagementClient SDK for JavaScript +This package contains an isomorphic SDK for BatchAIManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-batchai +``` + + +## How to use + +### nodejs - Authentication, client creation and list operations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { BatchAIManagementClient, BatchAIManagementModels, BatchAIManagementMappers } from "@azure/arm-batchai"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new BatchAIManagementClient(creds, subscriptionId); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list operations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-batchai sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-batchai/lib/batchAIManagementClient.ts b/packages/@azure/arm-batchai/lib/batchAIManagementClient.ts index c9af5d391f4d..a936fa39f0c5 100644 --- a/packages/@azure/arm-batchai/lib/batchAIManagementClient.ts +++ b/packages/@azure/arm-batchai/lib/batchAIManagementClient.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; diff --git a/packages/@azure/arm-batchai/lib/batchAIManagementClientContext.ts b/packages/@azure/arm-batchai/lib/batchAIManagementClientContext.ts index ceeed0225f70..b8f548605611 100644 --- a/packages/@azure/arm-batchai/lib/batchAIManagementClientContext.ts +++ b/packages/@azure/arm-batchai/lib/batchAIManagementClientContext.ts @@ -9,8 +9,8 @@ */ import * as Models from "./models"; -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-batchai"; const packageVersion = "0.1.0"; diff --git a/packages/@azure/arm-batchai/lib/models/index.ts b/packages/@azure/arm-batchai/lib/models/index.ts index 6fdeac200f9e..42254179f1d1 100644 --- a/packages/@azure/arm-batchai/lib/models/index.ts +++ b/packages/@azure/arm-batchai/lib/models/index.ts @@ -8,8 +8,8 @@ * regenerated. */ -import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; export { BaseResource, CloudError }; @@ -294,7 +294,7 @@ export interface FileServer extends ProxyResource { export interface KeyVaultSecretReference { /** * @member {ResourceId} sourceVault Key Vault resource identifier. Fully - * qualified resource indentifier of the Key Vault. + * qualified resource identifier of the Key Vault. */ sourceVault: ResourceId; /** @@ -684,7 +684,7 @@ export interface FileServerReference { /** * @interface * An interface representing UnmanagedFileSystemReference. - * Unmananged file system mounting configuration. + * Unmanaged file system mounting configuration. * */ export interface UnmanagedFileSystemReference { @@ -1483,7 +1483,7 @@ export interface InputDirectory { export interface OutputDirectory { /** * @member {string} id ID. The ID of the output directory. The job can use - * AZ_BATCHAI_OUTPUT_ environment variale to find the directory path, + * AZ_BATCHAI_OUTPUT_ environment variable to find the directory path, * where is the value of id attribute. */ id: string; @@ -1540,7 +1540,7 @@ export interface JobCreateParameters { /** * @member {MountVolumes} [mountVolumes] Mount volumes. Information on mount * volumes to be used by the job. These volumes will be mounted before the - * job execution and will be unmouted after the job completion. The volumes + * job execution and will be unmounted after the job completion. The volumes * will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT * environment variable. */ @@ -1719,7 +1719,7 @@ export interface Job extends ProxyResource { /** * @member {MountVolumes} [mountVolumes] Mount volumes. Collection of mount * volumes available to the job during execution. These volumes are mounted - * before the job execution and unmouted after the job completion. The + * before the job execution and unmounted after the job completion. The * volumes are mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT * environment variable. */ @@ -1870,8 +1870,8 @@ export interface Job extends ProxyResource { * files or set up container specified on the job - it does not necessarily * mean that the job command line has started executing. terminating - The * job is terminated by the user, the terminate operation is in progress. - * succeeded - The job has completed running succesfully and exited with exit - * code 0. failed - The job has finished unsuccessfully (failed with a + * succeeded - The job has completed running successfully and exited with + * exit code 0. failed - The job has finished unsuccessfully (failed with a * non-zero exit code) and has exhausted its retry limit. A job is also * marked as failed if an error occurred launching the job. Possible values * include: 'queued', 'running', 'terminating', 'succeeded', 'failed' diff --git a/packages/@azure/arm-batchai/lib/models/mappers.ts b/packages/@azure/arm-batchai/lib/models/mappers.ts index 9dd4f2d35bba..ecb9918023ab 100644 --- a/packages/@azure/arm-batchai/lib/models/mappers.ts +++ b/packages/@azure/arm-batchai/lib/models/mappers.ts @@ -8,8 +8,8 @@ * regenerated. */ -import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; diff --git a/packages/@azure/arm-batchai/lib/models/parameters.ts b/packages/@azure/arm-batchai/lib/models/parameters.ts index 872fcdb9d3ab..8ef1e8f4902b 100644 --- a/packages/@azure/arm-batchai/lib/models/parameters.ts +++ b/packages/@azure/arm-batchai/lib/models/parameters.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", diff --git a/packages/@azure/arm-batchai/lib/operations/clusters.ts b/packages/@azure/arm-batchai/lib/operations/clusters.ts index 30ab81727a55..a71d5833b1b1 100644 --- a/packages/@azure/arm-batchai/lib/operations/clusters.ts +++ b/packages/@azure/arm-batchai/lib/operations/clusters.ts @@ -8,8 +8,8 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/clustersMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/lib/operations/experiments.ts b/packages/@azure/arm-batchai/lib/operations/experiments.ts index 1a62251376ce..e809e1857f63 100644 --- a/packages/@azure/arm-batchai/lib/operations/experiments.ts +++ b/packages/@azure/arm-batchai/lib/operations/experiments.ts @@ -8,8 +8,8 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/experimentsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/lib/operations/fileServers.ts b/packages/@azure/arm-batchai/lib/operations/fileServers.ts index caf13a2c4a7a..0dd64fa33feb 100644 --- a/packages/@azure/arm-batchai/lib/operations/fileServers.ts +++ b/packages/@azure/arm-batchai/lib/operations/fileServers.ts @@ -8,8 +8,8 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/fileServersMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/lib/operations/jobs.ts b/packages/@azure/arm-batchai/lib/operations/jobs.ts index 3f358def5300..b831242c692e 100644 --- a/packages/@azure/arm-batchai/lib/operations/jobs.ts +++ b/packages/@azure/arm-batchai/lib/operations/jobs.ts @@ -8,8 +8,8 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/jobsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/lib/operations/operations.ts b/packages/@azure/arm-batchai/lib/operations/operations.ts index 259e110d0854..4fac100222ae 100644 --- a/packages/@azure/arm-batchai/lib/operations/operations.ts +++ b/packages/@azure/arm-batchai/lib/operations/operations.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/operationsMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/lib/operations/usages.ts b/packages/@azure/arm-batchai/lib/operations/usages.ts index 0918ec77d9b0..5552bbf31248 100644 --- a/packages/@azure/arm-batchai/lib/operations/usages.ts +++ b/packages/@azure/arm-batchai/lib/operations/usages.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/usagesMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/lib/operations/workspaces.ts b/packages/@azure/arm-batchai/lib/operations/workspaces.ts index d18df61d0c82..b9cacc930073 100644 --- a/packages/@azure/arm-batchai/lib/operations/workspaces.ts +++ b/packages/@azure/arm-batchai/lib/operations/workspaces.ts @@ -8,8 +8,8 @@ * regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/workspacesMappers"; import * as Parameters from "../models/parameters"; diff --git a/packages/@azure/arm-batchai/package.json b/packages/@azure/arm-batchai/package.json index ce91c35a7538..2485c60cab0e 100644 --- a/packages/@azure/arm-batchai/package.json +++ b/packages/@azure/arm-batchai/package.json @@ -4,8 +4,8 @@ "description": "BatchAIManagementClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.460", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-batchai/rollup.config.js b/packages/@azure/arm-batchai/rollup.config.js index de1950f9a404..8230d22dac66 100644 --- a/packages/@azure/arm-batchai/rollup.config.js +++ b/packages/@azure/arm-batchai/rollup.config.js @@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve"; */ const config = { input: './esm/batchAIManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: ["ms-rest-js", "ms-rest-azure-js"], output: { file: "./dist/arm-batchai.js", format: "umd", name: "Azure.ArmBatchai", sourcemap: true, globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" + "ms-rest-js": "msRest", + "ms-rest-azure-js": "msRestAzure" }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/packages/@azure/arm-batchai/tsconfig.json b/packages/@azure/arm-batchai/tsconfig.json index 51ea90961ce5..f32d1664f320 100644 --- a/packages/@azure/arm-batchai/tsconfig.json +++ b/packages/@azure/arm-batchai/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./lib/**/*.ts"], + "include": ["./lib/**/*"], "exclude": ["node_modules"] }