Skip to content

Commit 16e6f4d

Browse files
committed
Resolve comments
1 parent 688b5db commit 16e6f4d

File tree

21 files changed

+81
-153
lines changed

21 files changed

+81
-153
lines changed

sdk/storage/storage-blob/src/index-browser.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ export {
6767
storageBrowserPolicy,
6868
storageRetryPolicy,
6969
storageCorrectContentLengthPolicy,
70+
UserDelegationKey,
7071
} from "@azure/storage-common";

sdk/storage/storage-file-datalake/src/index-browser.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export {
4040
BlobServiceProperties as DataLakeServiceProperties,
4141
ServiceGetPropertiesResponse as DataLakeServiceGetPropertiesResponse,
4242
} from "@azure/storage-blob";
43+
export { UserDelegationKey } from "@azure/storage-common";
4344
export { CommonOptions } from "./StorageClient.js";
4445
export { ToBlobEndpointHostMappings, ToDfsEndpointHostMappings } from "./utils/constants.js";
4546
export { RestError } from "@azure/core-rest-pipeline";

sdk/storage/storage-file-share/review/storage-file-share-browser.api.diff.md

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ For the complete API surface, see the corresponding -node.api.md file.
143143
export interface DirectoryProperties extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions {
144144
abortSignal?: AbortSignalLike;
145145
}
146-
@@ -446,33 +405,8 @@
146+
@@ -446,32 +405,8 @@
147147

148148
// @public
149149
export type FileAbortCopyResponse = WithResponse<FileAbortCopyHeaders, FileAbortCopyHeaders>;
@@ -156,7 +156,6 @@ For the complete API surface, see the corresponding -node.api.md file.
156156
- filePermission?: string | FilePermissionInheritType;
157157
- filePermissionFormat?: FilePermissionFormat;
158158
- filePermissionKey?: string;
159-
- filePropertySemantics?: FilePropertySemantics;
160159
- lastWriteTime?: Date | TimeNowType;
161160
- posixProperties?: FilePosixProperties;
162161
-}
@@ -177,7 +176,7 @@ For the complete API surface, see the corresponding -node.api.md file.
177176
export type FileAttributesPreserveType = "preserve";
178177

179178
// @public
180-
@@ -536,9 +470,10 @@
179+
@@ -535,9 +470,10 @@
181180

182181
// @public
183182
export interface FileCreateOptions extends FileAndDirectoryCreateCommonOptions, CommonOptions {
@@ -187,9 +186,9 @@ For the complete API surface, see the corresponding -node.api.md file.
187186
+ fileHttpHeaders?: FileHttpHeaders_2;
188187
leaseAccessConditions?: LeaseAccessConditions;
189188
metadata?: Metadata;
190-
onProgress?: (progress: TransferProgressEvent) => void;
191189
}
192-
@@ -697,8 +632,9 @@
190+
191+
@@ -695,8 +631,9 @@
193192
export type FileForceCloseHandlesResponse = WithResponse<CloseHandlesInfo & FileCloseHandlesHeaders, FileForceCloseHandlesHeaders>;
194193

195194
// @public
@@ -199,7 +198,7 @@ For the complete API surface, see the corresponding -node.api.md file.
199198
}
200199

201200
// @public
202-
@@ -794,18 +730,8 @@
201+
@@ -792,18 +729,8 @@
203202

204203
// @public
205204
export type FileGetSymbolicLinkResponse = WithResponse<FileGetSymbolicLinkHeaders, FileGetSymbolicLinkHeaders>;
@@ -218,7 +217,7 @@ For the complete API surface, see the corresponding -node.api.md file.
218217
export interface FileItem {
219218
// (undocumented)
220219
attributes?: string;
221-
@@ -847,9 +773,9 @@
220+
@@ -845,9 +772,9 @@
222221
// @public
223222
export interface FileParallelUploadOptions extends CommonOptions {
224223
abortSignal?: AbortSignalLike;
@@ -229,7 +228,7 @@ For the complete API surface, see the corresponding -node.api.md file.
229228
metadata?: Metadata;
230229
onProgress?: (progress: TransferProgressEvent) => void;
231230
rangeSize?: number;
232-
@@ -863,21 +789,12 @@
231+
@@ -861,21 +788,12 @@
233232

234233
// @public
235234
export type FilePermissionPreserveType = "preserve";
@@ -252,7 +251,7 @@ For the complete API surface, see the corresponding -node.api.md file.
252251
}
253252

254253
// @public
255-
@@ -950,37 +867,8 @@
254+
@@ -945,37 +863,8 @@
256255
fileItems: FileItem[];
257256
}
258257

@@ -290,7 +289,7 @@ For the complete API surface, see the corresponding -node.api.md file.
290289
cors?: CorsRule[];
291290
hourMetrics?: Metrics;
292291
minuteMetrics?: Metrics;
293-
@@ -1147,27 +1035,15 @@
292+
@@ -1142,27 +1031,15 @@
294293

