Skip to content

Commit

Permalink
move share, dirctory and file clients to the same file
Browse files Browse the repository at this point in the history
  • Loading branch information
ljian3377 committed Sep 24, 2020
1 parent 278efc5 commit c5d9249
Show file tree
Hide file tree
Showing 10 changed files with 5,926 additions and 5,674 deletions.
13 changes: 12 additions & 1 deletion sdk/storage/storage-file-share/review/storage-file-share.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ export interface LeaseOperationResponseHeaders {
etag?: string;
lastModified?: Date;
leaseId?: string;
leaseTime?: number;
requestId?: string;
version?: string;
}
Expand Down Expand Up @@ -1330,6 +1331,7 @@ export class ShareClient extends StorageClient {
getDirectoryClient(directoryName: string): ShareDirectoryClient;
getPermission(filePermissionKey: string, options?: ShareGetPermissionOptions): Promise<ShareGetPermissionResponse>;
getProperties(options?: ShareGetPropertiesOptions): Promise<ShareGetPropertiesResponse>;
getShareLeaseClient(proposeLeaseId?: string): ShareLeaseClient;
getStatistics(options?: ShareGetStatisticsOptions): Promise<ShareGetStatisticsResponse>;
get name(): string;
get rootDirectoryClient(): ShareDirectoryClient;
Expand Down Expand Up @@ -1438,6 +1440,7 @@ export interface ShareDeleteIfExistsResponse extends ShareDeleteResponse {
export interface ShareDeleteMethodOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
deleteSnapshots?: DeleteSnapshotsOptionType;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand Down Expand Up @@ -1487,6 +1490,7 @@ export class ShareDirectoryClient extends StorageClient {
// @public
export interface ShareExistsOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand Down Expand Up @@ -1540,6 +1544,7 @@ export interface ShareGetAccessPolicyHeaders {
// @public
export interface ShareGetAccessPolicyOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public (undocumented)
Expand Down Expand Up @@ -1602,6 +1607,7 @@ export interface ShareGetPropertiesHeaders {
// @public
export interface ShareGetPropertiesOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand All @@ -1625,6 +1631,7 @@ export interface ShareGetStatisticsHeaders {
// @public
export interface ShareGetStatisticsOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand Down Expand Up @@ -1661,12 +1668,13 @@ export interface ShareItem {

// @public
export class ShareLeaseClient {
constructor(client: ShareFileClient, leaseId?: string);
constructor(client: ShareFileClient | ShareClient, leaseId?: string);
acquireLease(duration?: number, options?: LeaseOperationOptions): Promise<LeaseOperationResponse>;
breakLease(options?: LeaseOperationOptions): Promise<LeaseOperationResponse>;
changeLease(proposedLeaseId: string, options?: LeaseOperationOptions): Promise<LeaseOperationResponse>;
get leaseId(): string;
releaseLease(options?: LeaseOperationOptions): Promise<LeaseOperationResponse>;
renewLease(options?: LeaseOperationOptions): Promise<LeaseOperationResponse>;
get url(): string;
}

Expand Down Expand Up @@ -1747,6 +1755,7 @@ export interface ShareSetAccessPolicyHeaders {
// @public
export interface ShareSetAccessPolicyOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand All @@ -1770,6 +1779,7 @@ export interface ShareSetMetadataHeaders {
// @public
export interface ShareSetMetadataOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand All @@ -1793,6 +1803,7 @@ export interface ShareSetQuotaHeaders {
// @public
export interface ShareSetQuotaOptions extends CommonOptions {
abortSignal?: AbortSignalLike;
leaseAccessConditions?: LeaseAccessConditions;
}

// @public
Expand Down
Loading

0 comments on commit c5d9249

Please sign in to comment.