Skip to content

Commit 350612d

Browse files
authored
[Storage] Update param, returns tags to follow TSDoc (Azure#13721)
* [Storage] Update param, returns tags to follow TSDoc * Fix the space next to returns
1 parent c80a2a4 commit 350612d

File tree

158 files changed

+2235
-2095
lines changed

Some content is hidden

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

158 files changed

+2235
-2095
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ export class BlobChangeFeedEventPage {
4949
* Creates a new Pipeline object with Credential provided.
5050
*
5151
* @export
52-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
53-
* @param {StoragePipelineOptions} [pipelineOptions] Optional. Options.
54-
* @returns {Pipeline} A new Pipeline object.
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.
53+
* @param pipelineOptions - Optional. Options.
54+
* @returns A new Pipeline object.
5555
*/
5656
export function newPipeline(
5757
credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,
@@ -99,13 +99,13 @@ export class BlobChangeFeedClient {
9999
*
100100
* Creates an instance of BlobChangeFeedClient from connection string.
101101
*
102-
* @param {string} connectionString Account connection string or a SAS connection string of an Azure storage account.
102+
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
103103
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
104104
* Account connection string example -
105105
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
106106
* SAS connection string example -
107107
* `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`
108-
* @param {StoragePipelineOptions} [options] Optional. Options to configure the HTTP pipeline.
108+
* @param options - Optional. Options to configure the HTTP pipeline.
109109
* @memberof BlobChangeFeedClient
110110
*/
111111
public static fromConnectionString(
@@ -123,11 +123,11 @@ export class BlobChangeFeedClient {
123123
/**
124124
* Creates an instance of BlobChangeFeedClient.
125125
*
126-
* @param {string} url A Client string pointing to Azure Storage blob service, such as
126+
* @param url - A Client string pointing to Azure Storage blob service, such as
127127
* "https://myaccount.blob.core.windows.net". You can append a SAS
128128
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
129-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
130-
* @param {StoragePipelineOptions} [options] Optional. Options to configure the HTTP pipeline.
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.
130+
* @param options - Optional. Options to configure the HTTP pipeline.
131131
* @memberof BlobChangeFeedClient
132132
*
133133
* Example using DefaultAzureCredential from `@azure/identity`:
@@ -164,10 +164,10 @@ export class BlobChangeFeedClient {
164164
/**
165165
* Creates an instance of BlobChangeFeedClient.
166166
*
167-
* @param {string} url A Client string pointing to Azure Storage blob service, such as
167+
* @param url - A Client string pointing to Azure Storage blob service, such as
168168
* "https://myaccount.blob.core.windows.net". You can append a SAS
169169
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
170-
* @param {Pipeline} pipeline Call newPipeline() to create a default
170+
* @param pipeline - Call newPipeline() to create a default
171171
* pipeline, or provide a customized pipeline.
172172
* @memberof BlobChangeFeedClient
173173
*/
@@ -322,8 +322,8 @@ export class BlobChangeFeedClient {
322322
* }
323323
* ```
324324
*
325-
* @param {BlobChangeFeedListChangesOptions} [options={}] Options to list change feed events.
326-
* @returns {PagedAsyncIterableIterator<BlobChangeFeedEvent, BlobChangeFeedEventPage>} An asyncIterableIterator that supports paging.
325+
* @param options - Options to list change feed events.
326+
* @returns An asyncIterableIterator that supports paging.
327327
* @memberof BlobChangeFeedClient
328328
*/
329329
public listChanges(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class LazyLoadingBlobStream extends Readable {
7070
/**
7171
* Creates an instance of LazyLoadingBlobStream.
7272
*
73-
* @param {number} byteLength The total length of data contained in the buffers
73+
* @param byteLength - The total length of data contained in the buffers
7474
* @memberof LazyLoadingBlobStream
7575
*/
7676
constructor(
@@ -129,7 +129,7 @@ export class LazyLoadingBlobStream extends Readable {
129129
/**
130130
* Internal _read() that will be called when the stream wants to pull more data in.
131131
*
132-
* @param {number} size Optional. The size of data to be read
132+
* @param size - Optional. The size of data to be read
133133
* @memberof LazyLoadingBlobStream
134134
*/
135135
public async _read(size?: number) {

sdk/storage/storage-blob-changefeed/src/utils/utils.common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export function floorToNearestHour(date: Date | undefined): Date | undefined {
2626
* Get host from an URL string.
2727
*
2828
* @export
29-
* @param {string} url Source URL string
30-
* @returns {(string | undefined)}
29+
* @param url - Source URL string
30+
*
3131
*/
3232
export function getHost(url: string): string | undefined {
3333
const urlParsed = URLBuilder.parse(url);
@@ -38,8 +38,8 @@ export function getHost(url: string): string | undefined {
3838
* Get URI from an URL string.
3939
*
4040
* @export
41-
* @param {string} url Source URL string
42-
* @returns {(string | undefined)}
41+
* @param url - Source URL string
42+
*
4343
*/
4444
export function getURI(url: string): string {
4545
const urlParsed = URLBuilder.parse(url);

sdk/storage/storage-blob-changefeed/test/utils/testutils.common.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class SimpleTokenCredential implements TokenCredential {
7070

7171
/**
7272
* Creates an instance of TokenCredential.
73-
* @param {string} token
73+
* @param token -
7474
*/
7575
constructor(token: string, expiresOn?: Date) {
7676
this.token = token;
@@ -82,7 +82,7 @@ export class SimpleTokenCredential implements TokenCredential {
8282
*
8383
* @param _scopes Ignored since token is already known.
8484
* @param _options Ignored since token is already known.
85-
* @returns {AccessToken} The access token details.
85+
* @returns The access token details.
8686
*/
8787
async getToken(
8888
_scopes: string | string[],
@@ -141,8 +141,8 @@ export function isSuperSet(m1?: BlobMetadata, m2?: BlobMetadata): boolean {
141141
* Sleep for seconds.
142142
*
143143
* @export
144-
* @param {number} seconds
145-
* @returns {Promise<void>}
144+
* @param seconds -
145+
*
146146
*/
147147
export function sleep(seconds: number): Promise<void> {
148148
return new Promise((resolve) => {
@@ -154,10 +154,10 @@ export function sleep(seconds: number): Promise<void> {
154154
* String.prototype.padStart()
155155
*
156156
* @export
157-
* @param {string} currentString
158-
* @param {number} targetLength
159-
* @param {string} [padString=" "]
160-
* @returns {string}
157+
* @param currentString -
158+
* @param targetLength -
159+
* @param [padString=" - "]
160+
*
161161
*/
162162
export function padStart(
163163
currentString: string,

sdk/storage/storage-blob/src/BlobBatch.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ export class BlobBatch {
131131
* The operation will be authenticated and authorized with specified credential.
132132
* See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
133133
*
134-
* @param {string} url The url of the blob resource to delete.
135-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
136-
* @param {BlobDeleteOptions} [options]
137-
* @returns {Promise<void>}
134+
* @param url - The url of the blob resource to delete.
135+
* @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.
136+
* @param options -
137+
*
138138
* @memberof BlobBatch
139139
*/
140140
public async deleteBlob(
@@ -153,9 +153,9 @@ export class BlobBatch {
153153
* The operation will be authenticated and authorized with specified credential.
154154
* See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
155155
*
156-
* @param {BlobClient} blobClient The BlobClient.
157-
* @param {BlobDeleteOptions} [options]
158-
* @returns {Promise<void>}
156+
* @param blobClient - The BlobClient.
157+
* @param options -
158+
*
159159
* @memberof BlobBatch
160160
*/
161161
public async deleteBlob(blobClient: BlobClient, options?: BlobDeleteOptions): Promise<void>;
@@ -239,11 +239,11 @@ export class BlobBatch {
239239
* The operation will be authenticated and authorized
240240
* with specified credential. See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
241241
*
242-
* @param {string} url The url of the blob resource to delete.
243-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
244-
* @param {AccessTier} tier
245-
* @param {BlobSetTierOptions} [options]
246-
* @returns {Promise<void>}
242+
* @param url - The url of the blob resource to delete.
243+
* @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.
244+
* @param tier -
245+
* @param options -
246+
*
247247
* @memberof BlobBatch
248248
*/
249249
public async setBlobAccessTier(
@@ -265,10 +265,10 @@ export class BlobBatch {
265265
* The operation will be authenticated and authorized
266266
* with specified credential. See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
267267
*
268-
* @param {BlobClient} blobClient The BlobClient.
269-
* @param {AccessTier} tier
270-
* @param {BlobSetTierOptions} [options]
271-
* @returns {Promise<void>}
268+
* @param blobClient - The BlobClient.
269+
* @param tier -
270+
* @param options -
271+
*
272272
* @memberof BlobBatch
273273
*/
274274
public async setBlobAccessTier(
@@ -392,7 +392,7 @@ class InnerBatchRequest {
392392
* credential and serialization/deserialization components, with additional policies to
393393
* filter unnecessary headers, assemble sub requests into request's body
394394
* and intercept request from going to wire.
395-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
395+
* @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.
396396
*/
397397
public createPipeline(
398398
credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential

sdk/storage/storage-blob/src/BlobBatchClient.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ export class BlobBatchClient {
8080
/**
8181
* Creates an instance of BlobBatchClient.
8282
*
83-
* @param {string} url A url pointing to Azure Storage blob service, such as
83+
* @param url - A url pointing to Azure Storage blob service, such as
8484
* "https://myaccount.blob.core.windows.net". You can append a SAS
8585
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
86-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
87-
* @param {StoragePipelineOptions} [options] Options to configure the HTTP pipeline.
86+
* @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.
87+
* @param options - Options to configure the HTTP pipeline.
8888
* @memberof BlobBatchClient
8989
*/
9090
constructor(
@@ -95,10 +95,10 @@ export class BlobBatchClient {
9595
/**
9696
* Creates an instance of BlobBatchClient.
9797
*
98-
* @param {string} url A url pointing to Azure Storage blob service, such as
98+
* @param url - A url pointing to Azure Storage blob service, such as
9999
* "https://myaccount.blob.core.windows.net". You can append a SAS
100100
* if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
101-
* @param {Pipeline} pipeline Call newPipeline() to create a default
101+
* @param pipeline - Call newPipeline() to create a default
102102
* pipeline, or provide a customized pipeline.
103103
* @memberof BlobBatchClient
104104
*/
@@ -148,10 +148,10 @@ export class BlobBatchClient {
148148
* The operations will be authenticated and authorized with specified credential.
149149
* See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
150150
*
151-
* @param {string[]} urls The urls of the blob resources to delete.
152-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
153-
* @param {BlobDeleteOptions} [options]
154-
* @returns {Promise<BlobBatchDeleteBlobsResponse>}
151+
* @param urls - The urls of the blob resources to delete.
152+
* @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.
153+
* @param options -
154+
*
155155
* @memberof BlobBatchClient
156156
*/
157157
public async deleteBlobs(
@@ -167,9 +167,9 @@ export class BlobBatchClient {
167167
* The operation(subrequest) will be authenticated and authorized with specified credential.
168168
* See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
169169
*
170-
* @param {BlobClient[]} blobClients The BlobClients for the blobs to delete.
171-
* @param {BlobDeleteOptions} [options]
172-
* @returns {Promise<BlobBatchDeleteBlobsResponse>}
170+
* @param blobClients - The BlobClients for the blobs to delete.
171+
* @param options -
172+
*
173173
* @memberof BlobBatchClient
174174
*/
175175
public async deleteBlobs(
@@ -209,11 +209,11 @@ export class BlobBatchClient {
209209
* The operation(subrequest) will be authenticated and authorized
210210
* with specified credential.See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
211211
*
212-
* @param {string[]} urls The urls of the blob resource to delete.
213-
* @param {StorageSharedKeyCredential | AnonymousCredential | TokenCredential} 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.
214-
* @param {AccessTier} tier
215-
* @param {BlobSetTierOptions} [options]
216-
* @returns {Promise<BlobBatchSetBlobsAccessTierResponse>}
212+
* @param urls - The urls of the blob resource to delete.
213+
* @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.
214+
* @param tier -
215+
* @param options -
216+
*
217217
* @memberof BlobBatchClient
218218
*/
219219
public async setBlobsAccessTier(
@@ -234,10 +234,10 @@ export class BlobBatchClient {
234234
* The operation(subrequest) will be authenticated and authorized
235235
* with specified credential.See [blob batch authorization details](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#authorization).
236236
*
237-
* @param {BlobClient[]} blobClients The BlobClients for the blobs which should have a new tier set.
238-
* @param {AccessTier} tier
239-
* @param {BlobSetTierOptions} [options]
240-
* @returns {Promise<BlobBatchSetBlobsAccessTierResponse>}
237+
* @param blobClients - The BlobClients for the blobs which should have a new tier set.
238+
* @param tier -
239+
* @param options -
240+
*
241241
* @memberof BlobBatchClient
242242
*/
243243
public async setBlobsAccessTier(
@@ -308,9 +308,9 @@ export class BlobBatchClient {
308308
*
309309
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch
310310
*
311-
* @param {BlobBatch} batchRequest A set of Delete or SetTier operations.
312-
* @param {BlobBatchSubmitBatchOptionalParams} [options]
313-
* @returns {Promise<BlobBatchSubmitBatchResponse>}
311+
* @param batchRequest - A set of Delete or SetTier operations.
312+
* @param options -
313+
*
314314
* @memberof BlobBatchClient
315315
*/
316316
public async submitBatch(

sdk/storage/storage-blob/src/BlobDownloadResponse.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,11 +572,11 @@ export class BlobDownloadResponse implements BlobDownloadResponseParsed {
572572
/**
573573
* Creates an instance of BlobDownloadResponse.
574574
*
575-
* @param {BlobDownloadResponseParsed} originalResponse
576-
* @param {ReadableStreamGetter} getter
577-
* @param {number} offset
578-
* @param {number} count
579-
* @param {RetriableReadableStreamOptions} [options={}]
575+
* @param originalResponse -
576+
* @param getter -
577+
* @param offset -
578+
* @param count -
579+
* @param options -
580580
* @memberof BlobDownloadResponse
581581
*/
582582
public constructor(

0 commit comments

Comments
 (0)