Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[storage][stg74] share lease #11450

Closed
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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