@azure/storage-queue
Version:
Microsoft Azure Storage SDK for JavaScript - Queue
61 lines • 2.02 kB
TypeScript
/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.
*
* 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 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 declare class AccountSASPermissions {
/**
* Parse initializes the AccountSASPermissions fields from a string.
*
* @param permissions -
*/
static parse(permissions: string): AccountSASPermissions;
/**
* Permission to read resources granted.
*/
read: boolean;
/**
* Permission to write resources granted.
*/
write: boolean;
/**
* Permission to delete queues and messages granted.
*/
delete: boolean;
/**
* Permission to list queues granted.
*/
list: boolean;
/**
* Permission to add messages, table entities, and append to blobs granted.
*/
add: boolean;
/**
* Permission to create queues, blobs and files granted.
*/
create: boolean;
/**
* Permissions to update messages and table entities granted.
*/
update: boolean;
/**
* Permission to get and delete messages granted.
*/
process: boolean;
/**
* Produces the SAS permissions string for an Azure Storage account.
* Call this method to set AccountSASSignatureValues Permissions field.
*
* Using this method will guarantee the resource types are in
* an order accepted by the service.
*
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-an-account-sas
*
*/
toString(): string;
}
//# sourceMappingURL=AccountSASPermissions.d.ts.map