diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md index 10cd40b30e3a..a1086c589ba3 100644 --- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md +++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md @@ -45,9 +45,9 @@ export interface AccessControlChangeCounters { } // @public -export interface AccessControlChangeFailure { - errorMessage: string; +export interface AccessControlChangeError { isDirectory: boolean; + message: string; name: string; } @@ -55,7 +55,7 @@ export interface AccessControlChangeFailure { export interface AccessControlChanges { aggregateCounters: AccessControlChangeCounters; batchCounters: AccessControlChangeCounters; - batchFailures: AccessControlChangeFailure[]; + batchFailures: AccessControlChangeError[]; continuationToken?: string; } diff --git a/sdk/storage/storage-file-datalake/src/models.ts b/sdk/storage/storage-file-datalake/src/models.ts index e6314e80e12e..6ac921b681c9 100644 --- a/sdk/storage/storage-file-datalake/src/models.ts +++ b/sdk/storage/storage-file-datalake/src/models.ts @@ -587,7 +587,7 @@ export interface PathChangeAccessControlRecursiveOptions extends CommonOptions { * @export * @interface AccessControlChangeFailure */ -export interface AccessControlChangeFailure { +export interface AccessControlChangeError { /** * Returns name of an entry. * @@ -608,7 +608,7 @@ export interface AccessControlChangeFailure { * @type {string} * @memberof AccessControlChangeFailure */ - errorMessage: string; + message: string; } /** @@ -622,10 +622,10 @@ export interface AccessControlChanges { /** * Path entries that failed to update Access Control List within single batch. * - * @type {AccessControlChangeFailure[]} + * @type {AccessControlChangeError[]} * @memberof AccessControlChanges */ - batchFailures: AccessControlChangeFailure[]; + batchFailures: AccessControlChangeError[]; /** * Counts of paths changed within single batch. * diff --git a/sdk/storage/storage-file-datalake/src/transforms.ts b/sdk/storage/storage-file-datalake/src/transforms.ts index 780e03fb6b56..d2ce75618b37 100644 --- a/sdk/storage/storage-file-datalake/src/transforms.ts +++ b/sdk/storage/storage-file-datalake/src/transforms.ts @@ -6,7 +6,7 @@ import { ContainerItem, PublicAccessType as ContainerPublicAccessType } from "@a import { AclFailedEntry, PathGetPropertiesResponse } from "./generated/src/models"; import { - AccessControlChangeFailure, + AccessControlChangeError, FileSystemItem, Metadata, PathAccessControlItem, @@ -443,12 +443,12 @@ export function toPermissionsString(permissions: PathPermissions): string { export function toAccessControlChangeFailureArray( aclFailedEntry: AclFailedEntry[] = [] -): AccessControlChangeFailure[] { +): AccessControlChangeError[] { return aclFailedEntry.map((aclFailedEntry: AclFailedEntry) => { return { name: aclFailedEntry.name || "", isDirectory: (aclFailedEntry.type || "").toLowerCase() === "directory", - errorMessage: aclFailedEntry.errorMessage || "" + message: aclFailedEntry.errorMessage || "" }; }); }