Skip to content

Commit f7e65dd

Browse files
author
SDKAuto
committed
CodeGen from PR 16989 in Azure/azure-rest-api-specs
Merge f8ed9c9124d302e0e7458645c79682165233f351 into 927500222855f07383d48b38596c2ca9835da71b
1 parent e061d99 commit f7e65dd

File tree

12 files changed

+580
-90
lines changed

12 files changed

+580
-90
lines changed

sdk/databox/arm-databox/CHANGELOG.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
# Release History
2+
3+
## 5.0.0 (2022-03-04)
24

3-
## 5.0.0-beta.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 5.0.0-beta.1 (2022-01-12)
14-
15-
The package of @azure/arm-databox is using our next generation design principles since version 5.0.0-beta.1, which contains breaking changes.
5+
The package of @azure/arm-databox is using our next generation design principles since version 5.0.0, which contains breaking changes.
166

177
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
188

sdk/databox/arm-databox/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
66

77
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/databox/arm-databox) |
88
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-databox) |
9-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-databox?view=azure-node-preview) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-databox) |
1010
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
1111

1212
## Getting started

sdk/databox/arm-databox/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "e6a2296d02ec6c4b2c32479198bfbcb9b16ea247",
2+
"commit": "ccfdf6dbdcbfda578b026925f363b3b3232f9cae",
33
"readme": "specification/databox/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/databox/resource-manager/readme.md --use=@autorest/[email protected].20211217.1",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/databox/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20211217.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-databox.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/databox/arm-databox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for DataBoxManagementClient.",
6-
"version": "5.0.0-beta.2",
6+
"version": "1.0.0-beta.1",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -99,4 +99,4 @@
9999
},
100100
"sideEffects": false,
101101
"autoPublish": true
102-
}
102+
}

sdk/databox/arm-databox/review/arm-databox.api.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export type CustomerDiskJobSecrets = JobSecrets & {
177177
};
178178

179179
// @public
180-
export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume";
180+
export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume" | "Restart" | "ReachOutToOperation";
181181

