Skip to content

Commit 52d6213

Browse files
authored
[Storage] Follow TSDoc (Azure#13863)
* [Storage] Follow TSDoc * Add back docs for AccessPolicy to avoid changing api file
1 parent 7a7c173 commit 52d6213

File tree

198 files changed

+302
-6927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+302
-6927
lines changed

sdk/storage/storage-blob-changefeed/src/AvroReaderFactory.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import { AvroReadable, AvroReader } from "../../storage-internal-avro/src";
55

66
/**
77
* Creates AvroReaders. Allows us to inject mock AvroReaders in the Chunk unit tests.
8-
*
9-
* @export
10-
* @class AvroReaderFactory
118
*/
129
export class AvroReaderFactory {
1310
public create(headerAndDataStream: AvroReadable): AvroReader;

sdk/storage/storage-blob-changefeed/src/BlobChangeFeedClient.ts

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,15 @@ import { TokenCredential } from "@azure/core-http";
1818

1919
/**
2020
* Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.
21-
*
22-
* @export
23-
* @class BlobChangeFeedEventPage
2421
*/
2522
export class BlobChangeFeedEventPage {
2623
/**
2724
* Array of {@link BlobChangeFeedEvent}.
28-
*
29-
* @type {BlobChangeFeedEvent[]}
30-
* @memberof BlobChangeFeedEventPage
3125
*/
3226
public events: BlobChangeFeedEvent[];
3327

3428
/**
3529
* The token that keeps track of where to continue the iterator.
36-
*
37-
* @type {string}
38-
* @memberof BlobChangeFeedEventPage
3930
*/
4031
public continuationToken: string;
4132

@@ -48,8 +39,7 @@ export class BlobChangeFeedEventPage {
4839
/**
4940
* Creates a new Pipeline object with Credential provided.
5041
*
51-
* @export
52-
* @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the @azure/identity package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
42+
* @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
5343
* @param pipelineOptions - Optional. Options.
5444
* @returns A new Pipeline object.
5545
*/
@@ -80,17 +70,10 @@ function appendUserAgentPrefix(options?: StoragePipelineOptions): StoragePipelin
8070
/**
8171
* BlobChangeFeedClient.
8272
* @see https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal
83-
*
84-
* @export
85-
* @class BlobChangeFeedClient
8673
*/
8774
export class BlobChangeFeedClient {
8875
/**
89-
* blobServiceClient provided by @azure/storage-blob package.
90-
*
91-
* @private
92-
* @type {BlobServiceClient}
93-
* @memberof BlobChangeFeedClient
76+
* blobServiceClient provided by `@azure/storage-blob` package.
9477
*/
9578
private blobServiceClient: BlobServiceClient;
9679
private changeFeedFactory: ChangeFeedFactory;
@@ -106,7 +89,6 @@ export class BlobChangeFeedClient {
10689
* SAS connection string example -
10790
* `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
10891
* @param options - Optional. Options to configure the HTTP pipeline.
109-
* @memberof BlobChangeFeedClient
11092
*/
11193
public static fromConnectionString(
11294
connectionString: string,
@@ -126,9 +108,8 @@ export class BlobChangeFeedClient {
126108
* @param url - A Client string pointing to Azure Storage blob service, such as
127109
* "https://myaccount.blob.core.windows.net". You can append a SAS
128110
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
129-
* @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the @azure/identity package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
111+
* @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
130112
* @param options - Optional. Options to configure the HTTP pipeline.
131-
* @memberof BlobChangeFeedClient
132113
*
133114
* Example using DefaultAzureCredential from `@azure/identity`:
134115
*
@@ -169,7 +150,6 @@ export class BlobChangeFeedClient {
169150
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
170151
* @param pipeline - Call newPipeline() to create a default
171152
* pipeline, or provide a customized pipeline.
172-
* @memberof BlobChangeFeedClient
173153
*/
174154
constructor(url: string, pipeline: Pipeline);
175155
constructor(
@@ -324,27 +304,26 @@ export class BlobChangeFeedClient {
324304
*
325305
* @param options - Options to list change feed events.
326306
* @returns An asyncIterableIterator that supports paging.
327-
* @memberof BlobChangeFeedClient
328307
*/
329308
public listChanges(
330309
options: BlobChangeFeedListChangesOptions = {}
331310
): PagedAsyncIterableIterator<BlobChangeFeedEvent, BlobChangeFeedEventPage> {
332311
const iter = this.getChange(options);
333312
return {
334313
/**
335-
* @member {Promise} [next] The next method, part of the iteration protocol
314+
* The next method, part of the iteration protocol
336315
*/
337316
async next() {
338317
return iter.next();
339318
},
340319
/**
341-
* @member {Symbol} [asyncIterator] The connection to the async iterator, part of the iteration protocol
320+
* The connection to the async iterator, part of the iteration protocol
342321
*/
343322
[Symbol.asyncIterator]() {
344323
return this;
345324
},
346325
/**
347-
* @member {Function} [byPage] Return an AsyncIterableIterator that works a page at a time
326+
* Return an AsyncIterableIterator that works a page at a time
348327
*/
349328
byPage: (settings: PageSettings = {}) => {
350329
return this.getPage(settings.continuationToken, settings.maxPageSize, options);

sdk/storage/storage-blob-changefeed/src/ChangeFeed.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,18 @@ import { CanonicalCode } from "@opentelemetry/api";
1313

1414
/**
1515
* Options to configure {@link ChangeFeed.getChange} operation.
16-
*
17-
* @export
18-
* @interface ChangeFeedGetChangeOptions
1916
*/
2017
export interface ChangeFeedGetChangeOptions extends CommonOptions {
2118
/**
2219
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
2320
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
24-
*
25-
* @type {AbortSignalLike}
26-
* @memberof ChangeFeedGetChangeOptions
2721
*/
2822
abortSignal?: AbortSignalLike;
2923
}
3024

3125
export class ChangeFeed {
3226
/**
3327
* BlobContainerClient for making List Blob requests and creating Segments.
34-
*
35-
* @private
36-
* @type {ContainerClient}
37-
* @memberof ChangeFeed
3828
*/
3929
private readonly containerClient?: ContainerClient;
4030

sdk/storage/storage-blob-changefeed/src/Chunk.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@ import { AvroParseOptions } from "../../storage-internal-avro/src/AvroReader";
99

1010
/**
1111
* Options to configure {@link Chunk.getChange} operation.
12-
*
13-
* @export
14-
* @interface ChunkGetChangeOptions
1512
*/
1613
export interface ChunkGetChangeOptions extends CommonOptions {
1714
/**
1815
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
1916
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
20-
*
21-
* @type {AbortSignalLike}
22-
* @memberof ChunkGetChangeOptions
2317
*/
2418
abortSignal?: AbortSignalLike;
2519
}

sdk/storage/storage-blob-changefeed/src/ChunkFactory.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,11 @@ import { CHANGE_FEED_CHUNK_BLOCK_DOWNLOAD_SIZE } from "./utils/constants";
1212

1313
/**
1414
* Options to configure {@link ChunkFactory.create} operation.
15-
*
16-
* @export
17-
* @interface CreateChunkOptions
1815
*/
1916
export interface CreateChunkOptions extends CommonOptions {
2017
/**
2118
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
2219
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
23-
*
24-
* @type {AbortSignalLike}
25-
* @memberof CreateChunkOptions
2620
*/
2721
abortSignal?: AbortSignalLike;
2822
}

sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStream.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export interface LazyLoadingBlobStreamOptions extends ReadableOptions, CommonOpt
1414
/**
1515
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
1616
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
17-
*
18-
* @type {AbortSignalLike}
19-
* @memberof LazyLoadingBlobStreamOptions
2017
*/
2118
abortSignal?: AbortSignalLike;
2219
}
@@ -25,35 +22,21 @@ interface LazyLoadingBlobStreamDownloadBlockOptions extends CommonOptions {
2522
/**
2623
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
2724
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
28-
*
29-
* @type {AbortSignalLike}
30-
* @memberof LazyLoadingBlobStreamDownloadBlockOptions
3125
*/
3226
abortSignal?: AbortSignalLike;
3327
}
3428

3529
/**
3630
* This class generates a readable stream from a blobClient's data.
37-
*
38-
* @export
39-
* @class LazyLoadingBlobStream
4031
*/
4132
export class LazyLoadingBlobStream extends Readable {
4233
/**
4334
* BlobClient to make download calls with.
44-
*
45-
* @private
46-
* @type {BlobClient}
47-
* @memberof LazyLoadingBlobStream
4835
*/
4936
private readonly blobClient: BlobClient;
5037

5138
/**
5239
* The offset within the blob of the next block we will download.
53-
*
54-
* @private
55-
* @type {number}
56-
* @memberof LazyLoadingBlobStream
5740
*/
5841
private offset: number;
5942

@@ -71,7 +54,6 @@ export class LazyLoadingBlobStream extends Readable {
7154
* Creates an instance of LazyLoadingBlobStream.
7255
*
7356
* @param byteLength - The total length of data contained in the buffers
74-
* @memberof LazyLoadingBlobStream
7557
*/
7658
constructor(
7759
blobClient: BlobClient,
@@ -130,7 +112,6 @@ export class LazyLoadingBlobStream extends Readable {
130112
* Internal _read() that will be called when the stream wants to pull more data in.
131113
*
132114
* @param size - Optional. The size of data to be read
133-
* @memberof LazyLoadingBlobStream
134115
*/
135116
public async _read(size?: number) {
136117
const { span, spanOptions } = createSpan(

sdk/storage/storage-blob-changefeed/src/Segment.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@ import { CanonicalCode } from "@opentelemetry/api";
1111

1212
/**
1313
* Options to configure {@link Segment.getChange} operation.
14-
*
15-
* @export
16-
* @interface SegmentGetChangeOptions
1714
*/
1815
export interface SegmentGetChangeOptions extends CommonOptions {
1916
/**
2017
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
2118
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
22-
*
23-
* @type {AbortSignalLike}
24-
* @memberof SegmentGetChangeOptions
2519
*/
2620
abortSignal?: AbortSignalLike;
2721
}

sdk/storage/storage-blob-changefeed/src/SegmentFactory.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,11 @@ export interface SegmentManifest {
2424

2525
/**
2626
* Options to configure {@link SegmentFactory.create} operation.
27-
*
28-
* @export
29-
* @interface CreateSegmentOptions
3027
*/
3128
export interface CreateSegmentOptions extends CommonOptions {
3229
/**
3330
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
3431
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
35-
*
36-
* @type {AbortSignalLike}
37-
* @memberof CreateSegmentOptions
3832
*/
3933
abortSignal?: AbortSignalLike;
4034
}

sdk/storage/storage-blob-changefeed/src/Shard.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,11 @@ import { CanonicalCode } from "@opentelemetry/api";
1212

1313
/**
1414
* Options to configure {@link Shard.getChange} operation.
15-
*
16-
* @export
17-
* @interface ShardGetChangeOptions
1815
*/
1916
export interface ShardGetChangeOptions extends CommonOptions {
2017
/**
2118
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
2219
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
23-
*
24-
* @type {AbortSignalLike}
25-
* @memberof ShardGetChangeOptions
2620
*/
2721
abortSignal?: AbortSignalLike;
2822
}

sdk/storage/storage-blob-changefeed/src/ShardFactory.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,11 @@ import { createSpan } from "./utils/tracing";
1212

1313
/**
1414
* Options to configure {@link ShardFactory.create} operation.
15-
*
16-
* @export
17-
* @interface CreateShardOptions
1815
*/
1916
export interface CreateShardOptions extends CommonOptions {
2017
/**
2118
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
2219
* For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
23-
*
24-
* @type {AbortSignalLike}
25-
* @memberof CreateShardOptions
2620
*/
2721
abortSignal?: AbortSignalLike;
2822
}

0 commit comments

Comments
 (0)