@azure/storage-file-share
Version:
Microsoft Azure Storage SDK for JavaScript - File
1,017 lines • 173 kB
TypeScript
import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import * as coreHttpCompat from "@azure/core-http-compat";
/** Storage service properties. */
export interface FileServiceProperties {
/** A summary of request statistics grouped by API in hourly aggregates for files. */
hourMetrics?: Metrics;
/** A summary of request statistics grouped by API in minute aggregates for files. */
minuteMetrics?: Metrics;
/** The set of CORS rules. */
cors?: CorsRule[];
/** Protocol settings */
protocol?: ShareProtocolSettings;
}
/** Storage Analytics metrics for file service. */
export interface Metrics {
/** The version of Storage Analytics to configure. */
version: string;
/** Indicates whether metrics are enabled for the File service. */
enabled: boolean;
/** Indicates whether metrics should generate summary statistics for called API operations. */
includeAPIs?: boolean;
/** The retention policy. */
retentionPolicy?: RetentionPolicy;
}
/** The retention policy. */
export interface RetentionPolicy {
/** Indicates whether a retention policy is enabled for the File service. If false, metrics data is retained, and the user is responsible for deleting it. */
enabled: boolean;
/** Indicates the number of days that metrics data should be retained. All data older than this value will be deleted. Metrics data is deleted on a best-effort basis after the retention period expires. */
days?: number;
}
/** CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain. */
export interface CorsRule {
/** The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS. */
allowedOrigins: string;
/** The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated) */
allowedMethods: string;
/** The request headers that the origin domain may specify on the CORS request. */
allowedHeaders: string;
/** The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. */
exposedHeaders: string;
/** The maximum amount time that a browser should cache the preflight OPTIONS request. */
maxAgeInSeconds: number;
}
/** Protocol settings */
export interface ShareProtocolSettings {
/** Settings for SMB protocol. */
smb?: ShareSmbSettings;
/** Settings for NFS protocol. */
nfs?: ShareNfsSettings;
}
/** Settings for SMB protocol. */
export interface ShareSmbSettings {
/** Settings for SMB Multichannel. */
multichannel?: SmbMultichannel;
/** Enable or disable encryption in transit. */
encryptionInTransit?: ShareSmbSettingsEncryptionInTransit;
}
/** Settings for SMB multichannel */
export interface SmbMultichannel {
/** If SMB multichannel is enabled. */
enabled?: boolean;
}
/** Enable or disable encryption in transit. */
export interface ShareSmbSettingsEncryptionInTransit {
/** If encryption in transit is required */
required?: boolean;
}
/** Settings for SMB protocol. */
export interface ShareNfsSettings {
/** Enable or disable encryption in transit. */
encryptionInTransit?: ShareNfsSettingsEncryptionInTransit;
}
/** Enable or disable encryption in transit. */
export interface ShareNfsSettingsEncryptionInTransit {
/** If encryption in transit is required */
required?: boolean;
}
export interface StorageError {
message?: string;
copySourceStatusCode?: number;
copySourceErrorCode?: string;
copySourceErrorMessage?: string;
authenticationErrorDetail?: string;
code?: string;
}
/** An enumeration of shares. */
export interface ListSharesResponse {
serviceEndpoint: string;
prefix?: string;
marker?: string;
maxResults?: number;
shareItems?: ShareItemInternal[];
continuationToken: string;
}
/** A listed Azure Storage share item. */
export interface ShareItemInternal {
name: string;
snapshot?: string;
deleted?: boolean;
version?: string;
/** Properties of a share. */
properties: SharePropertiesInternal;
/** Dictionary of <string> */
metadata?: {
[propertyName: string]: string;
};
}
/** Properties of a share. */
export interface SharePropertiesInternal {
lastModified: Date;
etag: string;
quota: number;
provisionedIops?: number;
provisionedIngressMBps?: number;
provisionedEgressMBps?: number;
provisionedBandwidthMiBps?: number;
nextAllowedQuotaDowngradeTime?: Date;
deletedTime?: Date;
remainingRetentionDays?: number;
accessTier?: string;
accessTierChangeTime?: Date;
accessTierTransitionState?: string;
/** The current lease status of the share. */
leaseStatus?: LeaseStatusType;
/** Lease state of the share. */
leaseState?: LeaseStateType;
/** When a share is leased, specifies whether the lease is of infinite or fixed duration. */
leaseDuration?: LeaseDurationType;
enabledProtocols?: string;
rootSquash?: ShareRootSquash;
enableSnapshotVirtualDirectoryAccess?: boolean;
paidBurstingEnabled?: boolean;
paidBurstingMaxIops?: number;
paidBurstingMaxBandwidthMibps?: number;
includedBurstIops?: number;
maxBurstCreditsForIops?: number;
nextAllowedProvisionedIopsDowngradeTime?: Date;
nextAllowedProvisionedBandwidthDowngradeTime?: Date;
}
/** Key information */
export interface KeyInfo {
/** The date-time the key is active in ISO 8601 UTC time */
start?: string;
/** The date-time the key expires in ISO 8601 UTC time */
expiry: string;
}
/** A user delegation key */
export interface UserDelegationKey {
/** The Azure Active Directory object ID in GUID format. */
signedObjectId: string;
/** The Azure Active Directory tenant ID in GUID format */
signedTenantId: string;
/** The date-time the key is active */
signedStartsOn: Date;
/** The date-time the key expires */
signedExpiresOn: Date;
/** Abbreviation of the Azure Storage service that accepts the key */
signedService: string;
/** The service version that created the key */
signedVersion: string;
/** The key as a base64 string */
value: string;
}
/** A permission (a security descriptor) at the share level. */
export interface SharePermission {
/** The permission in the Security Descriptor Definition Language (SDDL). */
permission: string;
format?: FilePermissionFormat;
}
/** Signed identifier. */
export interface SignedIdentifier {
/** A unique id. */
id: string;
/** The access policy. */
accessPolicy?: AccessPolicy;
}
/** An Access policy. */
export interface AccessPolicy {
/** The date-time the policy is active. */
startsOn?: string;
/** The date-time the policy expires. */
expiresOn?: string;
/** The permissions for the ACL policy. */
permissions?: string;
}
/** Stats for the share. */
export interface ShareStats {
/** The approximate size of the data stored in bytes. Note that this value may not include all recently created or recently resized files. */
shareUsageBytes: number;
}
/** An enumeration of directories and files. */
export interface ListFilesAndDirectoriesSegmentResponse {
serviceEndpoint: string;
shareName: string;
shareSnapshot?: string;
encoded?: boolean;
directoryPath: string;
prefix: StringEncoded;
marker?: string;
maxResults?: number;
/** Abstract for entries that can be listed from Directory. */
segment: FilesAndDirectoriesListSegment;
continuationToken: string;
directoryId?: string;
}
export interface StringEncoded {
encoded?: boolean;
content?: string;
}
/** Abstract for entries that can be listed from Directory. */
export interface FilesAndDirectoriesListSegment {
directoryItems: DirectoryItem[];
fileItems: FileItem[];
}
/** A listed directory item. */
export interface DirectoryItem {
name: StringEncoded;
fileId?: string;
/** File properties. */
properties?: FileProperty;
attributes?: string;
permissionKey?: string;
}
/** File properties. */
export interface FileProperty {
/** Content length of the file. This value may not be up-to-date since an SMB client may have modified the file locally. The value of Content-Length may not reflect that fact until the handle is closed or the op-lock is broken. To retrieve current property values, call Get File Properties. */
contentLength: number;
creationTime?: Date;
lastAccessTime?: Date;
lastWriteTime?: Date;
changeTime?: Date;
lastModified?: Date;
etag?: string;
}
/** A listed file item. */
export interface FileItem {
name: StringEncoded;
fileId?: string;
/** File properties. */
properties: FileProperty;
attributes?: string;
permissionKey?: string;
}
/** An enumeration of handles. */
export interface ListHandlesResponse {
handleList?: HandleItem[];
continuationToken: string;
}
/** A listed Azure Storage handle item. */
export interface HandleItem {
/** XSMB service handle ID */
handleId: string;
path: StringEncoded;
/** FileId uniquely identifies the file or directory. */
fileId: string;
/** ParentId uniquely identifies the parent directory of the object. */
parentId?: string;
/** SMB session ID in context of which the file handle was opened */
sessionId: string;
/** Client IP that opened the handle */
clientIp: string;
/** Name of the client machine where the share is being mounted */
clientName: string;
/** Time when the session that previously opened the handle has last been reconnected. (UTC) */
openTime: Date;
/** Time handle was last connected to (UTC) */
lastReconnectTime?: Date;
accessRightList?: AccessRight[];
}
/** The list of file ranges */
export interface ShareFileRangeList {
ranges?: FileRange[];
clearRanges?: ClearRange[];
}
/** An Azure Storage file range. */
export interface FileRange {
/** Start of the range. */
start: number;
/** End of the range. */
end: number;
}
export interface ClearRange {
start: number;
end: number;
}
/** Defines headers for Service_setProperties operation. */
export interface ServiceSetPropertiesHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Service_setProperties operation. */
export interface ServiceSetPropertiesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Service_getProperties operation. */
export interface ServiceGetPropertiesHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Service_getProperties operation. */
export interface ServiceGetPropertiesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Service_listSharesSegment operation. */
export interface ServiceListSharesSegmentHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Service_listSharesSegment operation. */
export interface ServiceListSharesSegmentExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Service_getUserDelegationKey operation. */
export interface ServiceGetUserDelegationKeyHeaders {
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above. */
version?: string;
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
date?: Date;
}
/** Defines headers for Service_getUserDelegationKey operation. */
export interface ServiceGetUserDelegationKeyExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_create operation. */
export interface ShareCreateHeaders {
/** The ETag contains a value which represents the version of the share, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties or metadata updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Returns the current share quota in GB. */
quota?: number;
/** The provisioned IOPS of the share. */
shareProvisionedIops?: number;
/** The provisioned throughput of the share. */
shareProvisionedBandwidthMibps?: number;
/** Returns the calculated burst IOPS of the share. */
shareIncludedBurstIops?: number;
/** Returned the calculated maximum burst credits. */
maxBurstCreditsForIops?: number;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_create operation. */
export interface ShareCreateExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_getProperties operation. */
export interface ShareGetPropertiesHeaders {
/** A set of name-value pairs that contain the user-defined metadata of the share. */
metadata?: {
[propertyName: string]: string;
};
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Returns the current share quota in GB. */
quota?: number;
/** Returns the current share provisioned ipos. */
provisionedIops?: number;
/** Returns the current share provisioned ingress in megabytes per second. */
provisionedIngressMBps?: number;
/** Returns the current share provisioned egress in megabytes per second. */
provisionedEgressMBps?: number;
/** Returns the current share next allowed quota downgrade time. */
nextAllowedQuotaDowngradeTime?: Date;
/** Returns the current share provisioned bandwidth in mebibytes per second. */
provisionedBandwidthMibps?: number;
/** When a share is leased, specifies whether the lease is of infinite or fixed duration. */
leaseDuration?: LeaseDurationType;
/** Lease state of the share. */
leaseState?: LeaseStateType;
/** The current lease status of the share. */
leaseStatus?: LeaseStatusType;
/** Returns the access tier set on the share. */
accessTier?: string;
/** Returns the last modified time (in UTC) of the access tier of the share. */
accessTierChangeTime?: Date;
/** Returns the transition state between access tiers, when present. */
accessTierTransitionState?: string;
/** The protocols that have been enabled on the share. */
enabledProtocols?: string;
/** Valid for NFS shares only. */
rootSquash?: ShareRootSquash;
/** Version 2023-08-03 and newer. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. This header is only returned for shares, not for snapshots. */
enableSnapshotVirtualDirectoryAccess?: boolean;
/** Optional. Boolean. Default if not specified is false. This property enables paid bursting. */
paidBurstingEnabled?: boolean;
/** Optional. Integer. Default if not specified is the maximum IOPS the file share can support. Current maximum for a file share is 102,400 IOPS. */
paidBurstingMaxIops?: number;
/** Optional. Integer. Default if not specified is the maximum throughput the file share can support. Current maximum for a file share is 10,340 MiB/sec. */
paidBurstingMaxBandwidthMibps?: number;
/** Return the calculated burst IOPS of the share. */
includedBurstIops?: number;
/** Returned the calculated maximum burst credits. This is not the current burst credit level, but the maximum burst credits the share can have. */
maxBurstCreditsForIops?: number;
/** Returns the current share next allowed provisioned iops downgrade time. */
nextAllowedProvisionedIopsDowngradeTime?: Date;
/** Returns the current share next allowed provisioned bandwidth downgrade time. */
nextAllowedProvisionedBandwidthDowngradeTime?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_getProperties operation. */
export interface ShareGetPropertiesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_delete operation. */
export interface ShareDeleteHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Returned only for provisioned v2 file shares. Returns an approximate used storage size of the share, in bytes. */
usageBytes?: number;
/** Returned only for provisioned v2 file shares. Returns an approximate used snapshot storage size of the share, in bytes. */
snapshotUsageBytes?: number;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_delete operation. */
export interface ShareDeleteExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_acquireLease operation. */
export interface ShareAcquireLeaseHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** Uniquely identifies a share's lease */
leaseId?: string;
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
date?: Date;
}
/** Defines headers for Share_acquireLease operation. */
export interface ShareAcquireLeaseExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_releaseLease operation. */
export interface ShareReleaseLeaseHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
date?: Date;
}
/** Defines headers for Share_releaseLease operation. */
export interface ShareReleaseLeaseExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_changeLease operation. */
export interface ShareChangeLeaseHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** Uniquely identifies a share's lease */
leaseId?: string;
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
date?: Date;
}
/** Defines headers for Share_changeLease operation. */
export interface ShareChangeLeaseExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_renewLease operation. */
export interface ShareRenewLeaseHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** Uniquely identifies a share's lease */
leaseId?: string;
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** Returns the current share next allowed quota downgrade time. */
date?: Date;
}
/** Defines headers for Share_renewLease operation. */
export interface ShareRenewLeaseExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_breakLease operation. */
export interface ShareBreakLeaseHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** Approximate time remaining in the lease period, in seconds. */
leaseTimeInSeconds?: number;
/** Uniquely identifies a share's lease */
leaseId?: string;
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
date?: Date;
}
/** Defines headers for Share_breakLease operation. */
export interface ShareBreakLeaseExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_createSnapshot operation. */
export interface ShareCreateSnapshotHeaders {
/** This header is a DateTime value that uniquely identifies the share snapshot. The value of this header may be used in subsequent requests to access the share snapshot. This value is opaque. */
snapshot?: string;
/** The ETag contains a value which represents the version of the share snapshot, in quotes. A share snapshot cannot be modified, so the ETag of a given share snapshot never changes. However, if new metadata was supplied with the Snapshot Share request then the ETag of the share snapshot differs from that of the base share. If no metadata was specified with the request, the ETag of the share snapshot is identical to that of the base share at the time the share snapshot was taken. */
etag?: string;
/** Returns the date and time the share was last modified. A share snapshot cannot be modified, so the last modified time of a given share snapshot never changes. However, if new metadata was supplied with the Snapshot Share request then the last modified time of the share snapshot differs from that of the base share. If no metadata was specified with the request, the last modified time of the share snapshot is identical to that of the base share at the time the share snapshot was taken. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_createSnapshot operation. */
export interface ShareCreateSnapshotExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_createPermission operation. */
export interface ShareCreatePermissionHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Key of the permission set for the directory/file. */
filePermissionKey?: string;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_createPermission operation. */
export interface ShareCreatePermissionExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_getPermission operation. */
export interface ShareGetPermissionHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_getPermission operation. */
export interface ShareGetPermissionExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_setProperties operation. */
export interface ShareSetPropertiesHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Returns the current share quota in GB. */
quota?: number;
/** Returns the current share provisioned ipos. */
provisionedIops?: number;
/** Returns the current share provisioned bandwidth in mebibytes per second. */
provisionedBandwidthMibps?: number;
/** Return the calculated burst IOPS of the share. */
includedBurstIops?: number;
/** Returned the calculated maximum burst credits. This is not the current burst credit level, but the maximum burst credits the share can have. */
maxBurstCreditsForIops?: number;
/** Returns the current share next allowed quota downgrade time. */
nextAllowedQuotaDowngradeTime?: Date;
/** Returns the current share next allowed provisioned iops downgrade time. */
nextAllowedProvisionedIopsDowngradeTime?: Date;
/** Returns the current share next allowed provisioned bandwidth downgrade time. */
nextAllowedProvisionedBandwidthDowngradeTime?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_setProperties operation. */
export interface ShareSetPropertiesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_setMetadata operation. */
export interface ShareSetMetadataHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_setMetadata operation. */
export interface ShareSetMetadataExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_getAccessPolicy operation. */
export interface ShareGetAccessPolicyHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_getAccessPolicy operation. */
export interface ShareGetAccessPolicyExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_setAccessPolicy operation. */
export interface ShareSetAccessPolicyHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_setAccessPolicy operation. */
export interface ShareSetAccessPolicyExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_getStatistics operation. */
export interface ShareGetStatisticsHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Share_getStatistics operation. */
export interface ShareGetStatisticsExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Share_restore operation. */
export interface ShareRestoreHeaders {
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** If a client request id header is sent in the request, this header will be present in the response with the same value. */
clientRequestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Returns the current share quota in GB. */
quota?: number;
/** Returns the current share provisioned ipos. */
provisionedIops?: number;
/** Returns the current share provisioned bandwidth in mebibytes per second. */
provisionedBandwidthMibps?: number;
/** Return the calculated burst IOPS of the share. */
includedBurstIops?: number;
/** Returned the calculated maximum burst credits. This is not the current burst credit level, but the maximum burst credits the share can have. */
maxBurstCreditsForIops?: number;
}
/** Defines headers for Share_restore operation. */
export interface ShareRestoreExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_create operation. */
export interface DirectoryCreateHeaders {
/** The ETag contains a value which represents the version of the directory, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the directory or its properties updates the last modified time. Operations on files do not affect the last modified time of the directory. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise. */
isServerEncrypted?: boolean;
/** Key of the permission set for the directory. */
filePermissionKey?: string;
/** Attributes set for the directory. */
fileAttributes?: string;
/** Creation time for the directory. */
fileCreatedOn?: Date;
/** Last write time for the directory. */
fileLastWriteOn?: Date;
/** Change time for the directory. */
fileChangeOn?: Date;
/** The fileId of the directory. */
fileId?: string;
/** The parent fileId of the directory. */
fileParentId?: string;
/** NFS only. The mode of the file or directory. */
fileMode?: string;
/** NFS only. The owner of the file or directory. */
owner?: string;
/** NFS only. The owning group of the file or directory. */
group?: string;
/** NFS only. Type of the file or directory. */
nfsFileType?: NfsFileType;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_create operation. */
export interface DirectoryCreateExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_getProperties operation. */
export interface DirectoryGetPropertiesHeaders {
/** A set of name-value pairs that contain metadata for the directory. */
metadata?: {
[propertyName: string]: string;
};
/** The ETag contains a value that you can use to perform operations conditionally, in quotes. */
etag?: string;
/** Returns the date and time the Directory was last modified. Operations on files within the directory do not affect the last modified time of the directory. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** The value of this header is set to true if the directory metadata is completely encrypted using the specified algorithm. Otherwise, the value is set to false. */
isServerEncrypted?: boolean;
/** Attributes set for the directory. */
fileAttributes?: string;
/** Creation time for the directory. */
fileCreatedOn?: Date;
/** Last write time for the directory. */
fileLastWriteOn?: Date;
/** Change time for the directory. */
fileChangeOn?: Date;
/** Key of the permission set for the directory. */
filePermissionKey?: string;
/** The fileId of the directory. */
fileId?: string;
/** The parent fileId of the directory. */
fileParentId?: string;
/** NFS only. The mode of the file or directory. */
fileMode?: string;
/** NFS only. The owner of the file or directory. */
owner?: string;
/** NFS only. The owning group of the file or directory. */
group?: string;
/** NFS only. Type of the file or directory. */
nfsFileType?: NfsFileType;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_getProperties operation. */
export interface DirectoryGetPropertiesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_delete operation. */
export interface DirectoryDeleteHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_delete operation. */
export interface DirectoryDeleteExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_setProperties operation. */
export interface DirectorySetPropertiesHeaders {
/** The ETag contains a value which represents the version of the file, in quotes. */
etag?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Returns the date and time the directory was last modified. Any operation that modifies the directory or its properties updates the last modified time. Operations on files do not affect the last modified time of the directory. */
lastModified?: Date;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise. */
isServerEncrypted?: boolean;
/** Key of the permission set for the directory. */
filePermissionKey?: string;
/** Attributes set for the directory. */
fileAttributes?: string;
/** Creation time for the directory. */
fileCreatedOn?: Date;
/** Last write time for the directory. */
fileLastWriteOn?: Date;
/** Change time for the directory. */
fileChangeOn?: Date;
/** The fileId of the directory. */
fileId?: string;
/** The parent fileId of the directory. */
fileParentId?: string;
/** NFS only. The mode of the file or directory. */
fileMode?: string;
/** NFS only. The owner of the file or directory. */
owner?: string;
/** NFS only. The owning group of the file or directory. */
group?: string;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_setProperties operation. */
export interface DirectorySetPropertiesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_setMetadata operation. */
export interface DirectorySetMetadataHeaders {
/** The ETag contains a value which represents the version of the directory, in quotes. */
etag?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise. */
isServerEncrypted?: boolean;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_setMetadata operation. */
export interface DirectorySetMetadataExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_listFilesAndDirectoriesSegment operation. */
export interface DirectoryListFilesAndDirectoriesSegmentHeaders {
/** Specifies the format in which the results are returned. Currently this value is 'application/xml'. */
contentType?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_listFilesAndDirectoriesSegment operation. */
export interface DirectoryListFilesAndDirectoriesSegmentExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_listHandles operation. */
export interface DirectoryListHandlesHeaders {
/** Specifies the format in which the results are returned. Currently this value is 'application/xml'. */
contentType?: string;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_listHandles operation. */
export interface DirectoryListHandlesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_forceCloseHandles operation. */
export interface DirectoryForceCloseHandlesHeaders {
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** A string describing next handle to be closed. It is returned when more handles need to be closed to complete the request. */
marker?: string;
/** Contains count of number of handles closed. */
numberOfHandlesClosed?: number;
/** Contains count of number of handles that failed to close. */
numberOfHandlesFailedToClose?: number;
/** Error Code */
errorCode?: string;
}
/** Defines headers for Directory_forceCloseHandles operation. */
export interface DirectoryForceCloseHandlesExceptionHeaders {
errorCode?: string;
}
/** Defines headers for Directory_rename operation. */
export interface DirectoryRenameHeaders {
/** The ETag contains a value which represents the version of the file, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the directory or its properties updates the last modified time. Operations on files do not affect the last modified time of the directory. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
version?: string;
/** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */
date?: Date;
/** The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise. */
isServerEncrypted?: boolean;
/** Key of the permission set for the file. */
filePermissionKey?: string;
/** Attributes set for the file. */
fileAttributes?: string;
/** Creation time for the file. */
fileCreationTime?: Date;
/** Last write time for the file. */
fileLastWriteTime?: Date;
/** Change time for the file. */
fileChangeTime?: Date;
/** The fileId of the file. */
fileId?: string;
/** The parent fileId of the directory. */
fileParentId?: string;
}
/** Defines headers for Directory_rename operation. */
export interface DirectoryRenameExceptionHeaders {
errorCode?: string;
}
/** Defines headers for File_create operation. */
export interface FileCreateHeaders {
/** The ETag contains a value which represents the version of the file, in quotes. */
etag?: string;
/** Returns the date and time the share was last modified. Any operation that modifies the directory or its properties updates the last modified time. Operations on files do not affect the last modified time of the directory. */
lastModified?: Date;
/** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */
requestId?: string;
/** Indicates the version of the File service used to execute the request. */
ve