182182
// @public
183183
export interface DataAccountDetails {
@@ -244,13 +244,29 @@ export interface DataBoxDiskCopyProgress {
244244
readonly status?: CopyStatus;
245245
}
246246

247+
// @public
248+
export type DataBoxDiskGranularCopyLogDetails = GranularCopyLogDetails & {
249+
copyLogDetailsType: "DataBoxCustomerDisk";
250+
readonly serialNumber?: string;
251+
readonly accountName?: string;
252+
readonly errorLogLink?: string;
253+
readonly verboseLogLink?: string;
254+
};
255+
256+
// @public
257+
export type DataBoxDiskGranularCopyProgress = GranularCopyProgress & {
258+
readonly serialNumber?: string;
259+
readonly copyStatus?: CopyStatus;
260+
};
261+
247262
// @public
248263
export type DataBoxDiskJobDetails = JobDetails & {
249264
jobDetailsType: "DataBoxDisk";
250265
preferredDisks?: {
251266
[propertyName: string]: number;
252267
};
253268
readonly copyProgress?: DataBoxDiskCopyProgress[];
269+
readonly granularCopyProgress?: DataBoxDiskGranularCopyProgress[];
254270
readonly disksAndSizeDetails?: {
255271
[propertyName: string]: number;
256272
};
@@ -489,6 +505,33 @@ export interface FilterFileDetails {
489505
// @public
490506
export type FilterFileType = "AzureBlob" | "AzureFile";
491507

508+
// @public
509+
export interface GranularCopyLogDetails {
510+
copyLogDetailsType: "DataBoxCustomerDisk";
511+
}
512+
513+
// @public (undocumented)
514+
export type GranularCopyLogDetailsUnion = GranularCopyLogDetails | DataBoxDiskGranularCopyLogDetails;
515+
516+
// @public
517+
export interface GranularCopyProgress {
518+
readonly accountId?: string;
519+
readonly bytesProcessed?: number;
520+
readonly dataAccountType?: DataAccountType;
521+
readonly directoriesErroredOut?: number;
522+
readonly filesErroredOut?: number;
523+
readonly filesProcessed?: number;
524+
readonly invalidDirectoriesProcessed?: number;
525+
readonly invalidFileBytesUploaded?: number;
526+
readonly invalidFilesProcessed?: number;
527+
readonly isEnumerationInProgress?: boolean;
528+
readonly renamedContainerCount?: number;
529+
readonly storageAccountName?: string;
530+
readonly totalBytesToProcess?: number;
531+
readonly totalFilesToProcess?: number;
532+
readonly transferType?: TransferType;
533+
}
534+
492535
// @public
493536
export type HeavyScheduleAvailabilityRequest = ScheduleAvailabilityRequest & {
494537
skuName: "DataBoxHeavy";
@@ -748,12 +791,16 @@ export enum KnownDataCenterCode {
748791
// (undocumented)
749792
BJB = "BJB",
750793
// (undocumented)
794+
BJS20 = "BJS20",
795+
// (undocumented)
751796
BL20 = "BL20",
752797
// (undocumented)
753798
BL7 = "BL7",
754799
// (undocumented)
755800
BN1 = "BN1",
756801
// (undocumented)
802+
BN7 = "BN7",
803+
// (undocumented)
757804
BOM01 = "BOM01",
758805
// (undocumented)
759806
BY1 = "BY1",
@@ -778,6 +825,8 @@ export enum KnownDataCenterCode {
778825
// (undocumented)
779826
DSM05 = "DSM05",
780827
// (undocumented)
828+
DUB07 = "DUB07",
829+
// (undocumented)
781830
FRA22 = "FRA22",
782831
// (undocumented)
783832
HKG20 = "HKG20",
@@ -800,8 +849,16 @@ export enum KnownDataCenterCode {
800849
// (undocumented)
801850
ORK70 = "ORK70",
802851
// (undocumented)
852+
OSA02 = "OSA02",
853+
// (undocumented)
803854
OSA20 = "OSA20",
804855
// (undocumented)
856+
OSA22 = "OSA22",
857+
// (undocumented)
858+
PAR22 = "PAR22",
859+
// (undocumented)
860+
PNQ01 = "PNQ01",
861+
// (undocumented)
805862
PUS20 = "PUS20",
806863
// (undocumented)
807864
SEL20 = "SEL20",
@@ -816,10 +873,14 @@ export enum KnownDataCenterCode {
816873
// (undocumented)
817874
SN5 = "SN5",
818875
// (undocumented)
876+
SN6 = "SN6",
877+
// (undocumented)
819878
SN8 = "SN8",
820879
// (undocumented)
821880
SSE90 = "SSE90",
822881
// (undocumented)
882+
SVG20 = "SVG20",
883+
// (undocumented)
823884
SYD03 = "SYD03",
824885
// (undocumented)
825886
SYD23 = "SYD23",
@@ -983,6 +1044,7 @@ export interface PackageShippingDetails {
9831044
export interface Preferences {
9841045
encryptionPreferences?: EncryptionPreferences;
9851046
preferredDataCenterRegion?: string[];
1047+
storageAccountAccessTierPreferences?: string[];
9861048
transportPreferences?: TransportPreferences;
9871049
}
9881050

@@ -1204,7 +1266,7 @@ export type SkuName = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "DataBoxCusto
12041266
export type StageName = string;
12051267

12061268
// @public
1207-
export type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp";
1269+
export type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp" | "CustomerActionPerformed";
12081270

12091271
// @public
12101272
export type StorageAccountDetails = DataAccountDetails & {

sdk/databox/arm-databox/src/dataBoxManagementClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class DataBoxManagementClient extends coreClient.ServiceClient {
5050
credential: credentials
5151
};
5252

53-
const packageDetails = `azsdk-js-arm-databox/5.0.0-beta.1`;
53+
const packageDetails = `azsdk-js-arm-databox/5.0.0`;
5454
const userAgentPrefix =
5555
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5656
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -73,7 +73,7 @@ export class DataBoxManagementClient extends coreClient.ServiceClient {
7373

7474
// Assigning values to Constant parameters
7575
this.$host = options.$host || "https://management.azure.com";
76-
this.apiVersion = options.apiVersion || "2021-08-01-preview";
76+
this.apiVersion = options.apiVersion || "2021-12-01";
7777
this.operations = new OperationsImpl(this);
7878
this.jobs = new JobsImpl(this);
7979
this.service = new ServiceImpl(this);

0 commit comments

Comments
 (0)