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 b0efd3620da3..e4a70baf548c 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 bddf7b771b8b..2edde72320d0 100644 --- a/sdk/storage/storage-file-datalake/src/models.ts +++ b/sdk/storage/storage-file-datalake/src/models.ts @@ -594,7 +594,7 @@ export interface PathChangeAccessControlRecursiveOptions extends CommonOptions { * @export * @interface AccessControlChangeFailure */ -export interface AccessControlChangeFailure { +export interface AccessControlChangeError { /** * Returns name of an entry. * @@ -615,7 +615,7 @@ export interface AccessControlChangeFailure { * @type {string} * @memberof AccessControlChangeFailure */ - errorMessage: string; + message: string; } /** @@ -629,10 +629,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 || "" }; }); }