diff --git a/sdk/databox/arm-databox/CHANGELOG.md b/sdk/databox/arm-databox/CHANGELOG.md index 5ea6213a7470..72647d2dead8 100644 --- a/sdk/databox/arm-databox/CHANGELOG.md +++ b/sdk/databox/arm-databox/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 5.0.0 (2023-01-31) -## 5.0.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 5.0.0-beta.3 (2022-11-18) - -The package of @azure/arm-databox is using our next generation design principles since version 5.0.0-beta.3, which contains breaking changes. +The package of @azure/arm-databox is using our next generation design principles since version 5.0.0, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/databox/arm-databox/LICENSE b/sdk/databox/arm-databox/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/databox/arm-databox/LICENSE +++ b/sdk/databox/arm-databox/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 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 12beff8c004c..6e21df8ea56c 100644 --- a/sdk/databox/arm-databox/README.md +++ b/sdk/databox/arm-databox/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/databox/arm-databox) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-databox) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-databox?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-databox) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/databox/arm-databox/_meta.json b/sdk/databox/arm-databox/_meta.json index 38528c7be022..ebb7564b9819 100644 --- a/sdk/databox/arm-databox/_meta.json +++ b/sdk/databox/arm-databox/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e6a2296d02ec6c4b2c32479198bfbcb9b16ea247", - "readme": "specification\\databox\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\databox\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "7789cd7e5b1a8f9ebeb80a004788f8df1fe597a7", + "readme": "specification/databox/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/databox/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.1", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/databox/arm-databox/package.json b/sdk/databox/arm-databox/package.json index 8a8e33a55420..78eb034d5977 100644 --- a/sdk/databox/arm-databox/package.json +++ b/sdk/databox/arm-databox/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataBoxManagementClient.", - "version": "5.0.0-beta.4", + "version": "5.0.0", "engines": { "node": ">=14.0.0" }, @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-databox?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/databox/arm-databox/review/arm-databox.api.md b/sdk/databox/arm-databox/review/arm-databox.api.md index ec1c269d72df..a8cf5df727e3 100644 --- a/sdk/databox/arm-databox/review/arm-databox.api.md +++ b/sdk/databox/arm-databox/review/arm-databox.api.md @@ -122,6 +122,14 @@ export interface ContactDetails { phoneExtension?: string; } +// @public +export interface ContactInfo { + contactName: string; + mobile?: string; + phone: string; + phoneExtension?: string; +} + // @public export interface CopyLogDetails { copyLogDetailsType: "DataBox" | "DataBoxCustomerDisk" | "DataBoxDisk" | "DataBoxHeavy"; @@ -177,7 +185,7 @@ export interface CustomerDiskJobSecrets extends JobSecrets { } // @public -export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume"; +export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume" | "Restart" | "ReachOutToOperation"; // @public export interface DataAccountDetails { @@ -244,12 +252,29 @@ export interface DataBoxDiskCopyProgress { readonly status?: CopyStatus; } +// @public +export interface DataBoxDiskGranularCopyLogDetails extends GranularCopyLogDetails { + readonly accountId?: string; + copyLogDetailsType: "DataBoxCustomerDisk"; + readonly errorLogLink?: string; + readonly serialNumber?: string; + readonly verboseLogLink?: string; +} + +// @public +export interface DataBoxDiskGranularCopyProgress extends GranularCopyProgress { + readonly copyStatus?: CopyStatus; + readonly serialNumber?: string; +} + // @public export interface DataBoxDiskJobDetails extends JobDetails { readonly copyProgress?: DataBoxDiskCopyProgress[]; readonly disksAndSizeDetails?: { [propertyName: string]: number; }; + readonly granularCopyLogDetails?: DataBoxDiskGranularCopyLogDetails[]; + readonly granularCopyProgress?: DataBoxDiskGranularCopyProgress[]; jobDetailsType: "DataBoxDisk"; passkey?: string; preferredDisks?: { @@ -441,6 +466,12 @@ export interface Details { message: string; } +// @public +export interface DeviceErasureDetails { + readonly deviceErasureStatus?: StageStatus; + readonly erasureOrDestructionCertificateSasKey?: string; +} + // @public export interface DiskScheduleAvailabilityRequest extends ScheduleAvailabilityRequest { expectedDataSizeInTeraBytes: number; @@ -492,6 +523,33 @@ export type FilterFileType = "AzureBlob" | "AzureFile"; // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GranularCopyLogDetails { + copyLogDetailsType: "DataBoxCustomerDisk"; +} + +// @public (undocumented) +export type GranularCopyLogDetailsUnion = GranularCopyLogDetails | DataBoxDiskGranularCopyLogDetails; + +// @public +export interface GranularCopyProgress { + readonly accountId?: string; + readonly bytesProcessed?: number; + readonly dataAccountType?: DataAccountType; + readonly directoriesErroredOut?: number; + readonly filesErroredOut?: number; + readonly filesProcessed?: number; + readonly invalidDirectoriesProcessed?: number; + readonly invalidFileBytesUploaded?: number; + readonly invalidFilesProcessed?: number; + readonly isEnumerationInProgress?: boolean; + readonly renamedContainerCount?: number; + readonly storageAccountName?: string; + readonly totalBytesToProcess?: number; + readonly totalFilesToProcess?: number; + readonly transferType?: TransferType; +} + // @public export interface HeavyScheduleAvailabilityRequest extends ScheduleAvailabilityRequest { skuName: "DataBoxHeavy"; @@ -530,6 +588,7 @@ export interface JobDetails { dataExportDetails?: DataExportDetails[]; dataImportDetails?: DataImportDetails[]; readonly deliveryPackage?: PackageShippingDetails; + readonly deviceErasureDetails?: DeviceErasureDetails; expectedDataSizeInTeraBytes?: number; jobDetailsType: "DataBoxCustomerDisk" | "DataBoxDisk" | "DataBoxHeavy" | "DataBox"; readonly jobStages?: JobStages[]; @@ -538,6 +597,7 @@ export interface JobDetails { preferences?: Preferences; readonly returnPackage?: PackageShippingDetails; readonly reverseShipmentLabelSasKey?: string; + reverseShippingDetails?: ReverseShippingDetails; shippingAddress?: ShippingAddress; } @@ -558,6 +618,8 @@ export interface JobResource extends Resource { readonly isPrepareToShipEnabled?: boolean; readonly isShippingAddressEditable?: boolean; readonly name?: string; + readonly reverseShippingDetailsUpdate?: ReverseShippingDetailsEditStatus; + readonly reverseTransportPreferenceUpdate?: ReverseTransportPreferenceEditStatus; readonly startTime?: Date; readonly status?: StageName; readonly systemData?: SystemData; @@ -617,6 +679,11 @@ export interface JobsCreateOptionalParams extends coreClient.OperationOptions { // @public export type JobsCreateResponse = JobResource; +// @public +export interface JobsDeleteHeaders { + location?: string; +} + // @public export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -643,7 +710,6 @@ export type JobsGetResponse = JobResource; // @public export interface JobsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public @@ -666,7 +732,6 @@ export type JobsListCredentialsResponse = UnencryptedCredentialsList; // @public export interface JobsListNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public @@ -693,6 +758,11 @@ export interface JobStages { readonly stageTime?: Date; } +// @public +export interface JobsUpdateHeaders { + location?: string; +} + // @public export interface JobsUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; @@ -744,9 +814,11 @@ export enum KnownDataCenterCode { AMS20 = "AMS20", AUH20 = "AUH20", BJB = "BJB", + BJS20 = "BJS20", BL20 = "BL20", BL7 = "BL7", BN1 = "BN1", + BN7 = "BN7", BOM01 = "BOM01", BY1 = "BY1", BY2 = "BY2", @@ -759,6 +831,7 @@ export enum KnownDataCenterCode { CWL20 = "CWL20", CYS04 = "CYS04", DSM05 = "DSM05", + DUB07 = "DUB07", FRA22 = "FRA22", HKG20 = "HKG20", Invalid = "Invalid", @@ -770,7 +843,11 @@ export enum KnownDataCenterCode { MNZ21 = "MNZ21", MWH01 = "MWH01", ORK70 = "ORK70", + OSA02 = "OSA02", OSA20 = "OSA20", + OSA22 = "OSA22", + PAR22 = "PAR22", + PNQ01 = "PNQ01", PUS20 = "PUS20", SEL20 = "SEL20", SEL21 = "SEL21", @@ -778,8 +855,10 @@ export enum KnownDataCenterCode { SHA03 = "SHA03", SIN20 = "SIN20", SN5 = "SN5", + SN6 = "SN6", SN8 = "SN8", SSE90 = "SSE90", + SVG20 = "SVG20", SYD03 = "SYD03", SYD23 = "SYD23", TYO01 = "TYO01", @@ -851,7 +930,10 @@ export interface MarkDevicesShippedRequest { // @public export interface MitigateJobRequest { - customerResolutionCode: CustomerResolutionCode; + customerResolutionCode?: CustomerResolutionCode; + serialNumberCustomerResolutionMap?: { + [propertyName: string]: CustomerResolutionCode; + }; } // @public @@ -936,6 +1018,8 @@ export interface PackageShippingDetails { export interface Preferences { encryptionPreferences?: EncryptionPreferences; preferredDataCenterRegion?: string[]; + reverseTransportPreferences?: TransportPreferences; + storageAccountAccessTierPreferences?: string[]; transportPreferences?: TransportPreferences; } @@ -986,6 +1070,19 @@ export interface ResourceIdentity { }; } +// @public +export interface ReverseShippingDetails { + contactDetails?: ContactInfo; + readonly isUpdated?: boolean; + shippingAddress?: ShippingAddress; +} + +// @public +export type ReverseShippingDetailsEditStatus = "Enabled" | "Disabled" | "NotSupported"; + +// @public +export type ReverseTransportPreferenceEditStatus = "Enabled" | "Disabled" | "NotSupported"; + // @public export interface ScheduleAvailabilityRequest { country?: string; @@ -1142,6 +1239,7 @@ export interface SkuInformation { readonly apiVersions?: string[]; readonly capacity?: SkuCapacity; readonly costs?: SkuCost[]; + readonly countriesWithinCommerceBoundary?: string[]; readonly dataLocationToServiceLocationMap?: DataLocationToServiceLocationMap[]; readonly disabledReason?: SkuDisabledReason; readonly disabledReasonMessage?: string; @@ -1157,7 +1255,7 @@ export type SkuName = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "DataBoxCusto export type StageName = string; // @public -export type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp"; +export type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp" | "CustomerActionPerformed"; // @public export interface StorageAccountDetails extends DataAccountDetails { @@ -1241,6 +1339,7 @@ export interface TransportAvailabilityResponse { // @public export interface TransportPreferences { + readonly isUpdated?: boolean; preferredShipmentType: TransportShipmentTypes; } @@ -1263,7 +1362,9 @@ export interface UnencryptedCredentialsList { export interface UpdateJobDetails { contactDetails?: ContactDetails; keyEncryptionKey?: KeyEncryptionKey; + preferences?: Preferences; returnToCustomerPackageDetails?: PackageCarrierDetails; + reverseShippingDetails?: ReverseShippingDetails; shippingAddress?: ShippingAddress; } diff --git a/sdk/databox/arm-databox/src/dataBoxManagementClient.ts b/sdk/databox/arm-databox/src/dataBoxManagementClient.ts index b665595e0268..188bcc181326 100644 --- a/sdk/databox/arm-databox/src/dataBoxManagementClient.ts +++ b/sdk/databox/arm-databox/src/dataBoxManagementClient.ts @@ -56,7 +56,7 @@ export class DataBoxManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-databox/5.0.0-beta.4`; + const packageDetails = `azsdk-js-arm-databox/5.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -109,7 +109,7 @@ export class DataBoxManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-01-preview"; + this.apiVersion = options.apiVersion || "2022-10-01"; this.operations = new OperationsImpl(this); this.jobs = new JobsImpl(this); this.service = new ServiceImpl(this); diff --git a/sdk/databox/arm-databox/src/models/index.ts b/sdk/databox/arm-databox/src/models/index.ts index 91552b509929..3f5b22d2e1bb 100644 --- a/sdk/databox/arm-databox/src/models/index.ts +++ b/sdk/databox/arm-databox/src/models/index.ts @@ -56,6 +56,9 @@ export type ScheduleAvailabilityRequestUnion = | DataBoxScheduleAvailabilityRequest | DiskScheduleAvailabilityRequest | HeavyScheduleAvailabilityRequest; +export type GranularCopyLogDetailsUnion = + | GranularCopyLogDetails + | DataBoxDiskGranularCopyLogDetails; /** Operation Collection. */ export interface OperationList { @@ -130,32 +133,32 @@ export interface JobResourceList { nextLink?: string; } -/** Cloud error. */ +/** Provides additional information about an http error response. */ export interface CloudError { - /** Cloud error code. */ - code?: string; - /** Cloud error message. */ - message?: string; - /** Cloud error target. */ - target?: string; /** - * Cloud error details. + * Gets or sets additional error info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: CloudError[]; + readonly additionalInfo?: AdditionalErrorInfo[]; + /** Error code. */ + code?: string; /** - * Cloud error additional info. + * Gets or sets details for the error. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly additionalInfo?: AdditionalErrorInfo[]; + readonly details?: CloudError[]; + /** The error message parsed from the body of the http error response. */ + message?: string; + /** Gets or sets the target of the error. */ + target?: string; } -/** Additional error info. */ +/** This class represents additional info which Resource Providers pass when an error occurs. */ export interface AdditionalErrorInfo { - /** Additional error type. */ - type?: string; - /** Additional error info. */ + /** Additional information of the type of error. */ info?: Record; + /** Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation). */ + type?: string; } /** Job details. */ @@ -191,6 +194,8 @@ export interface JobDetails { dataExportDetails?: DataExportDetails[]; /** Preferences for the order. */ preferences?: Preferences; + /** Optional Reverse Shipping details for order. */ + reverseShippingDetails?: ReverseShippingDetails; /** * List of copy log details. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -206,6 +211,11 @@ export interface JobDetails { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly chainOfCustodySasKey?: string; + /** + * Holds device data erasure details + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deviceErasureDetails?: DeviceErasureDetails; /** Details about which key encryption type is being used. */ keyEncryptionKey?: KeyEncryptionKey; /** The expected size of the data, which needs to be transferred in this job, in terabytes. */ @@ -432,14 +442,23 @@ export interface Preferences { preferredDataCenterRegion?: string[]; /** Preferences related to the shipment logistics of the sku. */ transportPreferences?: TransportPreferences; + /** Optional Preferences related to the reverse shipment logistics of the sku. */ + reverseTransportPreferences?: TransportPreferences; /** Preferences related to the Encryption. */ encryptionPreferences?: EncryptionPreferences; + /** Preferences related to the Access Tier of storage accounts. */ + storageAccountAccessTierPreferences?: string[]; } /** Preferences related to the shipment logistics of the sku */ export interface TransportPreferences { /** Indicates Shipment Logistics type that the customer preferred. */ preferredShipmentType: TransportShipmentTypes; + /** + * Read only property which indicates whether transport preferences has been updated or not after device is prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isUpdated?: boolean; } /** Preferences related to the Encryption. */ @@ -448,6 +467,32 @@ export interface EncryptionPreferences { doubleEncryption?: DoubleEncryption; } +/** Reverse Shipping Address and contact details for a job. */ +export interface ReverseShippingDetails { + /** Contact Info. */ + contactDetails?: ContactInfo; + /** Shipping address where customer wishes to receive the device. */ + shippingAddress?: ShippingAddress; + /** + * A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. + * Read only field + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isUpdated?: boolean; +} + +/** Contact Info. */ +export interface ContactInfo { + /** Contact name of the person. */ + contactName: string; + /** Phone number of the contact person. */ + phone: string; + /** Phone extension number of the contact person. */ + phoneExtension?: string; + /** Mobile number of the contact person. */ + mobile?: string; +} + /** Details for log generated during copy. */ export interface CopyLogDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -458,6 +503,20 @@ export interface CopyLogDetails { | "DataBoxHeavy"; } +/** Device erasure details with erasure completion status and erasureordestructionlog sas key */ +export interface DeviceErasureDetails { + /** + * Holds the device erasure completion status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deviceErasureStatus?: StageStatus; + /** + * Shared access key to download cleanup or destruction certificate for device + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly erasureOrDestructionCertificateSasKey?: string; +} + /** Encryption key containing details about key to encrypt different keys. */ export interface KeyEncryptionKey { /** Type of encryption key used for key encryption. */ @@ -612,7 +671,11 @@ export interface UserAssignedIdentity { /** The Mitigate Job captured from request body for Mitigate API */ export interface MitigateJobRequest { /** Resolution code for the job */ - customerResolutionCode: CustomerResolutionCode; + customerResolutionCode?: CustomerResolutionCode; + /** Serial number and the customer resolution code corresponding to each serial number */ + serialNumberCustomerResolutionMap?: { + [propertyName: string]: CustomerResolutionCode; + }; } /** The request body to provide the delivery package details of job */ @@ -699,6 +762,11 @@ export interface SkuInformation { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredFeature?: string; + /** + * List of all the Countries in the SKU specific commerce boundary + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly countriesWithinCommerceBoundary?: string[]; } /** Map of data location to service location */ @@ -836,6 +904,10 @@ export interface UpdateJobDetails { contactDetails?: ContactDetails; /** Shipping address of the customer. */ shippingAddress?: ShippingAddress; + /** Reverse Shipping Address and contact details for a job. */ + reverseShippingDetails?: ReverseShippingDetails; + /** Preferences related to the order */ + preferences?: Preferences; /** Key encryption key for the job. */ keyEncryptionKey?: KeyEncryptionKey; /** Return package details of job. */ @@ -1098,6 +1170,12 @@ export interface ArmBaseObject { readonly type?: string; } +/** Granular Details for log generated during copy. */ +export interface GranularCopyLogDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + copyLogDetailsType: "DataBoxCustomerDisk"; +} + /** Copy progress. */ export interface CopyProgress { /** @@ -1178,6 +1256,86 @@ export interface CopyProgress { readonly isEnumerationInProgress?: boolean; } +/** Granular Copy progress. */ +export interface GranularCopyProgress { + /** + * Name of the storage account. This will be empty for data account types other than storage account. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly storageAccountName?: string; + /** + * Transfer type of data + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly transferType?: TransferType; + /** + * Data Account Type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataAccountType?: DataAccountType; + /** + * 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; + /** + * To indicate bytes transferred. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly bytesProcessed?: number; + /** + * 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 + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly filesProcessed?: number; + /** + * Total files to process + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalFilesToProcess?: number; + /** + * Number of files not adhering to azure naming conventions which were processed by automatic renaming + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly invalidFilesProcessed?: number; + /** + * Total amount of data not adhering to azure naming conventions which were processed by automatic renaming + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly invalidFileBytesUploaded?: number; + /** + * Number of folders not adhering to azure naming conventions which were processed by automatic renaming + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly renamedContainerCount?: number; + /** + * Number of files which could not be copied + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly filesErroredOut?: number; + /** + * To indicate directories errored out in the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly directoriesErroredOut?: number; + /** + * To indicate directories renamed + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly invalidDirectoriesProcessed?: number; + /** + * To indicate if enumeration of data is in progress. + * Until this is true, the TotalBytesToProcess may not be valid. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isEnumerationInProgress?: boolean; +} + /** Import disk details */ export interface ImportDiskDetails { /** The relative path of the manifest file on the disk. */ @@ -1348,6 +1506,16 @@ export interface DataBoxDiskJobDetails extends JobDetails { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly copyProgress?: DataBoxDiskCopyProgress[]; + /** + * Copy progress per disk. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly granularCopyProgress?: DataBoxDiskGranularCopyProgress[]; + /** + * Copy progress per disk. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly granularCopyLogDetails?: DataBoxDiskGranularCopyLogDetails[]; /** * 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. @@ -1608,6 +1776,16 @@ export interface JobResource extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isShippingAddressEditable?: boolean; + /** + * The Editable status for Reverse Shipping Address and Contact Info + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reverseShippingDetailsUpdate?: ReverseShippingDetailsEditStatus; + /** + * The Editable status for Reverse Transport preferences + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reverseTransportPreferenceUpdate?: ReverseTransportPreferenceEditStatus; /** * Is Prepare To Ship Enabled on this job * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1875,6 +2053,33 @@ export interface HeavyScheduleAvailabilityRequest skuName: "DataBoxHeavy"; } +/** Granular Copy Log Details for customer disk */ +export interface DataBoxDiskGranularCopyLogDetails + extends GranularCopyLogDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + copyLogDetailsType: "DataBoxCustomerDisk"; + /** + * Disk Serial Number. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serialNumber?: string; + /** + * Account id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly accountId?: string; + /** + * Link for copy error logs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorLogLink?: string; + /** + * Link for copy verbose logs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly verboseLogLink?: string; +} + /** DataBox CustomerDisk Copy Progress */ export interface DataBoxCustomerDiskCopyProgress extends CopyProgress { /** @@ -1889,6 +2094,32 @@ export interface DataBoxCustomerDiskCopyProgress extends CopyProgress { readonly copyStatus?: CopyStatus; } +/** DataBox Disk Granular Copy Progress */ +export interface DataBoxDiskGranularCopyProgress extends GranularCopyProgress { + /** + * Disk Serial Number. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serialNumber?: string; + /** + * The Status of the copy + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly copyStatus?: CopyStatus; +} + +/** Defines headers for Jobs_delete operation. */ +export interface JobsDeleteHeaders { + /** The URI to poll for completion status. */ + location?: string; +} + +/** Defines headers for Jobs_update operation. */ +export interface JobsUpdateHeaders { + /** The URI to poll for completion status. */ + location?: string; +} + /** Known values of {@link StageName} that the service accepts. */ export enum KnownStageName { /** An order has been created. */ @@ -2101,7 +2332,25 @@ export enum KnownDataCenterCode { /** CH1 */ CH1 = "CH1", /** DSM05 */ - DSM05 = "DSM05" + DSM05 = "DSM05", + /** DUB07 */ + DUB07 = "DUB07", + /** PNQ01 */ + PNQ01 = "PNQ01", + /** SVG20 */ + SVG20 = "SVG20", + /** OSA02 */ + OSA02 = "OSA02", + /** OSA22 */ + OSA22 = "OSA22", + /** PAR22 */ + PAR22 = "PAR22", + /** BN7 */ + BN7 = "BN7", + /** SN6 */ + SN6 = "SN6", + /** BJS20 */ + BJS20 = "BJS20" } /** @@ -2158,7 +2407,16 @@ export enum KnownDataCenterCode { * **PUS20** \ * **AdHoc** \ * **CH1** \ - * **DSM05** + * **DSM05** \ + * **DUB07** \ + * **PNQ01** \ + * **SVG20** \ + * **OSA02** \ + * **OSA22** \ + * **PAR22** \ + * **BN7** \ + * **SN6** \ + * **BJS20** */ export type DataCenterCode = string; @@ -2198,7 +2456,7 @@ export enum KnownCopyStatus { DriveNotDetected = "DriveNotDetected", /** Copy failed due to corrupted drive. */ DriveCorrupted = "DriveCorrupted", - /** Copy failed due to modified or removed metadata files. */ + /** Copy failed due to modified or removed metadata files. */ MetadataFilesModifiedOrRemoved = "MetadataFilesModifiedOrRemoved" } @@ -2224,11 +2482,21 @@ export enum KnownCopyStatus { * **OtherUserError**: Copy failed due to user error. \ * **DriveNotDetected**: Copy failed due to disk detection error. \ * **DriveCorrupted**: Copy failed due to corrupted drive. \ - * **MetadataFilesModifiedOrRemoved**: Copy failed due to modified or removed metadata files. + * **MetadataFilesModifiedOrRemoved**: Copy failed due to modified or removed metadata files. */ export type CopyStatus = string; /** Defines values for TransferType. */ export type TransferType = "ImportToAzure" | "ExportFromAzure"; +/** Defines values for ReverseShippingDetailsEditStatus. */ +export type ReverseShippingDetailsEditStatus = + | "Enabled" + | "Disabled" + | "NotSupported"; +/** Defines values for ReverseTransportPreferenceEditStatus. */ +export type ReverseTransportPreferenceEditStatus = + | "Enabled" + | "Disabled" + | "NotSupported"; /** Defines values for StageStatus. */ export type StageStatus = | "None" @@ -2242,7 +2510,8 @@ export type StageStatus = | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" - | "CustomerActionPerformedForCleanUp"; + | "CustomerActionPerformedForCleanUp" + | "CustomerActionPerformed"; /** Defines values for AddressType. */ export type AddressType = "None" | "Residential" | "Commercial"; /** Defines values for DataAccountType. */ @@ -2266,7 +2535,12 @@ export type DoubleEncryption = "Enabled" | "Disabled"; /** Defines values for KekType. */ export type KekType = "MicrosoftManaged" | "CustomerManaged"; /** Defines values for CustomerResolutionCode. */ -export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume"; +export type CustomerResolutionCode = + | "None" + | "MoveToCleanUpDevice" + | "Resume" + | "Restart" + | "ReachOutToOperation"; /** Defines values for DatacenterAddressType. */ export type DatacenterAddressType = | "DatacenterAddressLocation" @@ -2412,20 +2686,14 @@ export type JobsListCredentialsResponse = UnencryptedCredentialsList; /** Optional parameters. */ export interface JobsListNextOptionalParams - extends coreClient.OperationOptions { - /** $skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type JobsListNextResponse = JobResourceList; /** Optional parameters. */ export interface JobsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** $skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type JobsListByResourceGroupNextResponse = JobResourceList; diff --git a/sdk/databox/arm-databox/src/models/mappers.ts b/sdk/databox/arm-databox/src/models/mappers.ts index a48a105ad0ce..fde8d71ea14a 100644 --- a/sdk/databox/arm-databox/src/models/mappers.ts +++ b/sdk/databox/arm-databox/src/models/mappers.ts @@ -225,20 +225,21 @@ export const CloudError: coreClient.CompositeMapper = { name: "Composite", className: "CloudError", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalErrorInfo" + } + } } }, - target: { - serializedName: "target", + code: { + serializedName: "code", type: { name: "String" } @@ -256,17 +257,16 @@ export const CloudError: coreClient.CompositeMapper = { } } }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + message: { + serializedName: "message", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalErrorInfo" - } - } + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" } } } @@ -278,18 +278,18 @@ export const AdditionalErrorInfo: coreClient.CompositeMapper = { name: "Composite", className: "AdditionalErrorInfo", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, info: { serializedName: "info", type: { name: "Dictionary", value: { type: { name: "any" } } } + }, + type: { + serializedName: "type", + type: { + name: "String" + } } } } @@ -390,6 +390,13 @@ export const JobDetails: coreClient.CompositeMapper = { className: "Preferences" } }, + reverseShippingDetails: { + serializedName: "reverseShippingDetails", + type: { + name: "Composite", + className: "ReverseShippingDetails" + } + }, copyLogDetails: { serializedName: "copyLogDetails", readOnly: true, @@ -417,6 +424,13 @@ export const JobDetails: coreClient.CompositeMapper = { name: "String" } }, + deviceErasureDetails: { + serializedName: "deviceErasureDetails", + type: { + name: "Composite", + className: "DeviceErasureDetails" + } + }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { @@ -438,7 +452,13 @@ export const JobDetails: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["None", "MoveToCleanUpDevice", "Resume"] + allowedValues: [ + "None", + "MoveToCleanUpDevice", + "Resume", + "Restart", + "ReachOutToOperation" + ] } } } @@ -504,7 +524,8 @@ export const JobStages: coreClient.CompositeMapper = { "SucceededWithWarnings", "WaitingForCustomerActionForKek", "WaitingForCustomerActionForCleanUp", - "CustomerActionPerformedForCleanUp" + "CustomerActionPerformedForCleanUp", + "CustomerActionPerformed" ] } }, @@ -1060,12 +1081,32 @@ export const Preferences: coreClient.CompositeMapper = { className: "TransportPreferences" } }, + reverseTransportPreferences: { + serializedName: "reverseTransportPreferences", + type: { + name: "Composite", + className: "TransportPreferences" + } + }, encryptionPreferences: { serializedName: "encryptionPreferences", type: { name: "Composite", className: "EncryptionPreferences" } + }, + storageAccountAccessTierPreferences: { + serializedName: "storageAccountAccessTierPreferences", + type: { + name: "Sequence", + element: { + defaultValue: "Archive", + isConstant: true, + type: { + name: "String" + } + } + } } } } @@ -1083,6 +1124,13 @@ export const TransportPreferences: coreClient.CompositeMapper = { name: "Enum", allowedValues: ["CustomerManaged", "MicrosoftManaged"] } + }, + isUpdated: { + serializedName: "isUpdated", + readOnly: true, + type: { + name: "Boolean" + } } } } @@ -1105,6 +1153,77 @@ export const EncryptionPreferences: coreClient.CompositeMapper = { } }; +export const ReverseShippingDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReverseShippingDetails", + modelProperties: { + contactDetails: { + serializedName: "contactDetails", + type: { + name: "Composite", + className: "ContactInfo" + } + }, + shippingAddress: { + serializedName: "shippingAddress", + type: { + name: "Composite", + className: "ShippingAddress" + } + }, + isUpdated: { + serializedName: "isUpdated", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ContactInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactInfo", + modelProperties: { + contactName: { + constraints: { + MinLength: 1 + }, + serializedName: "contactName", + required: true, + type: { + name: "String" + } + }, + phone: { + constraints: { + MinLength: 1 + }, + serializedName: "phone", + required: true, + type: { + name: "String" + } + }, + phoneExtension: { + serializedName: "phoneExtension", + type: { + name: "String" + } + }, + mobile: { + serializedName: "mobile", + type: { + name: "String" + } + } + } + } +}; + export const CopyLogDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1132,6 +1251,44 @@ export const CopyLogDetails: coreClient.CompositeMapper = { } }; +export const DeviceErasureDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeviceErasureDetails", + modelProperties: { + deviceErasureStatus: { + serializedName: "deviceErasureStatus", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "None", + "InProgress", + "Succeeded", + "Failed", + "Cancelled", + "Cancelling", + "SucceededWithErrors", + "WaitingForCustomerAction", + "SucceededWithWarnings", + "WaitingForCustomerActionForKek", + "WaitingForCustomerActionForCleanUp", + "CustomerActionPerformedForCleanUp", + "CustomerActionPerformed" + ] + } + }, + erasureOrDestructionCertificateSasKey: { + serializedName: "erasureOrDestructionCertificateSasKey", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const KeyEncryptionKey: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1227,7 +1384,13 @@ export const LastMitigationActionOnJob: coreClient.CompositeMapper = { serializedName: "customerResolution", type: { name: "Enum", - allowedValues: ["None", "MoveToCleanUpDevice", "Resume"] + allowedValues: [ + "None", + "MoveToCleanUpDevice", + "Resume", + "Restart", + "ReachOutToOperation" + ] } } } @@ -1484,10 +1647,33 @@ export const MitigateJobRequest: coreClient.CompositeMapper = { modelProperties: { customerResolutionCode: { serializedName: "customerResolutionCode", - required: true, type: { name: "Enum", - allowedValues: ["None", "MoveToCleanUpDevice", "Resume"] + allowedValues: [ + "None", + "MoveToCleanUpDevice", + "Resume", + "Restart", + "ReachOutToOperation" + ] + } + }, + serialNumberCustomerResolutionMap: { + serializedName: "serialNumberCustomerResolutionMap", + type: { + name: "Dictionary", + value: { + type: { + name: "Enum", + allowedValues: [ + "None", + "MoveToCleanUpDevice", + "Resume", + "Restart", + "ReachOutToOperation" + ] + } + } } } } @@ -1699,6 +1885,18 @@ export const SkuInformation: coreClient.CompositeMapper = { type: { name: "String" } + }, + countriesWithinCommerceBoundary: { + serializedName: "properties.countriesWithinCommerceBoundary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -2014,6 +2212,20 @@ export const UpdateJobDetails: coreClient.CompositeMapper = { className: "ShippingAddress" } }, + reverseShippingDetails: { + serializedName: "reverseShippingDetails", + type: { + name: "Composite", + className: "ReverseShippingDetails" + } + }, + preferences: { + serializedName: "preferences", + type: { + name: "Composite", + className: "Preferences" + } + }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { @@ -2605,6 +2817,33 @@ export const ArmBaseObject: coreClient.CompositeMapper = { } }; +export const GranularCopyLogDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GranularCopyLogDetails", + uberParent: "GranularCopyLogDetails", + polymorphicDiscriminator: { + serializedName: "copyLogDetailsType", + clientName: "copyLogDetailsType" + }, + modelProperties: { + copyLogDetailsType: { + serializedName: "copyLogDetailsType", + required: true, + type: { + name: "Enum", + allowedValues: [ + "DataBox", + "DataBoxDisk", + "DataBoxHeavy", + "DataBoxCustomerDisk" + ] + } + } + } + } +}; + export const CopyProgress: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2721,6 +2960,122 @@ export const CopyProgress: coreClient.CompositeMapper = { } }; +export const GranularCopyProgress: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GranularCopyProgress", + modelProperties: { + storageAccountName: { + serializedName: "storageAccountName", + readOnly: true, + type: { + name: "String" + } + }, + transferType: { + serializedName: "transferType", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["ImportToAzure", "ExportFromAzure"] + } + }, + dataAccountType: { + serializedName: "dataAccountType", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["StorageAccount", "ManagedDisk"] + } + }, + accountId: { + serializedName: "accountId", + readOnly: true, + type: { + name: "String" + } + }, + bytesProcessed: { + serializedName: "bytesProcessed", + readOnly: true, + type: { + name: "Number" + } + }, + totalBytesToProcess: { + serializedName: "totalBytesToProcess", + readOnly: true, + type: { + name: "Number" + } + }, + filesProcessed: { + serializedName: "filesProcessed", + readOnly: true, + type: { + name: "Number" + } + }, + totalFilesToProcess: { + serializedName: "totalFilesToProcess", + readOnly: true, + type: { + name: "Number" + } + }, + invalidFilesProcessed: { + serializedName: "invalidFilesProcessed", + readOnly: true, + type: { + name: "Number" + } + }, + invalidFileBytesUploaded: { + serializedName: "invalidFileBytesUploaded", + readOnly: true, + type: { + name: "Number" + } + }, + renamedContainerCount: { + serializedName: "renamedContainerCount", + readOnly: true, + type: { + name: "Number" + } + }, + filesErroredOut: { + serializedName: "filesErroredOut", + readOnly: true, + type: { + name: "Number" + } + }, + directoriesErroredOut: { + serializedName: "directoriesErroredOut", + readOnly: true, + type: { + name: "Number" + } + }, + invalidDirectoriesProcessed: { + serializedName: "invalidDirectoriesProcessed", + readOnly: true, + type: { + name: "Number" + } + }, + isEnumerationInProgress: { + serializedName: "isEnumerationInProgress", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + export const ImportDiskDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3051,6 +3406,32 @@ export const DataBoxDiskJobDetails: coreClient.CompositeMapper = { } } }, + granularCopyProgress: { + serializedName: "granularCopyProgress", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataBoxDiskGranularCopyProgress" + } + } + } + }, + granularCopyLogDetails: { + serializedName: "granularCopyLogDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataBoxDiskGranularCopyLogDetails" + } + } + } + }, disksAndSizeDetails: { serializedName: "disksAndSizeDetails", readOnly: true, @@ -3515,6 +3896,22 @@ export const JobResource: coreClient.CompositeMapper = { name: "Boolean" } }, + reverseShippingDetailsUpdate: { + serializedName: "properties.reverseShippingDetailsUpdate", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled", "NotSupported"] + } + }, + reverseTransportPreferenceUpdate: { + serializedName: "properties.reverseTransportPreferenceUpdate", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled", "NotSupported"] + } + }, isPrepareToShipEnabled: { serializedName: "properties.isPrepareToShipEnabled", readOnly: true, @@ -4138,6 +4535,48 @@ export const HeavyScheduleAvailabilityRequest: coreClient.CompositeMapper = { } }; +export const DataBoxDiskGranularCopyLogDetails: coreClient.CompositeMapper = { + serializedName: "DataBoxCustomerDisk", + type: { + name: "Composite", + className: "DataBoxDiskGranularCopyLogDetails", + uberParent: "GranularCopyLogDetails", + polymorphicDiscriminator: + GranularCopyLogDetails.type.polymorphicDiscriminator, + modelProperties: { + ...GranularCopyLogDetails.type.modelProperties, + serialNumber: { + serializedName: "serialNumber", + readOnly: true, + type: { + name: "String" + } + }, + accountId: { + serializedName: "accountId", + readOnly: true, + type: { + name: "String" + } + }, + errorLogLink: { + serializedName: "errorLogLink", + readOnly: true, + type: { + name: "String" + } + }, + verboseLogLink: { + serializedName: "verboseLogLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const DataBoxCustomerDiskCopyProgress: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4162,6 +4601,60 @@ export const DataBoxCustomerDiskCopyProgress: coreClient.CompositeMapper = { } }; +export const DataBoxDiskGranularCopyProgress: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataBoxDiskGranularCopyProgress", + modelProperties: { + ...GranularCopyProgress.type.modelProperties, + serialNumber: { + serializedName: "serialNumber", + readOnly: true, + type: { + name: "String" + } + }, + copyStatus: { + serializedName: "copyStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const JobsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { JobDetails: JobDetails, DataAccountDetails: DataAccountDetails, @@ -4172,6 +4665,7 @@ export let discriminators = { ValidationRequest: ValidationRequest, JobSecrets: JobSecrets, ScheduleAvailabilityRequest: ScheduleAvailabilityRequest, + GranularCopyLogDetails: GranularCopyLogDetails, "JobDetails.DataBoxCustomerDisk": DataBoxCustomerDiskJobDetails, "JobDetails.DataBoxDisk": DataBoxDiskJobDetails, "JobDetails.DataBoxHeavy": DataBoxHeavyJobDetails, @@ -4203,5 +4697,6 @@ export let discriminators = { "JobSecrets.DataBox": DataboxJobSecrets, "ScheduleAvailabilityRequest.DataBox": DataBoxScheduleAvailabilityRequest, "ScheduleAvailabilityRequest.DataBoxDisk": DiskScheduleAvailabilityRequest, - "ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest + "ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest, + "GranularCopyLogDetails.DataBoxCustomerDisk": DataBoxDiskGranularCopyLogDetails }; diff --git a/sdk/databox/arm-databox/src/models/parameters.ts b/sdk/databox/arm-databox/src/models/parameters.ts index 71e340c9765a..af690a04cab5 100644 --- a/sdk/databox/arm-databox/src/models/parameters.ts +++ b/sdk/databox/arm-databox/src/models/parameters.ts @@ -51,7 +51,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-01-preview", + defaultValue: "2022-10-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/databox/arm-databox/src/operations/jobs.ts b/sdk/databox/arm-databox/src/operations/jobs.ts index cc6eaa9408f4..3faab261a021 100644 --- a/sdk/databox/arm-databox/src/operations/jobs.ts +++ b/sdk/databox/arm-databox/src/operations/jobs.ts @@ -915,7 +915,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApiError } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -935,7 +934,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApiError } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/databox/arm-databox/src/operations/operations.ts b/sdk/databox/arm-databox/src/operations/operations.ts index b231863284ce..4ccc75f11328 100644 --- a/sdk/databox/arm-databox/src/operations/operations.ts +++ b/sdk/databox/arm-databox/src/operations/operations.ts @@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApiError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/databox/arm-databox/src/operations/service.ts b/sdk/databox/arm-databox/src/operations/service.ts index 724d6fb2fb14..904afb6a2a4e 100644 --- a/sdk/databox/arm-databox/src/operations/service.ts +++ b/sdk/databox/arm-databox/src/operations/service.ts @@ -430,7 +430,6 @@ const listAvailableSkusByResourceGroupNextOperationSpec: coreClient.OperationSpe bodyMapper: Mappers.ApiError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, diff --git a/sdk/databox/arm-databox/src/pagingHelper.ts b/sdk/databox/arm-databox/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/databox/arm-databox/src/pagingHelper.ts +++ b/sdk/databox/arm-databox/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/databox/arm-databox/tsconfig.json b/sdk/databox/arm-databox/tsconfig.json index 7f0a11d9ac11..3e6ae96443f3 100644 --- a/sdk/databox/arm-databox/tsconfig.json +++ b/sdk/databox/arm-databox/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-databox": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"