From d8d1da204c48a0555b5acc60924e9e402463bd7d Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 30 Jul 2020 02:03:56 +0000 Subject: [PATCH] Generated from f263dbd8fd5ebd5a65a3a63fd0e34587edd0f518 added fix for lintdiff failure --- .../arm-storageimportexport/LICENSE.txt | 2 +- .../arm-storageimportexport/README.md | 14 +- .../arm-storageimportexport/package.json | 22 +- .../arm-storageimportexport/rollup.config.js | 22 +- .../src/models/bitLockerKeysMappers.ts | 11 +- .../src/models/index.ts | 433 ++++++------------ .../src/models/jobsMappers.ts | 25 +- .../src/models/locationsMappers.ts | 13 +- .../src/models/mappers.ts | 6 +- .../src/models/operationsMappers.ts | 13 +- ...rageImportExportManagementClientContext.ts | 2 +- .../arm-storageimportexport/tsconfig.json | 2 +- 12 files changed, 214 insertions(+), 351 deletions(-) diff --git a/sdk/storageimportexport/arm-storageimportexport/LICENSE.txt b/sdk/storageimportexport/arm-storageimportexport/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/storageimportexport/arm-storageimportexport/LICENSE.txt +++ b/sdk/storageimportexport/arm-storageimportexport/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2020 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/storageimportexport/arm-storageimportexport/README.md b/sdk/storageimportexport/arm-storageimportexport/README.md index cb45c729d669..c8176e71f326 100644 --- a/sdk/storageimportexport/arm-storageimportexport/README.md +++ b/sdk/storageimportexport/arm-storageimportexport/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for StorageImportExportManagementClient. ### How to Install -``` +```bash npm install @azure/arm-storageimportexport ``` @@ -19,13 +19,14 @@ npm install @azure/arm-storageimportexport ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### 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"; @@ -47,7 +48,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorageimportexport%2Farm-storageimportexport%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storageimportexport/arm-storageimportexport/README.png) diff --git a/sdk/storageimportexport/arm-storageimportexport/package.json b/sdk/storageimportexport/arm-storageimportexport/package.json index 9fb220f65205..27c7616daa8b 100644 --- a/sdk/storageimportexport/arm-storageimportexport/package.json +++ b/sdk/storageimportexport/arm-storageimportexport/package.json @@ -4,9 +4,9 @@ "description": "StorageImportExportManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/storageImportExportManagementClient.js", "types": "./esm/storageImportExportManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/storageimportexport/arm-storageimportexport", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storageimportexport/arm-storageimportexport", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/storageimportexport/arm-storageimportexport/rollup.config.js b/sdk/storageimportexport/arm-storageimportexport/rollup.config.js index 1c54cf6388e1..c51fe560c007 100644 --- a/sdk/storageimportexport/arm-storageimportexport/rollup.config.js +++ b/sdk/storageimportexport/arm-storageimportexport/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/storageImportExportManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/storageImportExportManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-storageimportexport.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({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/storageimportexport/arm-storageimportexport/src/models/bitLockerKeysMappers.ts b/sdk/storageimportexport/arm-storageimportexport/src/models/bitLockerKeysMappers.ts index 90b1f4ca2007..8f2b9fa67c80 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/models/bitLockerKeysMappers.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/models/bitLockerKeysMappers.ts @@ -1,17 +1,14 @@ /* * 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. */ export { - GetBitLockerKeysResponse, DriveBitLockerKey, ErrorResponse, - ErrorResponseErrorDetailsItem + ErrorResponseErrorDetailsItem, + GetBitLockerKeysResponse } from "../models/mappers"; - diff --git a/sdk/storageimportexport/arm-storageimportexport/src/models/index.ts b/sdk/storageimportexport/arm-storageimportexport/src/models/index.ts index 70a9a4fbdb5f..c36afccdce35 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/models/index.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/models/index.ts @@ -1,11 +1,9 @@ /* * 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. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,710 +11,576 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface * An interface representing ErrorResponseErrorDetailsItem. */ export interface ErrorResponseErrorDetailsItem { /** - * @member {string} [code] Provides information about the error code. + * Provides information about the error code. */ code?: string; /** - * @member {string} [target] Provides information about the error target. + * Provides information about the error target. */ target?: string; /** - * @member {string} [message] Provides information about the error message. + * Provides information about the error message. */ message?: string; } /** - * @interface - * An interface representing ErrorResponse. * Response when errors occurred - * */ export interface ErrorResponse { /** - * @member {string} [code] Provides information about the error code. + * Provides information about the error code. */ code?: string; /** - * @member {string} [message] Provides information about the error message. + * Provides information about the error message. */ message?: string; /** - * @member {string} [target] Provides information about the error target. + * Provides information about the error target. */ target?: string; /** - * @member {ErrorResponseErrorDetailsItem[]} [details] Describes the error - * details if present. + * Describes the error details if present. */ details?: ErrorResponseErrorDetailsItem[]; /** - * @member {any} [innererror] Inner error object if present. + * Inner error object if present. */ innererror?: any; } /** - * @interface - * An interface representing ReturnAddress. * Specifies the return address information for the job. - * */ export interface ReturnAddress { /** - * @member {string} recipientName The name of the recipient who will receive - * the hard drives when they are returned. + * The name of the recipient who will receive the hard drives when they are returned. */ recipientName: string; /** - * @member {string} streetAddress1 The first line of the street address to - * use when returning the drives. + * The first line of the street address to use when returning the drives. */ streetAddress1: string; /** - * @member {string} [streetAddress2] The second line of the street address to - * use when returning the drives. + * The second line of the street address to use when returning the drives. */ streetAddress2?: string; /** - * @member {string} city The city name to use when returning the drives. + * The city name to use when returning the drives. */ city: string; /** - * @member {string} [stateOrProvince] The state or province to use when - * returning the drives. + * The state or province to use when returning the drives. */ stateOrProvince?: string; /** - * @member {string} postalCode The postal code to use when returning the - * drives. + * The postal code to use when returning the drives. */ postalCode: string; /** - * @member {string} countryOrRegion The country or region to use when - * returning the drives. + * The country or region to use when returning the drives. */ countryOrRegion: string; /** - * @member {string} phone Phone number of the recipient of the returned - * drives. + * Phone number of the recipient of the returned drives. */ phone: string; /** - * @member {string} email Email address of the recipient of the returned - * drives. + * Email address of the recipient of the returned drives. */ email: string; } /** - * @interface - * An interface representing ReturnShipping. * Specifies the return carrier and customer's account with the carrier. - * */ export interface ReturnShipping { /** - * @member {string} carrierName The carrier's name. + * The carrier's name. */ carrierName: string; /** - * @member {string} carrierAccountNumber The customer's account number with - * the carrier. + * The customer's account number with the carrier. */ carrierAccountNumber: string; } /** - * @interface - * An interface representing ShippingInformation. - * Contains information about the Microsoft datacenter to which the drives - * should be shipped. - * + * Contains information about the Microsoft datacenter to which the drives should be shipped. */ export interface ShippingInformation { /** - * @member {string} recipientName The name of the recipient who will receive - * the hard drives when they are returned. + * The name of the recipient who will receive the hard drives when they are returned. */ recipientName: string; /** - * @member {string} streetAddress1 The first line of the street address to - * use when returning the drives. + * The first line of the street address to use when returning the drives. */ streetAddress1: string; /** - * @member {string} [streetAddress2] The second line of the street address to - * use when returning the drives. + * The second line of the street address to use when returning the drives. */ streetAddress2?: string; /** - * @member {string} city The city name to use when returning the drives. + * The city name to use when returning the drives. */ city: string; /** - * @member {string} stateOrProvince The state or province to use when - * returning the drives. + * The state or province to use when returning the drives. */ stateOrProvince: string; /** - * @member {string} postalCode The postal code to use when returning the - * drives. + * The postal code to use when returning the drives. */ postalCode: string; /** - * @member {string} countryOrRegion The country or region to use when - * returning the drives. + * The country or region to use when returning the drives. */ countryOrRegion: string; /** - * @member {string} [phone] Phone number of the recipient of the returned - * drives. + * Phone number of the recipient of the returned drives. */ phone?: string; } /** - * @interface - * An interface representing PackageInfomation. - * Contains information about the package being shipped by the customer to the - * Microsoft data center. - * + * Contains information about the package being shipped by the customer to the Microsoft data + * center. */ export interface PackageInfomation { /** - * @member {string} carrierName The name of the carrier that is used to ship - * the import or export drives. + * The name of the carrier that is used to ship the import or export drives. */ carrierName: string; /** - * @member {string} trackingNumber The tracking number of the package. + * The tracking number of the package. */ trackingNumber: string; /** - * @member {number} driveCount The number of drives included in the package. + * The number of drives included in the package. */ driveCount: number; /** - * @member {string} shipDate The date when the package is shipped. + * The date when the package is shipped. */ shipDate: string; } /** - * @interface - * An interface representing DriveStatus. * Provides information about the drive's status - * */ export interface DriveStatus { /** - * @member {string} [driveId] The drive's hardware serial number, without - * spaces. + * The drive's hardware serial number, without spaces. */ driveId?: string; /** - * @member {string} [bitLockerKey] The BitLocker key used to encrypt the - * drive. + * The BitLocker key used to encrypt the drive. */ bitLockerKey?: string; /** - * @member {string} [manifestFile] The relative path of the manifest file on - * the drive. + * The relative path of the manifest file on the drive. */ manifestFile?: string; /** - * @member {string} [manifestHash] The Base16-encoded MD5 hash of the - * manifest file on the drive. + * The Base16-encoded MD5 hash of the manifest file on the drive. */ manifestHash?: string; /** - * @member {string} [driveHeaderHash] The drive header hash value. + * The drive header hash value. */ driveHeaderHash?: string; /** - * @member {DriveState} [state] The drive's current state. Possible values - * include: 'Specified', 'Received', 'NeverReceived', 'Transferring', - * 'Completed', 'CompletedMoreInfo', 'ShippedBack' + * The drive's current state. Possible values include: 'Specified', 'Received', 'NeverReceived', + * 'Transferring', 'Completed', 'CompletedMoreInfo', 'ShippedBack' */ state?: DriveState; /** - * @member {string} [copyStatus] Detailed status about the data transfer - * process. This field is not returned in the response until the drive is in - * the Transferring state. + * Detailed status about the data transfer process. This field is not returned in the response + * until the drive is in the Transferring state. */ copyStatus?: string; /** - * @member {number} [percentComplete] Percentage completed for the drive. + * Percentage completed for the drive. */ percentComplete?: number; /** - * @member {string} [verboseLogUri] A URI that points to the blob containing - * the verbose log for the data transfer operation. + * A URI that points to the blob containing the verbose log for the data transfer operation. */ verboseLogUri?: string; /** - * @member {string} [errorLogUri] A URI that points to the blob containing - * the error log for the data transfer operation. + * A URI that points to the blob containing the error log for the data transfer operation. */ errorLogUri?: string; /** - * @member {string} [manifestUri] A URI that points to the blob containing - * the drive manifest file. + * A URI that points to the blob containing the drive manifest file. */ manifestUri?: string; /** - * @member {number} [bytesSucceeded] Bytes successfully transferred for the - * drive. + * Bytes successfully transferred for the drive. */ bytesSucceeded?: number; } /** - * @interface - * An interface representing ExportModel. - * A property containing information about the blobs to be exported for an - * export job. This property is required for export jobs, but must not be - * specified for import jobs. - * + * A property containing information about the blobs to be exported for an export job. This + * property is required for export jobs, but must not be specified for import jobs. */ export interface ExportModel { /** - * @member {string[]} [blobPath] A collection of blob-path strings. + * A collection of blob-path strings. */ blobPath?: string[]; /** - * @member {string[]} [blobPathPrefix] A collection of blob-prefix strings. + * A collection of blob-prefix strings. */ blobPathPrefix?: string[]; /** - * @member {string} [blobListblobPath] The relative URI to the block blob - * that contains the list of blob paths or blob path prefixes as defined - * above, beginning with the container name. If the blob is in root - * container, the URI must begin with $root. + * The relative URI to the block blob that contains the list of blob paths or blob path prefixes + * as defined above, beginning with the container name. If the blob is in root container, the URI + * must begin with $root. */ blobListblobPath?: string; } /** - * @interface - * An interface representing JobDetails. * Specifies the job properties - * */ export interface JobDetails { /** - * @member {string} [storageAccountId] The resource identifier of the storage - * account where data will be imported to or exported from. + * The resource identifier of the storage account where data will be imported to or exported + * from. */ storageAccountId?: string; /** - * @member {string} [jobType] The type of job + * The type of job */ jobType?: string; /** - * @member {ReturnAddress} [returnAddress] Specifies the return address - * information for the job. + * Specifies the return address information for the job. */ returnAddress?: ReturnAddress; /** - * @member {ReturnShipping} [returnShipping] Specifies the return carrier and - * customer's account with the carrier. + * Specifies the return carrier and customer's account with the carrier. */ returnShipping?: ReturnShipping; /** - * @member {ShippingInformation} [shippingInformation] Contains information - * about the Microsoft datacenter to which the drives should be shipped. + * Contains information about the Microsoft datacenter to which the drives should be shipped. */ shippingInformation?: ShippingInformation; /** - * @member {PackageInfomation} [deliveryPackage] Contains information about - * the package being shipped by the customer to the Microsoft data center. + * Contains information about the package being shipped by the customer to the Microsoft data + * center. */ deliveryPackage?: PackageInfomation; /** - * @member {PackageInfomation} [returnPackage] Contains information about the - * package being shipped from the Microsoft data center to the customer to - * return the drives. The format is the same as the deliveryPackage property - * above. This property is not included if the drives have not yet been - * returned. + * Contains information about the package being shipped from the Microsoft data center to the + * customer to return the drives. The format is the same as the deliveryPackage property above. + * This property is not included if the drives have not yet been returned. */ returnPackage?: PackageInfomation; /** - * @member {string} [diagnosticsPath] The virtual blob directory to which the - * copy logs and backups of drive manifest files (if enabled) will be stored. + * The virtual blob directory to which the copy logs and backups of drive manifest files (if + * enabled) will be stored. */ diagnosticsPath?: string; /** - * @member {string} [logLevel] Default value is Error. Indicates whether - * error logging or verbose logging will be enabled. + * Default value is Error. Indicates whether error logging or verbose logging will be enabled. */ logLevel?: string; /** - * @member {boolean} [backupDriveManifest] Default value is false. Indicates - * whether the manifest files on the drives should be copied to block blobs. + * Default value is false. Indicates whether the manifest files on the drives should be copied to + * block blobs. */ backupDriveManifest?: boolean; /** - * @member {string} [state] Current state of the job. + * Current state of the job. */ state?: string; /** - * @member {boolean} [cancelRequested] Indicates whether a request has been - * submitted to cancel the job. + * Indicates whether a request has been submitted to cancel the job. */ cancelRequested?: boolean; /** - * @member {number} [percentComplete] Overall percentage completed for the - * job. + * Overall percentage completed for the job. */ percentComplete?: number; /** - * @member {string} [incompleteBlobListUri] A blob path that points to a - * block blob containing a list of blob names that were not exported due to - * insufficient drive space. If all blobs were exported successfully, then - * this element is not included in the response. + * A blob path that points to a block blob containing a list of blob names that were not exported + * due to insufficient drive space. If all blobs were exported successfully, then this element is + * not included in the response. */ incompleteBlobListUri?: string; /** - * @member {DriveStatus[]} [driveList] List of up to ten drives that comprise - * the job. The drive list is a required element for an import job; it is not - * specified for export jobs. + * List of up to ten drives that comprise the job. The drive list is a required element for an + * import job; it is not specified for export jobs. */ driveList?: DriveStatus[]; /** - * @member {ExportModel} [exportProperty] A property containing information - * about the blobs to be exported for an export job. This property is - * included for export jobs only. + * A property containing information about the blobs to be exported for an export job. This + * property is included for export jobs only. */ exportProperty?: ExportModel; /** - * @member {string} [provisioningState] Specifies the provisioning state of - * the job. + * Specifies the provisioning state of the job. */ provisioningState?: string; } /** - * @interface - * An interface representing PutJobParameters. * Put Job parameters - * */ export interface PutJobParameters { /** - * @member {string} [location] Specifies the supported Azure location where - * the job should be created + * Specifies the supported Azure location where the job should be created */ location?: string; /** - * @member {any} [tags] Specifies the tags that will be assigned to the job. + * Specifies the tags that will be assigned to the job. */ tags?: any; /** - * @member {JobDetails} [properties] Specifies the job properties + * Specifies the job properties */ properties?: JobDetails; } /** - * @interface - * An interface representing UpdateJobParameters. * Update Job parameters - * */ export interface UpdateJobParameters { /** - * @member {any} [tags] Specifies the tags that will be assigned to the job + * Specifies the tags that will be assigned to the job */ tags?: any; /** - * @member {boolean} [cancelRequested] If specified, the value must be true. - * The service will attempt to cancel the job. + * If specified, the value must be true. The service will attempt to cancel the job. */ cancelRequested?: boolean; /** - * @member {string} [state] If specified, the value must be Shipping, which - * tells the Import/Export service that the package for the job has been - * shipped. The ReturnAddress and DeliveryPackage properties must have been - * set either in this request or in a previous request, otherwise the request - * will fail. + * If specified, the value must be Shipping, which tells the Import/Export service that the + * package for the job has been shipped. The ReturnAddress and DeliveryPackage properties must + * have been set either in this request or in a previous request, otherwise the request will + * fail. */ state?: string; /** - * @member {ReturnAddress} [returnAddress] Specifies the return address - * information for the job. + * Specifies the return address information for the job. */ returnAddress?: ReturnAddress; /** - * @member {ReturnShipping} [returnShipping] Specifies the return carrier and - * customer's account with the carrier. + * Specifies the return carrier and customer's account with the carrier. */ returnShipping?: ReturnShipping; /** - * @member {PackageInfomation} [deliveryPackage] Contains information about - * the package being shipped by the customer to the Microsoft data center. + * Contains information about the package being shipped by the customer to the Microsoft data + * center. */ deliveryPackage?: PackageInfomation; /** - * @member {string} [logLevel] Indicates whether error logging or verbose - * logging is enabled. + * Indicates whether error logging or verbose logging is enabled. */ logLevel?: string; /** - * @member {boolean} [backupDriveManifest] Indicates whether the manifest - * files on the drives should be copied to block blobs. + * Indicates whether the manifest files on the drives should be copied to block blobs. */ backupDriveManifest?: boolean; /** - * @member {DriveStatus[]} [driveList] List of drives that comprise the job. + * List of drives that comprise the job. */ driveList?: DriveStatus[]; } /** - * @interface - * An interface representing JobResponse. * Contains the job information. - * - * @extends BaseResource */ export interface JobResponse extends BaseResource { /** - * @member {string} [id] Specifies the resource identifier of the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Specifies the resource identifier of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Specifies the name of the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Specifies the name of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Specifies the type of the job resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Specifies the type of the job resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Specifies the Azure location where the job is - * created. + * Specifies the Azure location where the job is created. */ location?: string; /** - * @member {any} [tags] Specifies the tags that are assigned to the job. + * Specifies the tags that are assigned to the job. */ tags?: any; /** - * @member {JobDetails} [properties] Specifies the job properties + * Specifies the job properties */ properties?: JobDetails; } /** - * @interface - * An interface representing Operation. * Describes a supported operation by the Storage Import/Export job API. - * */ export interface Operation { /** - * @member {string} name Name of the operation. + * Name of the operation. */ name: string; /** - * @member {string} [provider] The resource provider name to which the - * operation belongs. + * The resource provider name to which the operation belongs. */ provider?: string; /** - * @member {string} [resource] The name of the resource to which the - * operation belongs. + * The name of the resource to which the operation belongs. */ resource?: string; /** - * @member {string} [operation] The display name of the operation. + * The display name of the operation. */ operation?: string; /** - * @member {string} [description] Short description of the operation. + * Short description of the operation. */ description?: string; } /** - * @interface - * An interface representing Location. * Provides information about an Azure data center location. - * */ export interface Location { /** - * @member {string} [id] Specifies the resource identifier of the location. + * Specifies the resource identifier of the location. */ id?: string; /** - * @member {string} [name] Specifies the name of the location. Use List - * Locations to get all supported locations. + * Specifies the name of the location. Use List Locations to get all supported locations. */ name?: string; /** - * @member {string} [type] Specifies the type of the location. + * Specifies the type of the location. */ type?: string; /** - * @member {string} [recipientName] The recipient name to use when shipping - * the drives to the Azure data center. + * The recipient name to use when shipping the drives to the Azure data center. */ recipientName?: string; /** - * @member {string} [streetAddress1] The first line of the street address to - * use when shipping the drives to the Azure data center. + * The first line of the street address to use when shipping the drives to the Azure data center. */ streetAddress1?: string; /** - * @member {string} [streetAddress2] The second line of the street address to - * use when shipping the drives to the Azure data center. + * The second line of the street address to use when shipping the drives to the Azure data + * center. */ streetAddress2?: string; /** - * @member {string} [city] The city name to use when shipping the drives to - * the Azure data center. + * The city name to use when shipping the drives to the Azure data center. */ city?: string; /** - * @member {string} [stateOrProvince] The state or province to use when - * shipping the drives to the Azure data center. + * The state or province to use when shipping the drives to the Azure data center. */ stateOrProvince?: string; /** - * @member {string} [postalCode] The postal code to use when shipping the - * drives to the Azure data center. + * The postal code to use when shipping the drives to the Azure data center. */ postalCode?: string; /** - * @member {string} [countryOrRegion] The country or region to use when - * shipping the drives to the Azure data center. + * The country or region to use when shipping the drives to the Azure data center. */ countryOrRegion?: string; /** - * @member {string} [phone] The phone number for the Azure data center. + * The phone number for the Azure data center. */ phone?: string; /** - * @member {string[]} [supportedCarriers] A list of carriers that are - * supported at this location. + * A list of carriers that are supported at this location. */ supportedCarriers?: string[]; /** - * @member {string[]} [alternateLocations] A list of location IDs that should - * be used to ship shipping drives to for jobs created against the current - * location. If the current location is active, it will be part of the list. - * If it is temporarily closed due to maintenance, this list may contain - * other locations. + * A list of location IDs that should be used to ship shipping drives to for jobs created against + * the current location. If the current location is active, it will be part of the list. If it is + * temporarily closed due to maintenance, this list may contain other locations. */ alternateLocations?: string[]; } /** - * @interface - * An interface representing DriveBitLockerKey. * BitLocker recovery key or password to the specified drive - * */ export interface DriveBitLockerKey { /** - * @member {string} [bitLockerKey] BitLocker recovery key or password + * BitLocker recovery key or password */ bitLockerKey?: string; /** - * @member {string} [driveId] Drive ID + * Drive ID */ driveId?: string; } /** - * @interface - * An interface representing JobsListBySubscriptionOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] An integer value that specifies how many jobs at - * most should be returned. The value cannot exceed 100. + * An integer value that specifies how many jobs at most should be returned. The value cannot + * exceed 100. */ top?: number; /** - * @member {string} [filter] Can be used to restrict the results to certain - * conditions. + * Can be used to restrict the results to certain conditions. */ filter?: string; } /** - * @interface - * An interface representing JobsListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] An integer value that specifies how many jobs at - * most should be returned. The value cannot exceed 100. + * An integer value that specifies how many jobs at most should be returned. The value cannot + * exceed 100. */ top?: number; /** - * @member {string} [filter] Can be used to restrict the results to certain - * conditions. + * Can be used to restrict the results to certain conditions. */ filter?: string; } /** - * @interface - * An interface representing JobsCreateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsCreateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [clientTenantId] The tenant ID of the client making the - * request. + * The tenant ID of the client making the request. */ clientTenantId?: string; } /** - * @interface * An interface representing StorageImportExportManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface StorageImportExportManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the LocationsResponse. * Locations response - * * @extends Array */ export interface LocationsResponse extends Array { @@ -724,23 +588,19 @@ export interface LocationsResponse extends Array { /** * @interface - * An interface representing the ListJobsResponse. * List jobs response - * * @extends Array */ export interface ListJobsResponse extends Array { /** - * @member {string} [nextLink] link to next batch of jobs + * link to next batch of jobs */ nextLink?: string; } /** * @interface - * An interface representing the GetBitLockerKeysResponse. * GetBitLockerKeys response - * * @extends Array */ export interface GetBitLockerKeysResponse extends Array { @@ -748,9 +608,7 @@ export interface GetBitLockerKeysResponse extends Array { /** * @interface - * An interface representing the ListOperationsResponse. * List operations response - * * @extends Array */ export interface ListOperationsResponse extends Array { @@ -777,6 +635,7 @@ export type LocationsListResponse = LocationsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -796,6 +655,7 @@ export type LocationsGetResponse = Location & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -815,6 +675,7 @@ export type JobsListBySubscriptionResponse = ListJobsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -834,6 +695,7 @@ export type JobsListByResourceGroupResponse = ListJobsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -853,6 +715,7 @@ export type JobsGetResponse = JobResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -872,6 +735,7 @@ export type JobsUpdateResponse = JobResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -891,6 +755,7 @@ export type JobsCreateResponse = JobResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -910,6 +775,7 @@ export type JobsListBySubscriptionNextResponse = ListJobsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -929,6 +795,7 @@ export type JobsListByResourceGroupNextResponse = ListJobsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -948,6 +815,7 @@ export type BitLockerKeysListResponse = GetBitLockerKeysResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -967,6 +835,7 @@ export type OperationsListResponse = ListOperationsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/storageimportexport/arm-storageimportexport/src/models/jobsMappers.ts b/sdk/storageimportexport/arm-storageimportexport/src/models/jobsMappers.ts index 3eee6ad014f3..517ce37dd6de 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/models/jobsMappers.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/models/jobsMappers.ts @@ -1,27 +1,24 @@ /* * 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. */ export { - ListJobsResponse, - JobResponse, BaseResource, + DriveStatus, + ErrorResponse, + ErrorResponseErrorDetailsItem, + ExportModel, JobDetails, + JobResponse, + ListJobsResponse, + PackageInfomation, + PutJobParameters, ReturnAddress, ReturnShipping, ShippingInformation, - PackageInfomation, - DriveStatus, - ExportModel, - ErrorResponse, - ErrorResponseErrorDetailsItem, - UpdateJobParameters, - PutJobParameters + UpdateJobParameters } from "../models/mappers"; - diff --git a/sdk/storageimportexport/arm-storageimportexport/src/models/locationsMappers.ts b/sdk/storageimportexport/arm-storageimportexport/src/models/locationsMappers.ts index c99c5d6fc56d..6402a5b1ccc2 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/models/locationsMappers.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/models/locationsMappers.ts @@ -1,17 +1,14 @@ /* * 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. */ export { - LocationsResponse, - Location, ErrorResponse, - ErrorResponseErrorDetailsItem + ErrorResponseErrorDetailsItem, + Location, + LocationsResponse } from "../models/mappers"; - diff --git a/sdk/storageimportexport/arm-storageimportexport/src/models/mappers.ts b/sdk/storageimportexport/arm-storageimportexport/src/models/mappers.ts index 3aef69f61164..31b861ebb667 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/models/mappers.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * 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. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/storageimportexport/arm-storageimportexport/src/models/operationsMappers.ts b/sdk/storageimportexport/arm-storageimportexport/src/models/operationsMappers.ts index d56e37ad79d3..56c5899569ba 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/models/operationsMappers.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * 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. */ export { - ListOperationsResponse, - Operation, ErrorResponse, - ErrorResponseErrorDetailsItem + ErrorResponseErrorDetailsItem, + ListOperationsResponse, + Operation } from "../models/mappers"; - diff --git a/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts b/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts index 08a5786a8d6a..4d3fa0080d90 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-storageimportexport"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class StorageImportExportManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/storageimportexport/arm-storageimportexport/tsconfig.json b/sdk/storageimportexport/arm-storageimportexport/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/storageimportexport/arm-storageimportexport/tsconfig.json +++ b/sdk/storageimportexport/arm-storageimportexport/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true