UNPKG

@azure/storage-blob

Version:
953 lines 261 kB
import * as coreClient from "@azure/core-client"; import * as coreHttpCompat from "@azure/core-http-compat"; /** Storage Service Properties. */ export interface BlobServiceProperties { /** Azure Analytics Logging settings. */ blobAnalyticsLogging?: Logging; /** a summary of request statistics grouped by API in hour or minute aggregates for blobs */ hourMetrics?: Metrics; /** a summary of request statistics grouped by API in hour or minute aggregates for blobs */ minuteMetrics?: Metrics; /** The set of CORS rules. */ cors?: CorsRule[]; /** The default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions */ defaultServiceVersion?: string; /** the retention policy which determines how long the associated data should persist */ deleteRetentionPolicy?: RetentionPolicy; /** The properties that enable an account to host a static website */ staticWebsite?: StaticWebsite; } /** Azure Analytics Logging settings. */ export interface Logging { /** The version of Storage Analytics to configure. */ version: string; /** Indicates whether all delete requests should be logged. */ deleteProperty: boolean; /** Indicates whether all read requests should be logged. */ read: boolean; /** Indicates whether all write requests should be logged. */ write: boolean; /** the retention policy which determines how long the associated data should persist */ retentionPolicy: RetentionPolicy; } /** the retention policy which determines how long the associated data should persist */ export interface RetentionPolicy { /** Indicates whether a retention policy is enabled for the storage service */ enabled: boolean; /** Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted */ days?: number; } /** a summary of request statistics grouped by API in hour or minute aggregates for blobs */ export interface Metrics { /** The version of Storage Analytics to configure. */ version?: string; /** Indicates whether metrics are enabled for the Blob service. */ enabled: boolean; /** Indicates whether metrics should generate summary statistics for called API operations. */ includeAPIs?: boolean; /** the retention policy which determines how long the associated data should persist */ retentionPolicy?: RetentionPolicy; } /** 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; } /** The properties that enable an account to host a static website */ export interface StaticWebsite { /** Indicates whether this account is hosting a static website */ enabled: boolean; /** The default name of the index page under each directory */ indexDocument?: string; /** The absolute path of the custom 404 page */ errorDocument404Path?: string; /** Absolute path of the default index page */ defaultIndexDocumentPath?: string; } export interface StorageError { message?: string; copySourceStatusCode?: number; copySourceErrorCode?: string; copySourceErrorMessage?: string; code?: string; authenticationErrorDetail?: string; } /** Stats for the storage service. */ export interface BlobServiceStatistics { /** Geo-Replication information for the Secondary Storage Service */ geoReplication?: GeoReplication; } /** Geo-Replication information for the Secondary Storage Service */ export interface GeoReplication { /** The status of the secondary location */ status: GeoReplicationStatusType; /** A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads. */ lastSyncOn: Date; } /** An enumeration of containers */ export interface ListContainersSegmentResponse { serviceEndpoint: string; prefix?: string; marker?: string; maxPageSize?: number; containerItems: ContainerItem[]; continuationToken?: string; } /** An Azure Storage container */ export interface ContainerItem { name: string; deleted?: boolean; version?: string; /** Properties of a container */ properties: ContainerProperties; /** Dictionary of <string> */ metadata?: { [propertyName: string]: string; }; } /** Properties of a container */ export interface ContainerProperties { lastModified: Date; etag: string; leaseStatus?: LeaseStatusType; leaseState?: LeaseStateType; leaseDuration?: LeaseDurationType; publicAccess?: PublicAccessType; hasImmutabilityPolicy?: boolean; hasLegalHold?: boolean; defaultEncryptionScope?: string; preventEncryptionScopeOverride?: boolean; deletedOn?: Date; remainingRetentionDays?: number; /** Indicates if version level worm is enabled on this container. */ isImmutableStorageWithVersioningEnabled?: boolean; } /** Key information */ export interface KeyInfo { /** The date-time the key is active in ISO 8601 UTC time */ startsOn: string; /** The date-time the key expires in ISO 8601 UTC time */ expiresOn: 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: string; /** The date-time the key expires */ signedExpiresOn: string; /** 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; } /** The result of a Filter Blobs API call */ export interface FilterBlobSegment { serviceEndpoint: string; where: string; blobs: FilterBlobItem[]; continuationToken?: string; } /** Blob info from a Filter Blobs API call */ export interface FilterBlobItem { name: string; containerName: string; /** Blob tags */ tags?: BlobTags; } /** Blob tags */ export interface BlobTags { blobTagSet: BlobTag[]; } export interface BlobTag { key: string; value: string; } /** signed identifier */ export interface SignedIdentifier { /** a unique id */ id: string; /** An 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; } /** An enumeration of blobs */ export interface ListBlobsFlatSegmentResponse { serviceEndpoint: string; containerName: string; prefix?: string; marker?: string; maxPageSize?: number; segment: BlobFlatListSegment; continuationToken?: string; } export interface BlobFlatListSegment { blobItems: BlobItemInternal[]; } /** An Azure Storage blob */ export interface BlobItemInternal { name: BlobName; deleted: boolean; snapshot: string; versionId?: string; isCurrentVersion?: boolean; /** Properties of a blob */ properties: BlobPropertiesInternal; /** Dictionary of <string> */ metadata?: { [propertyName: string]: string; }; /** Blob tags */ blobTags?: BlobTags; /** Dictionary of <string> */ objectReplicationMetadata?: { [propertyName: string]: string; }; /** Inactive root blobs which have any versions would have such tag with value true. */ hasVersionsOnly?: boolean; } export interface BlobName { /** Indicates if the blob name is encoded. */ encoded?: boolean; /** The name of the blob. */ content?: string; } /** Properties of a blob */ export interface BlobPropertiesInternal { createdOn?: Date; lastModified: Date; etag: string; /** Size in bytes */ contentLength?: number; contentType?: string; contentEncoding?: string; contentLanguage?: string; contentMD5?: Uint8Array; contentDisposition?: string; cacheControl?: string; blobSequenceNumber?: number; blobType?: BlobType; leaseStatus?: LeaseStatusType; leaseState?: LeaseStateType; leaseDuration?: LeaseDurationType; copyId?: string; copyStatus?: CopyStatusType; copySource?: string; copyProgress?: string; copyCompletedOn?: Date; copyStatusDescription?: string; serverEncrypted?: boolean; incrementalCopy?: boolean; destinationSnapshot?: string; deletedOn?: Date; remainingRetentionDays?: number; accessTier?: AccessTier; accessTierInferred?: boolean; archiveStatus?: ArchiveStatus; customerProvidedKeySha256?: string; /** The name of the encryption scope under which the blob is encrypted. */ encryptionScope?: string; accessTierChangedOn?: Date; tagCount?: number; expiresOn?: Date; isSealed?: boolean; /** If an object is in rehydrate pending state then this header is returned with priority of rehydrate. Valid values are High and Standard. */ rehydratePriority?: RehydratePriority; lastAccessedOn?: Date; /** UTC date/time value generated by the service that indicates the time at which the blob immutability policy will expire. */ immutabilityPolicyExpiresOn?: Date; /** Indicates immutability policy mode. */ immutabilityPolicyMode?: BlobImmutabilityPolicyMode; /** Indicates if a legal hold is present on the blob. */ legalHold?: boolean; } /** An enumeration of blobs */ export interface ListBlobsHierarchySegmentResponse { serviceEndpoint: string; containerName: string; prefix?: string; marker?: string; maxPageSize?: number; delimiter?: string; segment: BlobHierarchyListSegment; continuationToken?: string; } export interface BlobHierarchyListSegment { blobPrefixes?: BlobPrefix[]; blobItems: BlobItemInternal[]; } export interface BlobPrefix { name: BlobName; } export interface BlockLookupList { committed?: string[]; uncommitted?: string[]; latest?: string[]; } export interface BlockList { committedBlocks?: Block[]; uncommittedBlocks?: Block[]; } /** Represents a single block in a block blob. It describes the block's ID and size. */ export interface Block { /** The base64 encoded block ID. */ name: string; /** The block size in bytes. */ size: number; } /** the list of pages */ export interface PageList { pageRange?: PageRange[]; clearRange?: ClearRange[]; continuationToken?: string; } export interface PageRange { start: number; end: number; } export interface ClearRange { start: number; end: number; } /** Groups the set of query request settings. */ export interface QueryRequest { /** Required. The type of the provided query expression. */ queryType: string; /** The query expression in SQL. The maximum size of the query expression is 256KiB. */ expression: string; inputSerialization?: QuerySerialization; outputSerialization?: QuerySerialization; } export interface QuerySerialization { format: QueryFormat; } export interface QueryFormat { /** The quick query format type. */ type: QueryFormatType; /** Groups the settings used for interpreting the blob data if the blob is delimited text formatted. */ delimitedTextConfiguration?: DelimitedTextConfiguration; /** json text configuration */ jsonTextConfiguration?: JsonTextConfiguration; /** Groups the settings used for formatting the response if the response should be Arrow formatted. */ arrowConfiguration?: ArrowConfiguration; /** parquet configuration */ parquetTextConfiguration?: Record<string, unknown>; } /** Groups the settings used for interpreting the blob data if the blob is delimited text formatted. */ export interface DelimitedTextConfiguration { /** The string used to separate columns. */ columnSeparator?: string; /** The string used to quote a specific field. */ fieldQuote?: string; /** The string used to separate records. */ recordSeparator?: string; /** The string used as an escape character. */ escapeChar?: string; /** Represents whether the data has headers. */ headersPresent?: boolean; } /** json text configuration */ export interface JsonTextConfiguration { /** The string used to separate records. */ recordSeparator?: string; } /** Groups the settings used for formatting the response if the response should be Arrow formatted. */ export interface ArrowConfiguration { schema: ArrowField[]; } /** Groups settings regarding specific field of an arrow schema */ export interface ArrowField { type: string; name?: string; precision?: number; scale?: number; } /** Defines headers for Service_setProperties operation. */ export interface ServiceSetPropertiesHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_setProperties operation. */ export interface ServiceSetPropertiesExceptionHeaders { errorCode?: string; } /** Defines headers for Service_getProperties operation. */ export interface ServiceGetPropertiesHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_getProperties operation. */ export interface ServiceGetPropertiesExceptionHeaders { errorCode?: string; } /** Defines headers for Service_getStatistics operation. */ export interface ServiceGetStatisticsHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_getStatistics operation. */ export interface ServiceGetStatisticsExceptionHeaders { errorCode?: string; } /** Defines headers for Service_listContainersSegment operation. */ export interface ServiceListContainersSegmentHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_listContainersSegment operation. */ export interface ServiceListContainersSegmentExceptionHeaders { 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_getUserDelegationKey operation. */ export interface ServiceGetUserDelegationKeyExceptionHeaders { errorCode?: string; } /** Defines headers for Service_getAccountInfo operation. */ export interface ServiceGetAccountInfoHeaders { /** 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; /** Identifies the sku name of the account */ skuName?: SkuName; /** Identifies the account kind */ accountKind?: AccountKind; /** Version 2019-07-07 and newer. Indicates if the account has a hierarchical namespace enabled. */ isHierarchicalNamespaceEnabled?: boolean; /** Error Code */ errorCode?: string; } /** Defines headers for Service_getAccountInfo operation. */ export interface ServiceGetAccountInfoExceptionHeaders { errorCode?: string; } /** Defines headers for Service_submitBatch operation. */ export interface ServiceSubmitBatchHeaders { /** The media type of the body of the response. For batch requests, this is multipart/mixed; boundary=batchresponse_GUID */ 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 Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above. */ version?: 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_submitBatch operation. */ export interface ServiceSubmitBatchExceptionHeaders { errorCode?: string; } /** Defines headers for Service_filterBlobs operation. */ export interface ServiceFilterBlobsHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Service_filterBlobs operation. */ export interface ServiceFilterBlobsExceptionHeaders { errorCode?: string; } /** Defines headers for Container_create operation. */ export interface ContainerCreateHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ 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 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_create operation. */ export interface ContainerCreateExceptionHeaders { errorCode?: string; } /** Defines headers for Container_getProperties operation. */ export interface ContainerGetPropertiesHeaders { metadata?: { [propertyName: string]: string; }; /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ lastModified?: Date; /** When a blob is leased, specifies whether the lease is of infinite or fixed duration. */ leaseDuration?: LeaseDurationType; /** Lease state of the blob. */ leaseState?: LeaseStateType; /** The current lease status of the blob. */ leaseStatus?: LeaseStatusType; /** 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; /** Indicated whether data in the container may be accessed publicly and the level of access */ blobPublicAccess?: PublicAccessType; /** Indicates whether the container has an immutability policy set on it. */ hasImmutabilityPolicy?: boolean; /** Indicates whether the container has a legal hold. */ hasLegalHold?: boolean; /** The default encryption scope for the container. */ defaultEncryptionScope?: string; /** Indicates whether the container's default encryption scope can be overriden. */ denyEncryptionScopeOverride?: boolean; /** Indicates whether version level worm is enabled on a container. */ isImmutableStorageWithVersioningEnabled?: boolean; /** Error Code */ errorCode?: string; } /** Defines headers for Container_getProperties operation. */ export interface ContainerGetPropertiesExceptionHeaders { errorCode?: string; } /** Defines headers for Container_delete operation. */ export interface ContainerDeleteHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_delete operation. */ export interface ContainerDeleteExceptionHeaders { errorCode?: string; } /** Defines headers for Container_setMetadata operation. */ export interface ContainerSetMetadataHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ 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 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_setMetadata operation. */ export interface ContainerSetMetadataExceptionHeaders { errorCode?: string; } /** Defines headers for Container_getAccessPolicy operation. */ export interface ContainerGetAccessPolicyHeaders { /** Indicated whether data in the container may be accessed publicly and the level of access */ blobPublicAccess?: PublicAccessType; /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ 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 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_getAccessPolicy operation. */ export interface ContainerGetAccessPolicyExceptionHeaders { errorCode?: string; } /** Defines headers for Container_setAccessPolicy operation. */ export interface ContainerSetAccessPolicyHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ 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 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_setAccessPolicy operation. */ export interface ContainerSetAccessPolicyExceptionHeaders { errorCode?: string; } /** Defines headers for Container_restore operation. */ export interface ContainerRestoreHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_restore operation. */ export interface ContainerRestoreExceptionHeaders { errorCode?: string; } /** Defines headers for Container_rename operation. */ export interface ContainerRenameHeaders { /** 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_rename operation. */ export interface ContainerRenameExceptionHeaders { errorCode?: string; } /** Defines headers for Container_submitBatch operation. */ export interface ContainerSubmitBatchHeaders { /** The media type of the body of the response. For batch requests, this is multipart/mixed; boundary=batchresponse_GUID */ 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 Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above. */ version?: string; } /** Defines headers for Container_submitBatch operation. */ export interface ContainerSubmitBatchExceptionHeaders { errorCode?: string; } /** Defines headers for Container_filterBlobs operation. */ export interface ContainerFilterBlobsHeaders { /** 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 Container_filterBlobs operation. */ export interface ContainerFilterBlobsExceptionHeaders { errorCode?: string; } /** Defines headers for Container_acquireLease operation. */ export interface ContainerAcquireLeaseHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ lastModified?: Date; /** Uniquely identifies a container'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 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 Container_acquireLease operation. */ export interface ContainerAcquireLeaseExceptionHeaders { errorCode?: string; } /** Defines headers for Container_releaseLease operation. */ export interface ContainerReleaseLeaseHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ 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 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 Container_releaseLease operation. */ export interface ContainerReleaseLeaseExceptionHeaders { errorCode?: string; } /** Defines headers for Container_renewLease operation. */ export interface ContainerRenewLeaseHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ lastModified?: Date; /** Uniquely identifies a container'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 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 Container_renewLease operation. */ export interface ContainerRenewLeaseExceptionHeaders { errorCode?: string; } /** Defines headers for Container_breakLease operation. */ export interface ContainerBreakLeaseHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ lastModified?: Date; /** Approximate time remaining in the lease period, in seconds. */ leaseTime?: number; /** 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 Container_breakLease operation. */ export interface ContainerBreakLeaseExceptionHeaders { errorCode?: string; } /** Defines headers for Container_changeLease operation. */ export interface ContainerChangeLeaseHeaders { /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ lastModified?: Date; /** Uniquely identifies a container'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 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 Container_changeLease operation. */ export interface ContainerChangeLeaseExceptionHeaders { errorCode?: string; } /** Defines headers for Container_listBlobFlatSegment operation. */ export interface ContainerListBlobFlatSegmentHeaders { /** The media type of the body of the response. For List Blobs this is 'application/xml' */ contentType?: 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 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_listBlobFlatSegment operation. */ export interface ContainerListBlobFlatSegmentExceptionHeaders { errorCode?: string; } /** Defines headers for Container_listBlobHierarchySegment operation. */ export interface ContainerListBlobHierarchySegmentHeaders { /** The media type of the body of the response. For List Blobs this is 'application/xml' */ contentType?: 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 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; /** Error Code */ errorCode?: string; } /** Defines headers for Container_listBlobHierarchySegment operation. */ export interface ContainerListBlobHierarchySegmentExceptionHeaders { errorCode?: string; } /** Defines headers for Container_getAccountInfo operation. */ export interface ContainerGetAccountInfoHeaders { /** 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; /** Identifies the sku name of the account */ skuName?: SkuName; /** Identifies the account kind */ accountKind?: AccountKind; /** Version 2019-07-07 and newer. Indicates if the account has a hierarchical namespace enabled. */ isHierarchicalNamespaceEnabled?: boolean; } /** Defines headers for Container_getAccountInfo operation. */ export interface ContainerGetAccountInfoExceptionHeaders { errorCode?: string; } /** Defines headers for Blob_download operation. */ export interface BlobDownloadHeaders { /** Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob. */ lastModified?: Date; /** Returns the date and time the blob was created. */ createdOn?: Date; metadata?: { [propertyName: string]: string; }; /** Optional. Only valid when Object Replication is enabled for the storage container and on the destination blob of the replication. */ objectReplicationPolicyId?: string; /** Optional. Only valid when Object Replication is enabled for the storage container and on the source blob of the replication. When retrieving this header, it will return the header with the policy id and rule id (e.g. x-ms-or-policyid_ruleid), and the value will be the status of the replication (e.g. complete, failed). */ objectReplicationRules?: { [propertyName: string]: string; }; /** The number of bytes present in the response body. */ contentLength?: number; /** The media type of the body of the response. For Download Blob this is 'application/octet-stream' */ contentType?: string; /** Indicates the range of bytes returned in the event that the client requested a subset of the blob by setting the 'Range' request header. */ contentRange?: string; /** The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes. */ etag?: string; /** If the blob has an MD5 hash and this operation is to read the full blob, this response header is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; /** This header returns the value that was specified for the Content-Encoding request header */ contentEncoding?: string; /** This header is returned if it was previously specified for the blob. */ cacheControl?: string; /** This header returns the value that was specified for the 'x-ms-blob-content-disposition' header. The Content-Disposition response header field conveys additional information about how to process the response payload, and also can be used to attach additional metadata. For example, if set to attachment, it indicates that the user-agent should not display the response, but instead show a Save As dialog with a filename other than the blob name specified. */ contentDisposition?: string; /** This header returns the value that was specified for the Content-Language request header. */ contentLanguage?: string; /** The current sequence number for a page blob. This header is not returned for block blobs or append blobs */ blobSequenceNumber?: number; /** The blob's type. */ blobType?: BlobType; /** Conclusion time of the last attempted Copy Blob operation where this blob was the destination blob. This value can specify the time of a completed, aborted, or failed copy attempt. This header does not appear if a copy is pending, if this blob has never been the destination in a Copy Blob operation, or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties, Put Blob, or Put Block List. */ copyCompletedOn?: Date; /** Only appears when x-ms-copy-status is failed or pending. Describes the cause of the last fatal or non-fatal copy operation failure. This header does not appear if this blob has never been the destination in a Copy Blob operation, or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties, Put Blob, or Put Block List */ copyStatusDescription?: string; /** String identifier for this copy operation. Use with Get Blob Properties to check the status of this copy operation, or pass to Abort Copy Blob to abort a pending copy. */ copyId?: string; /** Contains the number of bytes copied and the total bytes in the source in the last attempted Copy Blob operation where this blob was the destination blob. Can show between 0 and Content-Length bytes copied. This header does not appear if this blob has never been the destination in a Copy Blob operation, or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties, Put Blob, or Put Block List */ copyProgress?: string; /** URL up to 2 KB in length that specifies the source blob or file used in the last attempted Copy Blob operation where this blob was the destination blob. This header does not appear if this blob has never been the destination in a Copy Blob operation, or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties, Put Blob, or Put Block List. */ copySource?: string; /** State of the copy operation identified by x-ms-copy-id. */ copyStatus?: CopyStatusType; /** When a blob is leased, specifies whether the lease is of infinite or fixed duration. */ leaseDuration?: LeaseDurationType; /** Lease state of the blob. */ leaseState?: LeaseStateType; /** The current lease status of the blob. */ leaseStatus?: LeaseStatusType; /** 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; /** A DateTime value returned by the service that uniquely identifies the blob. The value of this header indicates the blob version, and may be used in subsequent requests to access this version of the blob. */ versionId?: strin