Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions sdk/storage/storage-blob/src/AccountSASPermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This is a helper class to construct a string representing the permissions granted by an AccountSAS. Setting a value
* to true means that any SAS which uses these permissions will grant permissions for that operation. Once all the
* values are set, this should be serialized with toString and set as the permissions field on an
* {@link IAccountSASSignatureValues} object. It is possible to construct the permissions string without this class, but
* {@link AccountSASSignatureValues} object. It is possible to construct the permissions string without this class, but
* the order of the permissions is particular and this class guarantees correctness.
*
* @export
Expand Down Expand Up @@ -122,7 +122,7 @@ export class AccountSASPermissions {

/**
* Produces the SAS permissions string for an Azure Storage account.
* Call this method to set IAccountSASSignatureValues Permissions field.
* Call this method to set AccountSASSignatureValues Permissions field.
*
* Using this method will guarantee the resource types are in
* an order accepted by the service.
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/src/AccountSASResourceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This is a helper class to construct a string representing the resources accessible by an AccountSAS. Setting a value
* to true means that any SAS which uses these permissions will grant access to that resource type. Once all the
* values are set, this should be serialized with toString and set as the resources field on an
* {@link IAccountSASSignatureValues} object. It is possible to construct the resources string without this class, but
* {@link AccountSASSignatureValues} object. It is possible to construct the resources string without this class, but
* the order of the resources is particular and this class guarantees correctness.
*
* @export
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/src/AccountSASServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This is a helper class to construct a string representing the services accessible by an AccountSAS. Setting a value
* to true means that any SAS which uses these permissions will grant access to that service. Once all the
* values are set, this should be serialized with toString and set as the services field on an
* {@link IAccountSASSignatureValues} object. It is possible to construct the services string without this class, but
* {@link AccountSASSignatureValues} object. It is possible to construct the services string without this class, but
* the order of the services is particular and this class guarantees correctness.
*
* @export
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { AccountSASPermissions } from "./AccountSASPermissions";
import { AccountSASResourceTypes } from "./AccountSASResourceTypes";
import { AccountSASServices } from "./AccountSASServices";
import { SharedKeyCredential } from "./credentials/SharedKeyCredential";
import { IIPRange, ipRangeToString } from "./IIPRange";
import { IPRange, ipRangeToString } from "./IPRange";
import { SASProtocol, SASQueryParameters } from "./SASQueryParameters";
import { SERVICE_VERSION } from "./utils/constants";
import { truncatedISO8061Date } from "./utils/utils.common";

/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.
*
* IAccountSASSignatureValues is used to generate a Shared Access Signature (SAS) for an Azure Storage account. Once
* AccountSASSignatureValues is used to generate a Shared Access Signature (SAS) for an Azure Storage account. Once
* all the values here are set appropriately, call generateSASQueryParameters() to obtain a representation of the SAS
* which can actually be applied to blob urls. Note: that both this class and {@link SASQueryParameters} exist because
* the former is mutable and a logical representation while the latter is immutable and used to generate actual REST
Expand All @@ -23,38 +23,38 @@ import { truncatedISO8061Date } from "./utils/utils.common";
* for descriptions of the parameters, including which are required
*
* @export
* @class IAccountSASSignatureValues
* @class AccountSASSignatureValues
*/
export interface IAccountSASSignatureValues {
export interface AccountSASSignatureValues {
/**
* If not provided, this defaults to the service version targeted by this version of the library.
*
* @type {string}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
version?: string;

/**
* Optional. SAS protocols allowed.
*
* @type {SASProtocol}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
protocol?: SASProtocol;

/**
* Optional. When the SAS will take effect.
*
* @type {Date}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
startTime?: Date;

/**
* The time after which the SAS will no longer work.
*
* @type {Date}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
expiryTime: Date;

Expand All @@ -63,24 +63,24 @@ export interface IAccountSASSignatureValues {
* constructing the permissions string.
*
* @type {string}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
permissions: string;

/**
* Optional. IP range allowed.
*
* @type {IIPRange}
* @memberof IAccountSASSignatureValues
* @type {IPRange}
* @memberof AccountSASSignatureValues
*/
ipRange?: IIPRange;
ipRange?: IPRange;

/**
* The values that indicate the services accessible with this SAS. Please refer to {@link AccountSASServices} to
* construct this value.
*
* @type {string}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
services: string;

Expand All @@ -89,7 +89,7 @@ export interface IAccountSASSignatureValues {
* to {@link AccountSASResourceTypes} to construct this value.
*
* @type {string}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
resourceTypes: string;
}
Expand All @@ -104,10 +104,10 @@ export interface IAccountSASSignatureValues {
*
* @param {SharedKeyCredential} sharedKeyCredential
* @returns {SASQueryParameters}
* @memberof IAccountSASSignatureValues
* @memberof AccountSASSignatureValues
*/
export function generateAccountSASQueryParameters(
accountSASSignatureValues: IAccountSASSignatureValues,
accountSASSignatureValues: AccountSASSignatureValues,
sharedKeyCredential: SharedKeyCredential
): SASQueryParameters {
const version = accountSASSignatureValues.version
Expand Down
20 changes: 10 additions & 10 deletions sdk/storage/storage-blob/src/AppendBlobClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import { Aborter } from "./Aborter";
import { BlobClient } from "./BlobClient";
import { ContainerClient } from "./ContainerClient";
import { AppendBlob } from "./generated/lib/operations";
import { IAppendBlobAccessConditions, IBlobAccessConditions, IMetadata } from "./models";
import { AppendBlobAccessConditions, BlobAccessConditions, Metadata } from "./models";
import { Pipeline } from "./Pipeline";
import { URLConstants } from "./utils/constants";
import { appendToURLPath, setURLParameter } from "./utils/utils.common";

export interface IAppendBlobCreateOptions {
export interface AppendBlobCreateOptions {
abortSignal?: Aborter;
accessConditions?: IBlobAccessConditions;
accessConditions?: BlobAccessConditions;
blobHTTPHeaders?: Models.BlobHTTPHeaders;
metadata?: IMetadata;
metadata?: Metadata;
}

export interface IAppendBlobAppendBlockOptions {
export interface AppendBlobAppendBlockOptions {
abortSignal?: Aborter;
accessConditions?: IAppendBlobAccessConditions;
accessConditions?: AppendBlobAccessConditions;
progress?: (progress: TransferProgressEvent) => void;
transactionalContentMD5?: Uint8Array;
}
Expand Down Expand Up @@ -131,12 +131,12 @@ export class AppendBlobClient extends BlobClient {
* Creates a 0-length append blob. Call AppendBlock to append data to an append blob.
* @see https://docs.microsoft.com/rest/api/storageservices/put-blob
*
* @param {IAppendBlobCreateOptions} [options]
* @param {AppendBlobCreateOptions} [options]
* @returns {Promise<Models.AppendBlobsCreateResponse>}
* @memberof AppendBlobClient
*/
public async create(
options: IAppendBlobCreateOptions = {}
options: AppendBlobCreateOptions = {}
): Promise<Models.AppendBlobCreateResponse> {
const aborter = options.abortSignal || Aborter.none;
options.accessConditions = options.accessConditions || {};
Expand All @@ -155,14 +155,14 @@ export class AppendBlobClient extends BlobClient {
*
* @param {HttpRequestBody} body
* @param {number} contentLength
* @param {IAppendBlobAppendBlockOptions} [options]
* @param {AppendBlobAppendBlockOptions} [options]
* @returns {Promise<Models.AppendBlobsAppendBlockResponse>}
* @memberof AppendBlobClient
*/
public async appendBlock(
body: HttpRequestBody,
contentLength: number,
options: IAppendBlobAppendBlockOptions = {}
options: AppendBlobAppendBlockOptions = {}
): Promise<Models.AppendBlobAppendBlockResponse> {
const aborter = options.abortSignal || Aborter.none;
options.accessConditions = options.accessConditions || {};
Expand Down
Loading