295294
// @public
296295
export interface FileUploadStreamOptions extends CommonOptions {
@@ -319,7 +318,7 @@ For the complete API surface, see the corresponding -node.api.md file.
319318
// (undocumented)
320319
accessRightList?: ShareFileHandleAccessRights[];
321320
clientIp: string;
322-
@@ -1186,18 +1062,12 @@
321+
@@ -1181,18 +1058,12 @@
323322
scheme: string;
324323
value: string;
325324
}
@@ -340,7 +339,7 @@ For the complete API surface, see the corresponding -node.api.md file.
340339
}
341340

342341
// @public
343-
@@ -1312,14 +1182,8 @@
342+
@@ -1307,14 +1178,8 @@
344343

345344
// @public
346345
export const logger: AzureLogger;
@@ -355,7 +354,7 @@ For the complete API surface, see the corresponding -node.api.md file.
355354
export interface Metrics {
356355
enabled: boolean;
357356
includeAPIs?: boolean;
358-
@@ -1333,23 +1197,15 @@
357+
@@ -1328,23 +1193,15 @@
359358
// @public
360359
export function newPipeline(credential?: Credential_2 | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
361360

@@ -381,7 +380,7 @@ For the complete API surface, see the corresponding -node.api.md file.
381380
export function parseOctalFileMode(input?: string): NfsFileMode | undefined;
382381

383382
// @public
384-
@@ -1379,15 +1235,8 @@
383+
@@ -1374,15 +1231,8 @@
385384
shareTokenIntent?: ShareTokenIntent;
386385
}
387386

@@ -397,7 +396,7 @@ For the complete API surface, see the corresponding -node.api.md file.
397396
count?: number;
398397
offset: number;
399398
}
400-
@@ -1404,15 +1253,8 @@
399+
@@ -1399,15 +1249,8 @@
401400
blobBody?: Promise<Blob>;
402401
readableStreamBody?: NodeJS.ReadableStream;
403402
};
@@ -413,7 +412,7 @@ For the complete API surface, see the corresponding -node.api.md file.
413412
export interface ResponseLike {
414413
_response: HttpResponse;
415414
}
416-
@@ -1447,37 +1289,8 @@
415+
@@ -1442,37 +1285,8 @@
417416
start: string;
418417
}
419418

@@ -451,7 +450,7 @@ For the complete API surface, see the corresponding -node.api.md file.
451450
httpClient?: RequestPolicy;
452451
requestPolicyFactories?: RequestPolicyFactory[] | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);
453452
}
454-
@@ -1654,8 +1467,9 @@
453+
@@ -1649,8 +1463,9 @@
455454
};
456455
paidBurstingEnabled?: boolean;
457456
paidBurstingMaxBandwidthMibps?: number;
@@ -461,7 +460,7 @@ For the complete API surface, see the corresponding -node.api.md file.
461460
quota?: number;
462461
rootSquash?: ShareRootSquash;
463462
shareProvisionedBandwidthMibps?: number;
464-
@@ -1810,16 +1624,16 @@
463+
@@ -1805,16 +1620,16 @@
465464
destinationFileClient: ShareFileClient;
466465
fileRenameResponse: FileRenameResponse;
467466
}>;
@@ -480,7 +479,7 @@ For the complete API surface, see the corresponding -node.api.md file.
480479
uploadResetableStream(streamFactory: (offset: number, count?: number) => NodeJS.ReadableStream, size: number, options?: FileParallelUploadOptions): Promise<void>;
481480
uploadSeekableBlob(blobFactory: (offset: number, size: number) => Blob, size: number, options?: FileParallelUploadOptions): Promise<void>;
482481
uploadStream(stream: Readable, size: number, bufferSize: number, maxBuffers: number, options?: FileUploadStreamOptions): Promise<void>;
483-
@@ -1838,8 +1652,9 @@
482+
@@ -1833,8 +1648,9 @@
484483
}
485484

486485
// @public
@@ -490,7 +489,7 @@ For the complete API surface, see the corresponding -node.api.md file.
490489
}
491490

492491
// @public
493-
@@ -2073,14 +1888,8 @@
492+
@@ -2065,14 +1881,8 @@
494493
rootSquash?: ShareRootSquash;
495494
}
496495

@@ -505,7 +504,7 @@ For the complete API surface, see the corresponding -node.api.md file.
505504
nfs?: ShareNfsSettings;
506505
smb?: ShareSmbSettings;
507506
}
508-
@@ -2088,19 +1897,8 @@
507+
@@ -2080,19 +1890,8 @@
509508
// @public
510509
export type ShareRootSquash = "NoRootSquash" | "RootSquash" | "AllSquash";
511510

