diff --git a/sdk/databox/arm-databox/LICENSE.txt b/sdk/databox/arm-databox/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/databox/arm-databox/LICENSE.txt +++ b/sdk/databox/arm-databox/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/databox/arm-databox/README.md b/sdk/databox/arm-databox/README.md index 4db5ef19df18..4a3b8f3d1504 100644 --- a/sdk/databox/arm-databox/README.md +++ b/sdk/databox/arm-databox/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for DataBoxManagementClient. ### How to Install -``` +```bash npm install @azure/arm-databox ``` @@ -19,13 +19,14 @@ npm install @azure/arm-databox ##### 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%2Fdatabox%2Farm-databox%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/databox/arm-databox/README.png) diff --git a/sdk/databox/arm-databox/package.json b/sdk/databox/arm-databox/package.json index 88b8307fbd94..1f5bfa6f7ea2 100644 --- a/sdk/databox/arm-databox/package.json +++ b/sdk/databox/arm-databox/package.json @@ -4,9 +4,9 @@ "description": "DataBoxManagementClient Library with typescript type definitions for node.js and browser.", "version": "2.1.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/dataBoxManagementClient.js", "types": "./esm/dataBoxManagementClient.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/databox/arm-databox", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/databox/arm-databox", "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" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/databox/arm-databox/rollup.config.js b/sdk/databox/arm-databox/rollup.config.js index a5330f2b0f58..b5c16bd4ad21 100644 --- a/sdk/databox/arm-databox/rollup.config.js +++ b/sdk/databox/arm-databox/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/dataBoxManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/dataBoxManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-databox.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/databox/arm-databox/src/dataBoxManagementClientContext.ts b/sdk/databox/arm-databox/src/dataBoxManagementClientContext.ts index 41793844b975..93efd03e1009 100644 --- a/sdk/databox/arm-databox/src/dataBoxManagementClientContext.ts +++ b/sdk/databox/arm-databox/src/dataBoxManagementClientContext.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-databox"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class DataBoxManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/databox/arm-databox/src/models/index.ts b/sdk/databox/arm-databox/src/models/index.ts index d44b8d2e5332..5c5961fa675e 100644 --- a/sdk/databox/arm-databox/src/models/index.ts +++ b/sdk/databox/arm-databox/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,441 +11,348 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ShareCredentialDetails. * Credential details of the shares in account. - * */ export interface ShareCredentialDetails { /** - * @member {string} [shareName] Name of the share. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the share. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly shareName?: string; /** - * @member {ShareDestinationFormatType} [shareType] Type of the share. - * Possible values include: 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', - * 'AzureFile' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the share. Possible values include: 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', + * 'AzureFile', 'ManagedDisk' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly shareType?: ShareDestinationFormatType; /** - * @member {string} [userName] User name for the share. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * User name for the share. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly userName?: string; /** - * @member {string} [password] Password for the share. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Password for the share. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly password?: string; /** - * @member {AccessProtocol[]} [supportedAccessProtocols] Access protocols - * supported on the device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Access protocols supported on the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly supportedAccessProtocols?: AccessProtocol[]; } /** - * @interface - * An interface representing AccountCredentialDetails. * Credential details of the account. - * */ export interface AccountCredentialDetails { /** - * @member {string} [accountName] Name of the account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountName?: string; /** - * @member {string} [accountConnectionString] Connection string of the - * account endpoint to use the account as a storage endpoint on the device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Connection string of the account endpoint to use the account as a storage endpoint on the + * device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountConnectionString?: string; /** - * @member {ShareCredentialDetails[]} [shareCredentialDetails] Per share - * level unencrypted access credentials. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Per share level unencrypted access credentials. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly shareCredentialDetails?: ShareCredentialDetails[]; } /** - * @interface - * An interface representing ShippingAddress. * Shipping address where customer wishes to receive the device. - * */ export interface ShippingAddress { /** - * @member {string} streetAddress1 Street Address line 1. + * Street Address line 1. */ streetAddress1: string; /** - * @member {string} [streetAddress2] Street Address line 2. + * Street Address line 2. */ streetAddress2?: string; /** - * @member {string} [streetAddress3] Street Address line 3. + * Street Address line 3. */ streetAddress3?: string; /** - * @member {string} [city] Name of the City. + * Name of the City. */ city?: string; /** - * @member {string} [stateOrProvince] Name of the State or Province. + * Name of the State or Province. */ stateOrProvince?: string; /** - * @member {string} country Name of the Country. + * Name of the Country. */ country: string; /** - * @member {string} postalCode Postal code. + * Postal code. */ postalCode: string; /** - * @member {string} [zipExtendedCode] Extended Zip Code. + * Extended Zip Code. */ zipExtendedCode?: string; /** - * @member {string} [companyName] Name of the company. + * Name of the company. */ companyName?: string; /** - * @member {AddressType} [addressType] Type of address. Possible values - * include: 'None', 'Residential', 'Commercial' + * Type of address. Possible values include: 'None', 'Residential', 'Commercial' */ addressType?: AddressType; } /** - * @interface - * An interface representing AddressValidationOutput. * Output of the address validation api. - * */ export interface AddressValidationOutput { /** - * @member {AddressValidationStatus} [validationStatus] The address - * validation status. Possible values include: 'Valid', 'Invalid', - * 'Ambiguous' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The address validation status. Possible values include: 'Valid', 'Invalid', 'Ambiguous' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly validationStatus?: AddressValidationStatus; /** - * @member {ShippingAddress[]} [alternateAddresses] List of alternate - * addresses. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of alternate addresses. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly alternateAddresses?: ShippingAddress[]; } /** - * @interface - * An interface representing ApplianceNetworkConfiguration. * The Network Adapter configuration of a DataBox. - * */ export interface ApplianceNetworkConfiguration { /** - * @member {string} [name] Name of the network. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the network. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [macAddress] Mac Address. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Mac Address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly macAddress?: string; } /** - * @interface - * An interface representing ArmBaseObject. * Base class for all objects under resource. - * */ export interface ArmBaseObject { /** - * @member {string} [name] Name of the object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [id] Id of the object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Id of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [type] Type of the object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing AvailableSkuRequest. * The filters for showing the available skus. - * */ export interface AvailableSkuRequest { /** - * @member {string} country ISO country code. Country for hardware shipment. - * For codes check: + * ISO country code. Country for hardware shipment. For codes check: * https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements */ country: string; /** - * @member {string} location Location for data transfer. For locations check: + * Location for data transfer. For locations check: * https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 */ location: string; /** - * @member {SkuName[]} [skuNames] Sku Names to filter for available skus + * Sku Names to filter for available skus */ skuNames?: SkuName[]; } /** - * @interface - * An interface representing Sku. * The Sku. - * */ export interface Sku { /** - * @member {SkuName} name The sku name. Possible values include: 'DataBox', - * 'DataBoxDisk', 'DataBoxHeavy' + * The sku name. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' */ name: SkuName; /** - * @member {string} [displayName] The display name of the sku. + * The display name of the sku. */ displayName?: string; /** - * @member {string} [family] The sku family. + * The sku family. */ family?: string; } /** - * @interface - * An interface representing DestinationToServiceLocationMap. * Map of destination location to service location - * */ export interface DestinationToServiceLocationMap { /** - * @member {string} [destinationLocation] Location of the destination. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location of the destination. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly destinationLocation?: string; /** - * @member {string} [serviceLocation] Location of the service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location of the service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceLocation?: string; } /** - * @interface - * An interface representing SkuCapacity. * Capacity of the sku. - * */ export interface SkuCapacity { /** - * @member {string} [usable] Usable capacity in TB. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Usable capacity in TB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly usable?: string; /** - * @member {string} [maximum] Maximum capacity in TB. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Maximum capacity in TB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maximum?: string; } /** - * @interface - * An interface representing SkuCost. * Describes metadata for retrieving price info. - * */ export interface SkuCost { /** - * @member {string} [meterId] Meter id of the Sku. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Meter id of the Sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterId?: string; /** - * @member {string} [meterType] The type of the meter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the meter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterType?: string; } /** - * @interface - * An interface representing SkuInformation. * Information of the sku. - * */ export interface SkuInformation { /** - * @member {Sku} [sku] The Sku. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sku?: Sku; /** - * @member {boolean} [enabled] The sku is enabled or not. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The sku is enabled or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly enabled?: boolean; /** - * @member {DestinationToServiceLocationMap[]} - * [destinationToServiceLocationMap] The map of destination location to - * service location. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The map of destination location to service location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly destinationToServiceLocationMap?: DestinationToServiceLocationMap[]; /** - * @member {SkuCapacity} [capacity] Capacity of the Sku. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Capacity of the Sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly capacity?: SkuCapacity; /** - * @member {SkuCost[]} [costs] Cost of the Sku. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Cost of the Sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly costs?: SkuCost[]; /** - * @member {string[]} [apiVersions] Api versions that support this Sku. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Api versions that support this Sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly apiVersions?: string[]; /** - * @member {SkuDisabledReason} [disabledReason] Reason why the Sku is - * disabled. Possible values include: 'None', 'Country', 'Region', 'Feature', - * 'OfferType' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reason why the Sku is disabled. Possible values include: 'None', 'Country', 'Region', + * 'Feature', 'OfferType', 'NoSubscriptionInfo' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly disabledReason?: SkuDisabledReason; /** - * @member {string} [disabledReasonMessage] Message for why the Sku is - * disabled. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Message for why the Sku is disabled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly disabledReasonMessage?: string; /** - * @member {string} [requiredFeature] Required feature to access the sku. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Required feature to access the sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly requiredFeature?: string; } /** - * @interface - * An interface representing CancellationReason. * Reason for cancellation. - * */ export interface CancellationReason { /** - * @member {string} reason Reason for cancellation. + * Reason for cancellation. */ reason: string; } /** - * @interface - * An interface representing NotificationPreference. * Notification preference for a job stage. - * */ export interface NotificationPreference { /** - * @member {NotificationStageName} stageName Name of the stage. Possible - * values include: 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', - * 'AtAzureDC', 'DataCopy' + * Name of the stage. Possible values include: 'DevicePrepared', 'Dispatched', 'Delivered', + * 'PickedUp', 'AtAzureDC', 'DataCopy' */ stageName: NotificationStageName; /** - * @member {boolean} sendNotification Notification is required or not. + * Notification is required or not. */ sendNotification: boolean; } /** - * @interface - * An interface representing ContactDetails. * Contact Details. - * */ export interface ContactDetails { /** - * @member {string} contactName Contact name of the person. + * Contact name of the person. */ contactName: string; /** - * @member {string} phone Phone number of the contact person. + * Phone number of the contact person. */ phone: string; /** - * @member {string} [phoneExtension] Phone extension number of the contact - * person. + * Phone extension number of the contact person. */ phoneExtension?: string; /** - * @member {string} [mobile] Mobile number of the contact person. + * Mobile number of the contact person. */ mobile?: string; /** - * @member {string[]} emailList List of Email-ids to be notified about job - * progress. + * List of Email-ids to be notified about job progress. */ emailList: string[]; /** - * @member {NotificationPreference[]} [notificationPreference] Notification - * preference for a job stage. + * Notification preference for a job stage. */ notificationPreference?: NotificationPreference[]; } @@ -458,143 +363,119 @@ export interface ContactDetails { export type CopyLogDetailsUnion = CopyLogDetails | DataBoxAccountCopyLogDetails | DataBoxDiskCopyLogDetails | DataBoxHeavyAccountCopyLogDetails; /** - * @interface - * An interface representing CopyLogDetails. * Details for log generated during copy. - * */ export interface CopyLogDetails { /** - * @member {string} copyLogDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ copyLogDetailsType: "CopyLogDetails"; } /** - * @interface - * An interface representing CopyProgress. * Copy progress. - * */ export interface CopyProgress { /** - * @member {string} [storageAccountName] Name of the storage account where - * the data needs to be uploaded. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the storage account where the data needs to be uploaded. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly storageAccountName?: string; /** - * @member {string} [accountId] Id of the account where the data needs to be - * uploaded. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Id of the account where the data needs to be uploaded. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountId?: string; /** - * @member {number} [bytesSentToCloud] Amount of data uploaded by the job as - * of now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Amount of data uploaded by the job as of now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bytesSentToCloud?: number; /** - * @member {number} [totalBytesToProcess] Total amount of data to be - * processed by the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Total amount of data to be processed by the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly totalBytesToProcess?: number; + /** + * Number of files processed by the job as of now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly filesProcessed?: number; + /** + * Total number of files to be processed by the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalFilesToProcess?: number; } /** - * @interface - * An interface representing DataBoxAccountCopyLogDetails. * Copy log details for a storage account of a DataBox job - * */ export interface DataBoxAccountCopyLogDetails { /** - * @member {string} copyLogDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ copyLogDetailsType: "DataBox"; /** - * @member {string} [accountName] Destination account name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Destination account name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountName?: string; /** - * @member {string} [copyLogLink] Link for copy logs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for copy logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyLogLink?: string; } /** - * @interface - * An interface representing DataBoxDiskCopyLogDetails. * Copy Log Details for a disk - * */ export interface DataBoxDiskCopyLogDetails { /** - * @member {string} copyLogDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ copyLogDetailsType: "DataBoxDisk"; /** - * @member {string} [diskSerialNumber] Disk Serial Number. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Disk Serial Number. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly diskSerialNumber?: string; /** - * @member {string} [errorLogLink] Link for copy error logs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for copy error logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorLogLink?: string; /** - * @member {string} [verboseLogLink] Link for copy verbose logs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for copy verbose logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly verboseLogLink?: string; } /** - * @interface - * An interface representing DataBoxDiskCopyProgress. * DataBox Disk Copy Progress - * */ export interface DataBoxDiskCopyProgress { /** - * @member {string} [serialNumber] The serial number of the disk - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The serial number of the disk + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serialNumber?: string; /** - * @member {number} [bytesCopied] Bytes copied during the copy of disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Bytes copied during the copy of disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bytesCopied?: number; /** - * @member {number} [percentComplete] Indicates the percentage completed for - * the copy of the disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Indicates the percentage completed for the copy of the disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly percentComplete?: number; /** - * @member {CopyStatus} [status] The Status of the copy. Possible values - * include: 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', - * 'Failed', 'NotReturned' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Status of the copy. Possible values include: 'NotStarted', 'InProgress', 'Completed', + * 'CompletedWithErrors', 'Failed', 'NotReturned' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: CopyStatus; } @@ -605,216 +486,168 @@ export interface DataBoxDiskCopyProgress { export type JobDetailsUnion = JobDetails | DataBoxDiskJobDetails | DataBoxHeavyJobDetails | DataBoxJobDetails; /** - * @interface - * An interface representing JobDetails. * Job details. - * */ export interface JobDetails { /** - * @member {string} jobDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobDetailsType: "JobDetails"; /** - * @member {number} [expectedDataSizeInTeraBytes] The expected size of the - * data, which needs to be transfered in this job, in tera bytes. + * The expected size of the data, which needs to be transferred in this job, in terabytes. */ expectedDataSizeInTeraBytes?: number; /** - * @member {JobStages[]} [jobStages] List of stages that run in the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of stages that run in the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobStages?: JobStages[]; /** - * @member {ContactDetails} contactDetails Contact details for notification - * and shipping. + * Contact details for notification and shipping. */ contactDetails: ContactDetails; /** - * @member {ShippingAddress} shippingAddress Shipping address of the - * customer. + * Shipping address of the customer. */ shippingAddress: ShippingAddress; /** - * @member {PackageShippingDetails} [deliveryPackage] Delivery package - * shipping details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Delivery package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deliveryPackage?: PackageShippingDetails; /** - * @member {PackageShippingDetails} [returnPackage] Return package shipping - * details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Return package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly returnPackage?: PackageShippingDetails; /** - * @member {DestinationAccountDetails[]} destinationAccountDetails * Destination account details. */ - destinationAccountDetails: DestinationAccountDetails[]; + destinationAccountDetails: DestinationAccountDetailsUnion[]; /** - * @member {JobErrorDetails[]} [errorDetails] Error details for failure. This - * is optional. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error details for failure. This is optional. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorDetails?: JobErrorDetails[]; /** - * @member {Preferences} [preferences] Preferences for the order. + * Preferences for the order. */ preferences?: Preferences; /** - * @member {CopyLogDetailsUnion[]} [copyLogDetails] List of copy log details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of copy log details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyLogDetails?: CopyLogDetailsUnion[]; /** - * @member {string} [reverseShipmentLabelSasKey] Shared access key to - * download the return shipment label - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the return shipment label + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly reverseShipmentLabelSasKey?: string; /** - * @member {string} [chainOfCustodySasKey] Shared access key to download the - * chain of custody logs - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the chain of custody logs + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly chainOfCustodySasKey?: string; } /** - * @interface - * An interface representing DataBoxDiskJobDetails. * DataBox Disk Job Details. - * */ export interface DataBoxDiskJobDetails { /** - * @member {string} jobDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobDetailsType: "DataBoxDisk"; /** - * @member {number} [expectedDataSizeInTeraBytes] The expected size of the - * data, which needs to be transfered in this job, in tera bytes. + * The expected size of the data, which needs to be transferred in this job, in terabytes. */ expectedDataSizeInTeraBytes?: number; /** - * @member {JobStages[]} [jobStages] List of stages that run in the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of stages that run in the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobStages?: JobStages[]; /** - * @member {ContactDetails} contactDetails Contact details for notification - * and shipping. + * Contact details for notification and shipping. */ contactDetails: ContactDetails; /** - * @member {ShippingAddress} shippingAddress Shipping address of the - * customer. + * Shipping address of the customer. */ shippingAddress: ShippingAddress; /** - * @member {PackageShippingDetails} [deliveryPackage] Delivery package - * shipping details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Delivery package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deliveryPackage?: PackageShippingDetails; /** - * @member {PackageShippingDetails} [returnPackage] Return package shipping - * details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Return package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly returnPackage?: PackageShippingDetails; /** - * @member {DestinationAccountDetails[]} destinationAccountDetails * Destination account details. */ - destinationAccountDetails: DestinationAccountDetails[]; + destinationAccountDetails: DestinationAccountDetailsUnion[]; /** - * @member {JobErrorDetails[]} [errorDetails] Error details for failure. This - * is optional. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error details for failure. This is optional. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorDetails?: JobErrorDetails[]; /** - * @member {Preferences} [preferences] Preferences for the order. + * Preferences for the order. */ preferences?: Preferences; /** - * @member {CopyLogDetailsUnion[]} [copyLogDetails] List of copy log details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of copy log details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyLogDetails?: CopyLogDetailsUnion[]; /** - * @member {string} [reverseShipmentLabelSasKey] Shared access key to - * download the return shipment label - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the return shipment label + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly reverseShipmentLabelSasKey?: string; /** - * @member {string} [chainOfCustodySasKey] Shared access key to download the - * chain of custody logs - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the chain of custody logs + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly chainOfCustodySasKey?: string; /** - * @member {{ [propertyName: string]: number }} [preferredDisks] User - * preference on what size disks are needed for the job. The map is from the - * disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is - * string but will be checked against an int. + * User preference on what size disks are needed for the job. The map is from the disk size in TB + * to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against + * an int. */ preferredDisks?: { [propertyName: string]: number }; /** - * @member {DataBoxDiskCopyProgress[]} [copyProgress] Copy progress per disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Copy progress per disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyProgress?: DataBoxDiskCopyProgress[]; /** - * @member {{ [propertyName: string]: number }} [disksAndSizeDetails] - * Contains the map of disk serial number to the disk size being used for the - * job. Is returned only after the disks are shipped to the customer. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Contains the map of disk serial number to the disk size being used for the job. Is returned + * only after the disks are shipped to the customer. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly disksAndSizeDetails?: { [propertyName: string]: number }; /** - * @member {string} [passkey] User entered passkey for DataBox Disk job. + * User entered passkey for DataBox Disk job. */ passkey?: string; } /** - * @interface - * An interface representing DiskSecret. * Contains all the secrets of a Disk. - * */ export interface DiskSecret { /** - * @member {string} [diskSerialNumber] Serial number of the assigned disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Serial number of the assigned disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly diskSerialNumber?: string; /** - * @member {string} [bitLockerKey] Bit Locker key of the disk which can be - * used to unlock the disk to copy data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Bit Locker key of the disk which can be used to unlock the disk to copy data. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bitLockerKey?: string; } @@ -825,999 +658,808 @@ export interface DiskSecret { export type JobSecretsUnion = JobSecrets | DataBoxDiskJobSecrets | DataBoxHeavyJobSecrets | DataboxJobSecrets; /** - * @interface - * An interface representing JobSecrets. * The base class for the secrets - * */ export interface JobSecrets { /** - * @member {string} jobSecretsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobSecretsType: "JobSecrets"; } /** - * @interface - * An interface representing DataBoxDiskJobSecrets. * The secrets related to disk job. - * */ export interface DataBoxDiskJobSecrets { /** - * @member {string} jobSecretsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobSecretsType: "DataBoxDisk"; /** - * @member {DiskSecret[]} [diskSecrets] Contains the list of secrets object - * for that device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Contains the list of secrets object for that device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly diskSecrets?: DiskSecret[]; /** - * @member {string} [passKey] PassKey for the disk Job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * PassKey for the disk Job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly passKey?: string; /** - * @member {boolean} [isPasskeyUserDefined] Whether passkey was provided by - * user. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether passkey was provided by user. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isPasskeyUserDefined?: boolean; } /** - * @interface - * An interface representing DataBoxHeavyAccountCopyLogDetails. - * Copy log details for a storage account for Databox heavy - * + * Copy log details for a storage account for DataBoxHeavy */ export interface DataBoxHeavyAccountCopyLogDetails { /** - * @member {string} copyLogDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ copyLogDetailsType: "DataBoxHeavy"; /** - * @member {string} [accountName] Destination account name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Destination account name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountName?: string; /** - * @member {string[]} [copyLogLink] Link for copy logs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for copy logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyLogLink?: string[]; } /** - * @interface - * An interface representing DataBoxHeavyJobDetails. - * Databox Heavy Device Job Details - * + * DataBoxHeavy Device Job Details */ export interface DataBoxHeavyJobDetails { /** - * @member {string} jobDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobDetailsType: "DataBoxHeavy"; /** - * @member {number} [expectedDataSizeInTeraBytes] The expected size of the - * data, which needs to be transfered in this job, in tera bytes. + * The expected size of the data, which needs to be transferred in this job, in terabytes. */ expectedDataSizeInTeraBytes?: number; /** - * @member {JobStages[]} [jobStages] List of stages that run in the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of stages that run in the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobStages?: JobStages[]; /** - * @member {ContactDetails} contactDetails Contact details for notification - * and shipping. + * Contact details for notification and shipping. */ contactDetails: ContactDetails; /** - * @member {ShippingAddress} shippingAddress Shipping address of the - * customer. + * Shipping address of the customer. */ shippingAddress: ShippingAddress; /** - * @member {PackageShippingDetails} [deliveryPackage] Delivery package - * shipping details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Delivery package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deliveryPackage?: PackageShippingDetails; /** - * @member {PackageShippingDetails} [returnPackage] Return package shipping - * details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Return package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly returnPackage?: PackageShippingDetails; /** - * @member {DestinationAccountDetails[]} destinationAccountDetails * Destination account details. */ - destinationAccountDetails: DestinationAccountDetails[]; + destinationAccountDetails: DestinationAccountDetailsUnion[]; /** - * @member {JobErrorDetails[]} [errorDetails] Error details for failure. This - * is optional. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error details for failure. This is optional. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorDetails?: JobErrorDetails[]; /** - * @member {Preferences} [preferences] Preferences for the order. + * Preferences for the order. */ preferences?: Preferences; /** - * @member {CopyLogDetailsUnion[]} [copyLogDetails] List of copy log details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of copy log details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyLogDetails?: CopyLogDetailsUnion[]; /** - * @member {string} [reverseShipmentLabelSasKey] Shared access key to - * download the return shipment label - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the return shipment label + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly reverseShipmentLabelSasKey?: string; /** - * @member {string} [chainOfCustodySasKey] Shared access key to download the - * chain of custody logs - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the chain of custody logs + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly chainOfCustodySasKey?: string; /** - * @member {CopyProgress[]} [copyProgress] Copy progress per account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Copy progress per account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyProgress?: CopyProgress[]; } /** - * @interface - * An interface representing DataBoxHeavySecret. - * The secrets related to a databox heavy. - * + * The secrets related to a DataBoxHeavy. */ export interface DataBoxHeavySecret { /** - * @member {string} [deviceSerialNumber] Serial number of the assigned - * device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Serial number of the assigned device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deviceSerialNumber?: string; /** - * @member {string} [devicePassword] Password for out of the box experience - * on device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Password for out of the box experience on device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly devicePassword?: string; /** - * @member {ApplianceNetworkConfiguration[]} [networkConfigurations] Network - * configuration of the appliance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Network configuration of the appliance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly networkConfigurations?: ApplianceNetworkConfiguration[]; /** - * @member {string} [encodedValidationCertPubKey] The base 64 encoded public - * key to authenticate with the device - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The base 64 encoded public key to authenticate with the device + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encodedValidationCertPubKey?: string; /** - * @member {AccountCredentialDetails[]} [accountCredentialDetails] Per - * account level access credentials. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Per account level access credentials. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountCredentialDetails?: AccountCredentialDetails[]; } /** - * @interface - * An interface representing DataBoxHeavyJobSecrets. - * The secrets related to a databox heavy job. - * + * The secrets related to a DataBoxHeavy job. */ export interface DataBoxHeavyJobSecrets { /** - * @member {string} jobSecretsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobSecretsType: "DataBoxHeavy"; /** - * @member {DataBoxHeavySecret[]} [cabinetPodSecrets] Contains the list of - * secret objects for a databox heavy job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Contains the list of secret objects for a DataBoxHeavy job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly cabinetPodSecrets?: DataBoxHeavySecret[]; } /** - * @interface - * An interface representing DataBoxJobDetails. - * Databox Job Details - * + * DataBox Job Details */ export interface DataBoxJobDetails { /** - * @member {string} jobDetailsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobDetailsType: "DataBox"; /** - * @member {number} [expectedDataSizeInTeraBytes] The expected size of the - * data, which needs to be transfered in this job, in tera bytes. + * The expected size of the data, which needs to be transferred in this job, in terabytes. */ expectedDataSizeInTeraBytes?: number; /** - * @member {JobStages[]} [jobStages] List of stages that run in the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of stages that run in the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobStages?: JobStages[]; /** - * @member {ContactDetails} contactDetails Contact details for notification - * and shipping. + * Contact details for notification and shipping. */ contactDetails: ContactDetails; /** - * @member {ShippingAddress} shippingAddress Shipping address of the - * customer. + * Shipping address of the customer. */ shippingAddress: ShippingAddress; /** - * @member {PackageShippingDetails} [deliveryPackage] Delivery package - * shipping details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Delivery package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deliveryPackage?: PackageShippingDetails; /** - * @member {PackageShippingDetails} [returnPackage] Return package shipping - * details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Return package shipping details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly returnPackage?: PackageShippingDetails; /** - * @member {DestinationAccountDetails[]} destinationAccountDetails * Destination account details. */ - destinationAccountDetails: DestinationAccountDetails[]; + destinationAccountDetails: DestinationAccountDetailsUnion[]; /** - * @member {JobErrorDetails[]} [errorDetails] Error details for failure. This - * is optional. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error details for failure. This is optional. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorDetails?: JobErrorDetails[]; /** - * @member {Preferences} [preferences] Preferences for the order. + * Preferences for the order. */ preferences?: Preferences; /** - * @member {CopyLogDetailsUnion[]} [copyLogDetails] List of copy log details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of copy log details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyLogDetails?: CopyLogDetailsUnion[]; /** - * @member {string} [reverseShipmentLabelSasKey] Shared access key to - * download the return shipment label - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the return shipment label + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly reverseShipmentLabelSasKey?: string; /** - * @member {string} [chainOfCustodySasKey] Shared access key to download the - * chain of custody logs - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Shared access key to download the chain of custody logs + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly chainOfCustodySasKey?: string; /** - * @member {CopyProgress[]} [copyProgress] Copy progress per storage account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Copy progress per storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly copyProgress?: CopyProgress[]; } /** - * @interface - * An interface representing DataBoxSecret. * The secrets related to a DataBox. - * */ export interface DataBoxSecret { /** - * @member {string} [deviceSerialNumber] Serial number of the assigned - * device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Serial number of the assigned device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deviceSerialNumber?: string; /** - * @member {string} [devicePassword] Password for out of the box experience - * on device. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Password for out of the box experience on device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly devicePassword?: string; /** - * @member {ApplianceNetworkConfiguration[]} [networkConfigurations] Network - * configuration of the appliance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Network configuration of the appliance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly networkConfigurations?: ApplianceNetworkConfiguration[]; /** - * @member {string} [encodedValidationCertPubKey] The base 64 encoded public - * key to authenticate with the device - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The base 64 encoded public key to authenticate with the device + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encodedValidationCertPubKey?: string; /** - * @member {AccountCredentialDetails[]} [accountCredentialDetails] Per - * account level access credentials. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Per account level access credentials. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountCredentialDetails?: AccountCredentialDetails[]; } /** - * @interface - * An interface representing DataboxJobSecrets. - * The secrets related to a databox job. - * + * The secrets related to a DataBox job. */ export interface DataboxJobSecrets { /** - * @member {string} jobSecretsType Polymorphic Discriminator + * Polymorphic Discriminator */ jobSecretsType: "DataBox"; /** - * @member {DataBoxSecret[]} [podSecrets] Contains the list of secret objects - * for a job. + * Contains the list of secret objects for a job. */ podSecrets?: DataBoxSecret[]; } /** - * @interface - * An interface representing DestinationAccountDetails. - * Details for the destination account. - * + * Contains the possible cases for DestinationAccountDetails. + */ +export type DestinationAccountDetailsUnion = DestinationAccountDetails | DestinationManagedDiskDetails | DestinationStorageAccountDetails; + +/** + * Details of the destination of the data */ export interface DestinationAccountDetails { /** - * @member {string} accountId Destination storage account id. + * Polymorphic Discriminator + */ + dataDestinationType: "DestinationAccountDetails"; + /** + * Arm Id of the destination where the data has to be moved. */ - accountId: string; + accountId?: string; +} + +/** + * Details for the destination compute disks. + */ +export interface DestinationManagedDiskDetails { + /** + * Polymorphic Discriminator + */ + dataDestinationType: "ManagedDisk"; + /** + * Arm Id of the destination where the data has to be moved. + */ + accountId?: string; + /** + * Destination Resource Group Id where the Compute disks should be created. + */ + resourceGroupId: string; + /** + * Arm Id of the storage account that can be used to copy the vhd for staging. + */ + stagingStorageAccountId: string; +} + +/** + * Details for the destination storage account. + */ +export interface DestinationStorageAccountDetails { + /** + * Polymorphic Discriminator + */ + dataDestinationType: "StorageAccount"; + /** + * Arm Id of the destination where the data has to be moved. + */ + accountId?: string; + /** + * Destination Storage Account Arm Id. + */ + storageAccountId: string; } /** - * @interface - * An interface representing ErrorModel. * Top level error for the job. - * */ export interface ErrorModel { /** - * @member {string} [code] Error code that can be used to programmatically - * identify the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error code that can be used to programmatically identify the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [message] Describes the error in detail and provides - * debugging information. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Describes the error in detail and provides debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; } /** - * @interface - * An interface representing JobErrorDetails. * Job Error Details for providing the information and recommended action. - * */ export interface JobErrorDetails { /** - * @member {string} [errorMessage] Message for the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Message for the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorMessage?: string; /** - * @member {number} [errorCode] Code for the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Code for the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorCode?: number; /** - * @member {string} [recommendedAction] Recommended action for the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Recommended action for the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly recommendedAction?: string; /** - * @member {string} [exceptionMessage] Contains the non localized exception - * message - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Contains the non localized exception message + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly exceptionMessage?: string; } /** - * @interface - * An interface representing JobStages. * Job stages. - * */ export interface JobStages { /** - * @member {StageName} [stageName] Name of the job stage. Possible values - * include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', - * 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', - * 'Cancelled', 'Failed_IssueReportedAtCustomer', + * Name of the job stage. Possible values include: 'DeviceOrdered', 'DevicePrepared', + * 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', + * 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', * 'Failed_IssueDetectedAtAzureDC', 'Aborted' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly stageName?: StageName; /** - * @member {string} [displayName] Display name of the job stage. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Display name of the job stage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly displayName?: string; /** - * @member {StageStatus} [stageStatus] Status of the job stage. Possible - * values include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled', - * 'Cancelling', 'SucceededWithErrors' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Status of the job stage. Possible values include: 'None', 'InProgress', 'Succeeded', 'Failed', + * 'Cancelled', 'Cancelling', 'SucceededWithErrors' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly stageStatus?: StageStatus; /** - * @member {Date} [stageTime] Time for the job stage in UTC ISO 8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time for the job stage in UTC ISO 8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly stageTime?: Date; /** - * @member {any} [jobStageDetails] Job Stage Details - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Job Stage Details + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobStageDetails?: any; /** - * @member {JobErrorDetails[]} [errorDetails] Error details for the stage. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error details for the stage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorDetails?: JobErrorDetails[]; } /** - * @interface - * An interface representing PackageShippingDetails. * Shipping details. - * */ export interface PackageShippingDetails { /** - * @member {string} [carrierName] Name of the carrier. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the carrier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly carrierName?: string; /** - * @member {string} [trackingId] Tracking Id of shipment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Tracking Id of shipment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackingId?: string; /** - * @member {string} [trackingUrl] Url where shipment can be tracked. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Url where shipment can be tracked. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackingUrl?: string; } /** - * @interface - * An interface representing Preferences. * Preferences related to the order - * */ export interface Preferences { - /** - * @member {string[]} [preferredDataCenterRegion] - */ preferredDataCenterRegion?: string[]; } /** - * @interface - * An interface representing Resource. * Model of the Resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} location The location of the resource. This will be one - * of the supported and registered Azure Regions (e.g. West US, East US, - * Southeast Asia, etc.). The region of a resource cannot be changed once it - * is created, but if an identical region is specified on update the request - * will succeed. + * The location of the resource. This will be one of the supported and registered Azure Regions + * (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once + * it is created, but if an identical region is specified on update the request will succeed. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] The list of key value - * pairs that describe the resource. These tags can be used in viewing and + * The list of key value pairs that describe the resource. These tags can be used in viewing and * grouping this resource (across resource groups). */ tags?: { [propertyName: string]: string }; /** - * @member {Sku} sku The sku type. + * The sku type. */ sku: Sku; } /** - * @interface - * An interface representing JobResource. * Job Resource. - * - * @extends Resource */ export interface JobResource extends Resource { /** - * @member {boolean} [isCancellable] Describes whether the job is cancellable - * or not. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Describes whether the job is cancellable or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isCancellable?: boolean; /** - * @member {boolean} [isDeletable] Describes whether the job is deletable or - * not. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Describes whether the job is deletable or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isDeletable?: boolean; /** - * @member {boolean} [isShippingAddressEditable] Describes whether the - * shipping address is editable or not. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Describes whether the shipping address is editable or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isShippingAddressEditable?: boolean; /** - * @member {StageName} [status] Name of the stage which is in progress. - * Possible values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched', - * 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', + * Name of the stage which is in progress. Possible values include: 'DeviceOrdered', + * 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', * 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', * 'Failed_IssueDetectedAtAzureDC', 'Aborted' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: StageName; /** - * @member {Date} [startTime] Time at which the job was started in UTC ISO - * 8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time at which the job was started in UTC ISO 8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly startTime?: Date; /** - * @member {ErrorModel} [error] Top level error for the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Top level error for the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly error?: ErrorModel; /** - * @member {JobDetailsUnion} [details] Details of a job run. This field will - * only be sent for expand details filter. + * Details of a job run. This field will only be sent for expand details filter. */ details?: JobDetailsUnion; /** - * @member {string} [cancellationReason] Reason for cancellation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reason for cancellation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly cancellationReason?: string; /** - * @member {string} [name] Name of the object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [id] Id of the object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Id of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [type] Type of the object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing UpdateJobDetails. * Job details for update. - * */ export interface UpdateJobDetails { /** - * @member {ContactDetails} [contactDetails] Contact details for notification - * and shipping. + * Contact details for notification and shipping. */ contactDetails?: ContactDetails; /** - * @member {ShippingAddress} [shippingAddress] Shipping address of the - * customer. + * Shipping address of the customer. */ shippingAddress?: ShippingAddress; } /** - * @interface - * An interface representing JobResourceUpdateParameter. * The JobResourceUpdateParameter. - * */ export interface JobResourceUpdateParameter { /** - * @member {UpdateJobDetails} [details] Details of a job to be updated. + * Details of a job to be updated. */ details?: UpdateJobDetails; /** - * @member {DestinationAccountDetails[]} [destinationAccountDetails] * Destination account details. */ - destinationAccountDetails?: DestinationAccountDetails[]; + destinationAccountDetails?: DestinationAccountDetailsUnion[]; /** - * @member {{ [propertyName: string]: string }} [tags] The list of key value - * pairs that describe the resource. These tags can be used in viewing and + * The list of key value pairs that describe the resource. These tags can be used in viewing and * grouping this resource (across resource groups). */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing OperationDisplay. * Operation display - * */ export interface OperationDisplay { /** - * @member {string} [provider] Provider name. + * Provider name. */ provider?: string; /** - * @member {string} [resource] Resource name. + * Resource name. */ resource?: string; /** - * @member {string} [operation] Localized name of the operation for display - * purpose. + * Localized name of the operation for display purpose. */ operation?: string; /** - * @member {string} [description] Localized description of the operation for - * display purpose. + * Localized description of the operation for display purpose. */ description?: string; } /** - * @interface - * An interface representing Operation. * Operation entity. - * */ export interface Operation { /** - * @member {string} [name] Name of the operation. Format: + * Name of the operation. Format: * {resourceProviderNamespace}/{resourceType}/{read|write|delete|action} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {OperationDisplay} [display] Operation display values. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation display values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly display?: OperationDisplay; /** - * @member {any} [properties] Operation properties. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly properties?: any; /** - * @member {string} [origin] Origin of the operation. Can be : - * user|system|user,system - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Origin of the operation. Can be : user|system|user,system + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly origin?: string; } /** - * @interface - * An interface representing ShipmentPickUpRequest. * Shipment pick up request details. - * */ export interface ShipmentPickUpRequest { /** - * @member {Date} startTime Minimum date after which the pick up should - * commence, this must be in local time of pick up area. + * Minimum date after which the pick up should commence, this must be in local time of pick up + * area. */ startTime: Date; /** - * @member {Date} endTime Maximum date before which the pick up should - * commence, this must be in local time of pick up area. + * Maximum date before which the pick up should commence, this must be in local time of pick up + * area. */ endTime: Date; /** - * @member {string} shipmentLocation Shipment Location in the pickup place. - * Eg.front desk + * Shipment Location in the pickup place. Eg.front desk */ shipmentLocation: string; } /** - * @interface - * An interface representing ShipmentPickUpResponse. * Shipment pick up response. - * */ export interface ShipmentPickUpResponse { /** - * @member {string} [confirmationNumber] Confirmation number for the pick up - * request. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Confirmation number for the pick up request. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly confirmationNumber?: string; /** - * @member {Date} [readyByTime] Time by which shipment should be ready for - * pick up, this is in local time of pick up area. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time by which shipment should be ready for pick up, this is in local time of pick up area. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly readyByTime?: Date; } /** - * @interface - * An interface representing UnencryptedCredentials. * Unencrypted credentials for accessing device. - * */ export interface UnencryptedCredentials { /** - * @member {string} [jobName] Name of the job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobName?: string; /** - * @member {JobSecretsUnion} [jobSecrets] Secrets related to this job. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Secrets related to this job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly jobSecrets?: JobSecretsUnion; } /** - * @interface - * An interface representing ValidateAddress. - * The requirements to validate customer address where the device needs to be - * shipped. - * + * The requirements to validate customer address where the device needs to be shipped. */ export interface ValidateAddress { /** - * @member {ShippingAddress} shippingAddress Shipping address of the - * customer. + * Shipping address of the customer. */ shippingAddress: ShippingAddress; /** - * @member {SkuName} deviceType Device type to be used for the job. Possible - * values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' + * Device type to be used for the job. Possible values include: 'DataBox', 'DataBoxDisk', + * 'DataBoxHeavy' */ deviceType: SkuName; } /** - * @interface - * An interface representing JobsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skipToken] $skipToken is supported on Get list of jobs, - * which provides the next page in the list of jobs. + * $skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. */ skipToken?: string; } /** - * @interface - * An interface representing JobsListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skipToken] $skipToken is supported on Get list of jobs, - * which provides the next page in the list of jobs. + * $skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. */ skipToken?: string; } /** - * @interface - * An interface representing JobsGetOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [expand] $expand is supported on details parameter for - * job, which provides details on the job stages. + * $expand is supported on details parameter for job, which provides details on the job stages. */ expand?: string; } /** - * @interface - * An interface representing JobsUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] Defines the If-Match condition. The patch will - * be performed only if the ETag of the job on the server matches this value. + * Defines the If-Match condition. The patch will be performed only if the ETag of the job on the + * server matches this value. */ ifMatch?: string; } /** - * @interface - * An interface representing JobsBeginUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface JobsBeginUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] Defines the If-Match condition. The patch will - * be performed only if the ETag of the job on the server matches this value. + * Defines the If-Match condition. The patch will be performed only if the ETag of the job on the + * server matches this value. */ ifMatch?: string; } /** - * @interface * An interface representing DataBoxManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface DataBoxManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationList. * Operation Collection. - * * @extends Array */ export interface OperationList extends Array { /** - * @member {string} [nextLink] Link for the next set of operations. + * Link for the next set of operations. */ nextLink?: string; } /** * @interface - * An interface representing the JobResourceList. * Job Resource Collection - * * @extends Array */ export interface JobResourceList extends Array { /** - * @member {string} [nextLink] Link for the next set of job resources. + * Link for the next set of job resources. */ nextLink?: string; } /** * @interface - * An interface representing the UnencryptedCredentialsList. * List of unencrypted credentials for accessing device. - * * @extends Array */ export interface UnencryptedCredentialsList extends Array { /** - * @member {string} [nextLink] Link for the next set of unencrypted - * credentials. + * Link for the next set of unencrypted credentials. */ nextLink?: string; } /** * @interface - * An interface representing the AvailableSkusResult. * The available skus operation response. - * * @extends Array */ export interface AvailableSkusResult extends Array { /** - * @member {string} [nextLink] Link for the next set of skus. + * Link for the next set of skus. */ nextLink?: string; } /** * Defines values for ShareDestinationFormatType. - * Possible values include: 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile' + * Possible values include: 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile', + * 'ManagedDisk' * @readonly * @enum {string} */ -export type ShareDestinationFormatType = 'UnknownType' | 'HCS' | 'BlockBlob' | 'PageBlob' | 'AzureFile'; +export type ShareDestinationFormatType = 'UnknownType' | 'HCS' | 'BlockBlob' | 'PageBlob' | 'AzureFile' | 'ManagedDisk'; /** * Defines values for AccessProtocol. @@ -1853,11 +1495,12 @@ export type SkuName = 'DataBox' | 'DataBoxDisk' | 'DataBoxHeavy'; /** * Defines values for SkuDisabledReason. - * Possible values include: 'None', 'Country', 'Region', 'Feature', 'OfferType' + * Possible values include: 'None', 'Country', 'Region', 'Feature', 'OfferType', + * 'NoSubscriptionInfo' * @readonly * @enum {string} */ -export type SkuDisabledReason = 'None' | 'Country' | 'Region' | 'Feature' | 'OfferType'; +export type SkuDisabledReason = 'None' | 'Country' | 'Region' | 'Feature' | 'OfferType' | 'NoSubscriptionInfo'; /** * Defines values for NotificationStageName. @@ -1908,6 +1551,7 @@ export type OperationsListResponse = OperationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1927,6 +1571,7 @@ export type OperationsListNextResponse = OperationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1946,6 +1591,7 @@ export type JobsListResponse = JobResourceList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1965,6 +1611,7 @@ export type JobsListByResourceGroupResponse = JobResourceList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1984,6 +1631,7 @@ export type JobsGetResponse = JobResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2003,6 +1651,7 @@ export type JobsCreateResponse = JobResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2022,6 +1671,7 @@ export type JobsUpdateResponse = JobResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2041,6 +1691,7 @@ export type JobsBookShipmentPickUpResponse = ShipmentPickUpResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2060,6 +1711,7 @@ export type JobsListCredentialsResponse = UnencryptedCredentialsList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2079,6 +1731,7 @@ export type JobsBeginCreateResponse = JobResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2098,6 +1751,7 @@ export type JobsBeginUpdateResponse = JobResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2117,6 +1771,7 @@ export type JobsListNextResponse = JobResourceList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2136,6 +1791,7 @@ export type JobsListByResourceGroupNextResponse = JobResourceList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2155,6 +1811,7 @@ export type ServiceListAvailableSkusResponse = AvailableSkusResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2174,6 +1831,7 @@ export type ServiceValidateAddressMethodResponse = AddressValidationOutput & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2193,6 +1851,7 @@ export type ServiceListAvailableSkusNextResponse = AvailableSkusResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/databox/arm-databox/src/models/jobsMappers.ts b/sdk/databox/arm-databox/src/models/jobsMappers.ts index c5eaab52abae..fc490ebc3d3a 100644 --- a/sdk/databox/arm-databox/src/models/jobsMappers.ts +++ b/sdk/databox/arm-databox/src/models/jobsMappers.ts @@ -1,56 +1,55 @@ /* * 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 { discriminators, - JobResourceList, - JobResource, - Resource, + AccountCredentialDetails, + ApplianceNetworkConfiguration, BaseResource, - Sku, - ErrorModel, - JobDetails, - JobStages, - JobErrorDetails, + CancellationReason, + CloudError, ContactDetails, - NotificationPreference, - ShippingAddress, - PackageShippingDetails, - DestinationAccountDetails, - Preferences, CopyLogDetails, - CloudError, - JobResourceUpdateParameter, - UpdateJobDetails, - ShipmentPickUpRequest, - ShipmentPickUpResponse, - CancellationReason, - UnencryptedCredentialsList, - UnencryptedCredentials, - JobSecrets, + CopyProgress, DataBoxAccountCopyLogDetails, DataBoxDiskCopyLogDetails, - DataBoxDiskJobDetails, DataBoxDiskCopyProgress, + DataBoxDiskJobDetails, DataBoxDiskJobSecrets, - DiskSecret, DataBoxHeavyAccountCopyLogDetails, DataBoxHeavyJobDetails, - CopyProgress, DataBoxHeavyJobSecrets, DataBoxHeavySecret, - ApplianceNetworkConfiguration, - AccountCredentialDetails, - ShareCredentialDetails, DataBoxJobDetails, DataboxJobSecrets, - DataBoxSecret + DataBoxSecret, + DestinationAccountDetails, + DestinationManagedDiskDetails, + DestinationStorageAccountDetails, + DiskSecret, + ErrorModel, + JobDetails, + JobErrorDetails, + JobResource, + JobResourceList, + JobResourceUpdateParameter, + JobSecrets, + JobStages, + NotificationPreference, + PackageShippingDetails, + Preferences, + Resource, + ShareCredentialDetails, + ShipmentPickUpRequest, + ShipmentPickUpResponse, + ShippingAddress, + Sku, + UnencryptedCredentials, + UnencryptedCredentialsList, + UpdateJobDetails } from "../models/mappers"; - diff --git a/sdk/databox/arm-databox/src/models/mappers.ts b/sdk/databox/arm-databox/src/models/mappers.ts index 2efaac8776aa..e76fec82570c 100644 --- a/sdk/databox/arm-databox/src/models/mappers.ts +++ b/sdk/databox/arm-databox/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"; @@ -37,7 +35,8 @@ export const ShareCredentialDetails: msRest.CompositeMapper = { "HCS", "BlockBlob", "PageBlob", - "AzureFile" + "AzureFile", + "ManagedDisk" ] } }, @@ -512,7 +511,8 @@ export const SkuInformation: msRest.CompositeMapper = { "Country", "Region", "Feature", - "OfferType" + "OfferType", + "NoSubscriptionInfo" ] } }, @@ -698,6 +698,20 @@ export const CopyProgress: msRest.CompositeMapper = { type: { name: "Number" } + }, + filesProcessed: { + readOnly: true, + serializedName: "filesProcessed", + type: { + name: "Number" + } + }, + totalFilesToProcess: { + readOnly: true, + serializedName: "totalFilesToProcess", + type: { + name: "Number" + } } } } @@ -1337,14 +1351,72 @@ export const DestinationAccountDetails: msRest.CompositeMapper = { serializedName: "DestinationAccountDetails", type: { name: "Composite", + polymorphicDiscriminator: { + serializedName: "dataDestinationType", + clientName: "dataDestinationType" + }, + uberParent: "DestinationAccountDetails", className: "DestinationAccountDetails", modelProperties: { accountId: { - required: true, serializedName: "accountId", type: { name: "String" } + }, + dataDestinationType: { + required: true, + serializedName: "dataDestinationType", + type: { + name: "String" + } + } + } + } +}; + +export const DestinationManagedDiskDetails: msRest.CompositeMapper = { + serializedName: "ManagedDisk", + type: { + name: "Composite", + polymorphicDiscriminator: DestinationAccountDetails.type.polymorphicDiscriminator, + uberParent: "DestinationAccountDetails", + className: "DestinationManagedDiskDetails", + modelProperties: { + ...DestinationAccountDetails.type.modelProperties, + resourceGroupId: { + required: true, + serializedName: "resourceGroupId", + type: { + name: "String" + } + }, + stagingStorageAccountId: { + required: true, + serializedName: "stagingStorageAccountId", + type: { + name: "String" + } + } + } + } +}; + +export const DestinationStorageAccountDetails: msRest.CompositeMapper = { + serializedName: "StorageAccount", + type: { + name: "Composite", + polymorphicDiscriminator: DestinationAccountDetails.type.polymorphicDiscriminator, + uberParent: "DestinationAccountDetails", + className: "DestinationStorageAccountDetails", + modelProperties: { + ...DestinationAccountDetails.type.modelProperties, + storageAccountId: { + required: true, + serializedName: "storageAccountId", + type: { + name: "String" + } } } } @@ -2052,6 +2124,10 @@ export const discriminators = { 'JobSecrets.DataBoxHeavy' : DataBoxHeavyJobSecrets, 'JobDetails.DataBox' : DataBoxJobDetails, 'JobSecrets.DataBox' : DataboxJobSecrets, + 'DestinationAccountDetails' : DestinationAccountDetails, + 'DestinationAccountDetails.ManagedDisk' : DestinationManagedDiskDetails, + 'DestinationAccountDetails.StorageAccount' : DestinationStorageAccountDetails, 'JobDetails' : JobDetails, 'JobSecrets' : JobSecrets + }; diff --git a/sdk/databox/arm-databox/src/models/operationsMappers.ts b/sdk/databox/arm-databox/src/models/operationsMappers.ts index f2e907d82125..786d9130f59f 100644 --- a/sdk/databox/arm-databox/src/models/operationsMappers.ts +++ b/sdk/databox/arm-databox/src/models/operationsMappers.ts @@ -1,18 +1,15 @@ /* * 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 { discriminators, - OperationList, + CloudError, Operation, OperationDisplay, - CloudError + OperationList } from "../models/mappers"; - diff --git a/sdk/databox/arm-databox/src/models/serviceMappers.ts b/sdk/databox/arm-databox/src/models/serviceMappers.ts index 5750131cf748..2d1898f209bf 100644 --- a/sdk/databox/arm-databox/src/models/serviceMappers.ts +++ b/sdk/databox/arm-databox/src/models/serviceMappers.ts @@ -1,25 +1,22 @@ /* * 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 { discriminators, + AddressValidationOutput, AvailableSkuRequest, AvailableSkusResult, - SkuInformation, - Sku, + CloudError, DestinationToServiceLocationMap, + ShippingAddress, + Sku, SkuCapacity, SkuCost, - CloudError, - ValidateAddress, - ShippingAddress, - AddressValidationOutput + SkuInformation, + ValidateAddress } from "../models/mappers"; - diff --git a/sdk/databox/arm-databox/tsconfig.json b/sdk/databox/arm-databox/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/databox/arm-databox/tsconfig.json +++ b/sdk/databox/arm-databox/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true