@@ -525,7 +524,7 @@ For the complete API surface, see the corresponding -node.api.md file.
525524
constructor(url: string, credential?: Credential_2 | TokenCredential, options?: ShareClientOptions);
526525
constructor(url: string, pipeline: Pipeline, options?: ShareClientConfig);
527526
createShare(shareName: string, options?: ShareCreateOptions): Promise<{
528-
@@ -2108,8 +1906,9 @@
527+
@@ -2100,8 +1899,9 @@
529528
shareClient: ShareClient;
530529
}>;
531530
deleteShare(shareName: string, options?: ShareDeleteMethodOptions): Promise<ShareDeleteResponse>;
@@ -535,7 +534,7 @@ For the complete API surface, see the corresponding -node.api.md file.
535534
generateSasStringToSign(expiresOn?: Date, permissions?: AccountSASPermissions, resourceTypes?: string, options?: ServiceGenerateAccountSasUrlOptions): string;
536535
getProperties(options?: ServiceGetPropertiesOptions): Promise<ServiceGetPropertiesResponse>;
537536
getShareClient(shareName: string): ShareClient;
538-
@@ -2253,16 +2052,8 @@
537+
@@ -2245,16 +2045,8 @@
539538

540539
export { StorageBrowserPolicyFactory }
541540

@@ -552,7 +551,7 @@ For the complete API surface, see the corresponding -node.api.md file.
552551
audience?: string;
553552
httpClient?: RequestPolicy;
554553
keepAliveOptions?: KeepAliveOptions;
555-
@@ -2278,12 +2069,8 @@
554+
@@ -2270,12 +2062,8 @@
556555
export { StorageRetryPolicyFactory }
557556

558557
export { StorageRetryPolicyType }
@@ -565,7 +564,7 @@ For the complete API surface, see the corresponding -node.api.md file.
565564
export type TimeNowType = "now";
566565

567566
// @public
568-
@@ -2305,10 +2092,8 @@
567+
@@ -2299,10 +2087,8 @@
569568
signedVersion: string;
570569
value: string;
571570
}

sdk/storage/storage-file-share/review/storage-file-share-node.api.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ export interface FileAndDirectoryCreateCommonOptions {
455455
filePermission?: string | FilePermissionInheritType;
456456
filePermissionFormat?: FilePermissionFormat;
457457
filePermissionKey?: string;
458-
filePropertySemantics?: FilePropertySemantics;
459458
lastWriteTime?: Date | TimeNowType;
460459
posixProperties?: FilePosixProperties;
461460
}
@@ -540,7 +539,6 @@ export interface FileCreateOptions extends FileAndDirectoryCreateCommonOptions,
540539
fileHttpHeaders?: FileHttpHeaders;
541540
leaseAccessConditions?: LeaseAccessConditions;
542541
metadata?: Metadata;
543-
onProgress?: (progress: TransferProgressEvent) => void;
544542
}
545543

546544
// @public
@@ -897,9 +895,6 @@ export interface FileProperty {
897895
lastWriteTime?: Date;
898896
}
899897

900-
// @public
901-
export type FilePropertySemantics = string;
902-
903898
// @public
904899
export interface FileRenameHeaders {
905900
date?: Date;
@@ -1887,7 +1882,6 @@ export interface ShareGetPropertiesHeaders {
18871882
accessTierTransitionState?: string;
18881883
date?: Date;
18891884
enabledProtocols?: string;
1890-
enableSmbDirectoryLease?: boolean;
18911885
enableSnapshotVirtualDirectoryAccess?: boolean;
18921886
errorCode?: string;
18931887
etag?: string;
@@ -2031,8 +2025,6 @@ export interface SharePropertiesInternal {
20312025
// (undocumented)
20322026
enabledProtocols?: string;
20332027
// (undocumented)
2034-
enableSmbDirectoryLease?: boolean;
2035-
// (undocumented)
20362028
enableSnapshotVirtualDirectoryAccess?: boolean;
20372029
// (undocumented)
20382030
etag: string;
@@ -2295,6 +2287,8 @@ export function toOctalFileMode(input?: NfsFileMode): string | undefined;
22952287
// @public
22962288
export function toSymbolicFileMode(input?: NfsFileMode): string | undefined;
22972289

2290+
export { UserDelegationKey }
2291+
22982292
// @public
22992293
export interface UserDelegationKeyModel {
23002294
signedExpiry: Date;

sdk/storage/storage-file-share/src/Clients.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3088,11 +3088,6 @@ export interface FileCreateOptions extends FileAndDirectoryCreateCommonOptions,
30883088
* Lease access conditions.
30893089
*/
30903090
leaseAccessConditions?: LeaseAccessConditions;
3091-
3092-
/**
3093-
* Progress updating event handler.
3094-
*/
3095-
onProgress?: (progress: TransferProgressEvent) => void;
30963091
}
30973092

30983093
export interface FileProperties extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions {
@@ -4106,9 +4101,6 @@ export class ShareFileClient extends StorageClient {
41064101
group: updatedOptions.posixProperties?.group,
41074102
fileMode: toOctalFileMode(updatedOptions.posixProperties?.fileMode),
41084103
nfsFileType: updatedOptions.posixProperties?.fileType,
4109-
requestOptions: {
4110-
onUploadProgress: updatedOptions.onProgress,
4111-
},
41124104
...this.shareClientConfig,
41134105
});
41144106

sdk/storage/storage-file-share/src/generated/src/models/index.ts

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/storage-file-share/src/generated/src/models/mappers.ts

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/storage-file-share/src/generated/src/models/parameters.ts

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)