-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Storage] Support blob tags (recording will be added later) #9440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,6 +208,7 @@ export interface AppendBlobCreateOptions extends CommonOptions { | |
| customerProvidedKey?: CpkInfo; | ||
| encryptionScope?: string; | ||
| metadata?: Metadata; | ||
| tags?: Tags; | ||
| } | ||
|
|
||
| // @public | ||
|
|
@@ -373,10 +374,12 @@ export class BlobClient extends StorageClient { | |
| getBlockBlobClient(): BlockBlobClient; | ||
| getPageBlobClient(): PageBlobClient; | ||
| getProperties(options?: BlobGetPropertiesOptions): Promise<BlobGetPropertiesResponse>; | ||
| getTags(options?: BlobGetTagsOptions): Promise<BlobGetTagsResponse>; | ||
| get name(): string; | ||
| setAccessTier(tier: BlockBlobTier | PremiumPageBlobTier | string, options?: BlobSetTierOptions): Promise<BlobSetTierResponse>; | ||
| setHTTPHeaders(blobHTTPHeaders?: BlobHTTPHeaders, options?: BlobSetHTTPHeadersOptions): Promise<BlobSetHTTPHeadersResponse>; | ||
| setMetadata(metadata?: Metadata, options?: BlobSetMetadataOptions): Promise<BlobSetMetadataResponse>; | ||
| setTags(tags: Tags, options?: BlobSetTagsOptions): Promise<BlobSetTagsResponse>; | ||
| syncCopyFromURL(copySource: string, options?: BlobSyncCopyFromURLOptions): Promise<BlobCopyFromURLResponse>; | ||
| undelete(options?: BlobUndeleteOptions): Promise<BlobUndeleteResponse>; | ||
| withSnapshot(snapshot: string): BlobClient; | ||
|
|
@@ -642,6 +645,32 @@ export type BlobGetPropertiesResponse = BlobGetPropertiesHeaders & { | |
| }; | ||
| }; | ||
|
|
||
| // @public | ||
| export interface BlobGetTagsHeaders { | ||
| clientRequestId?: string; | ||
| date?: Date; | ||
| // (undocumented) | ||
| errorCode?: string; | ||
| requestId?: string; | ||
| version?: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface BlobGetTagsOptions extends CommonOptions { | ||
| abortSignal?: AbortSignalLike; | ||
| } | ||
|
|
||
| // @public | ||
| export type BlobGetTagsResponse = { | ||
| tags: Tags; | ||
| } & BlobGetTagsHeaders & { | ||
| _response: HttpResponse & { | ||
| parsedHeaders: BlobGetTagsHeaders; | ||
| bodyAsText: string; | ||
| parsedBody: BlobTags; | ||
| }; | ||
| }; | ||
|
|
||
| // @public | ||
| export interface BlobHierarchyListSegment { | ||
| // (undocumented) | ||
|
|
@@ -662,10 +691,6 @@ export interface BlobHTTPHeaders { | |
|
|
||
| // @public | ||
| export interface BlobItem { | ||
| // Warning: (ae-forgotten-export) The symbol "BlobTags" needs to be exported by the entry point index.d.ts | ||
| // | ||
| // (undocumented) | ||
| blobTags?: BlobTags; | ||
| // (undocumented) | ||
| deleted: boolean; | ||
| // (undocumented) | ||
|
|
@@ -685,6 +710,8 @@ export interface BlobItem { | |
| // (undocumented) | ||
| snapshot: string; | ||
| // (undocumented) | ||
| tags?: Tags; | ||
| // (undocumented) | ||
| versionId?: string; | ||
| } | ||
|
|
||
|
|
@@ -833,6 +860,7 @@ export class BlobSASPermissions { | |
| deleteVersion: boolean; | ||
| static parse(permissions: string): BlobSASPermissions; | ||
| read: boolean; | ||
| tag: boolean; | ||
| toString(): string; | ||
| write: boolean; | ||
| } | ||
|
|
@@ -866,6 +894,7 @@ export class BlobServiceClient extends StorageClient { | |
| containerCreateResponse: ContainerCreateResponse; | ||
| }>; | ||
| deleteContainer(containerName: string, options?: ContainerDeleteMethodOptions): Promise<ContainerDeleteResponse>; | ||
| findBlobsByTags(tagFilterSqlExpression: string, options?: ServiceFindBlobByTagsOptions): PagedAsyncIterableIterator<FilterBlobItem, ServiceFindBlobsByTagsSegmentResponse>; | ||
| static fromConnectionString(connectionString: string, options?: StoragePipelineOptions): BlobServiceClient; | ||
| getAccountInfo(options?: ServiceGetAccountInfoOptions): Promise<ServiceGetAccountInfoResponse>; | ||
| getBlobBatchClient(): BlobBatchClient; | ||
|
|
@@ -957,6 +986,28 @@ export type BlobSetMetadataResponse = BlobSetMetadataHeaders & { | |
| }; | ||
| }; | ||
|
|
||
| // @public | ||
| export interface BlobSetTagsHeaders { | ||
| clientRequestId?: string; | ||
| date?: Date; | ||
| // (undocumented) | ||
| errorCode?: string; | ||
| requestId?: string; | ||
| version?: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface BlobSetTagsOptions extends CommonOptions { | ||
| abortSignal?: AbortSignalLike; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we hide these options: export interface BlobSetTagsOptionalParams extends coreHttp.RequestOptionsBase {
...
/**
* Specify the transactional md5 for the body, to be validated by the service.
*/
transactionalContentMD5?: Uint8Array;
/**
* Specify the transactional crc64 for the body, to be validated by the service.
*/
transactionalContentCrc64?: Uint8Array;
/**
* Additional parameters for the operation
*/
modifiedAccessConditions?: ModifiedAccessConditions;
} |
||
| } | ||
|
|
||
| // @public | ||
| export type BlobSetTagsResponse = BlobSetTagsHeaders & { | ||
| _response: coreHttp.HttpResponse & { | ||
| parsedHeaders: BlobSetTagsHeaders; | ||
| }; | ||
| }; | ||
|
|
||
| // @public | ||
| export interface BlobSetTierHeaders { | ||
| clientRequestId?: string; | ||
|
|
@@ -1002,6 +1053,7 @@ export interface BlobStartCopyFromURLOptions extends CommonOptions { | |
| metadata?: Metadata; | ||
| rehydratePriority?: RehydratePriority; | ||
| sourceConditions?: ModifiedAccessConditions; | ||
| tags?: Tags; | ||
| tier?: BlockBlobTier | PremiumPageBlobTier | string; | ||
| } | ||
|
|
||
|
|
@@ -1019,6 +1071,21 @@ export interface BlobSyncCopyFromURLOptions extends CommonOptions { | |
| metadata?: Metadata; | ||
| sourceConditions?: ModifiedAccessConditions; | ||
| sourceContentMD5?: Uint8Array; | ||
| tags?: Tags; | ||
| } | ||
|
|
||
| // @public | ||
| export interface BlobTag { | ||
| // (undocumented) | ||
| key: string; | ||
| // (undocumented) | ||
| value: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface BlobTags { | ||
| // (undocumented) | ||
| blobTagSet: BlobTag[]; | ||
|
XiaoningLiu marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| // @public | ||
|
|
@@ -1101,6 +1168,7 @@ export interface BlockBlobCommitBlockListOptions extends CommonOptions { | |
| customerProvidedKey?: CpkInfo; | ||
| encryptionScope?: string; | ||
| metadata?: Metadata; | ||
| tags?: Tags; | ||
| tier?: BlockBlobTier | string; | ||
| } | ||
|
|
||
|
|
@@ -1153,6 +1221,7 @@ export interface BlockBlobParallelUploadOptions extends CommonOptions { | |
| [propertyName: string]: string; | ||
| }; | ||
| onProgress?: (progress: TransferProgressEvent) => void; | ||
| tags?: Tags; | ||
| } | ||
|
|
||
| // @public | ||
|
|
@@ -1265,6 +1334,7 @@ export interface BlockBlobUploadOptions extends CommonOptions { | |
| encryptionScope?: string; | ||
| metadata?: Metadata; | ||
| onProgress?: (progress: TransferProgressEvent) => void; | ||
| tags?: Tags; | ||
| tier?: BlockBlobTier | string; | ||
| } | ||
|
|
||
|
|
@@ -1285,6 +1355,7 @@ export interface BlockBlobUploadStreamOptions extends CommonOptions { | |
| [propertyName: string]: string; | ||
| }; | ||
| onProgress?: (progress: TransferProgressEvent) => void; | ||
| tags?: Tags; | ||
| } | ||
|
|
||
| // @public | ||
|
|
@@ -1522,10 +1593,10 @@ export interface ContainerListBlobFlatSegmentHeaders { | |
|
|
||
| // @public | ||
| export type ContainerListBlobFlatSegmentResponse = ListBlobsFlatSegmentResponse & ContainerListBlobFlatSegmentHeaders & { | ||
| _response: coreHttp.HttpResponse & { | ||
| _response: HttpResponse & { | ||
| parsedHeaders: ContainerListBlobFlatSegmentHeaders; | ||
| bodyAsText: string; | ||
| parsedBody: ListBlobsFlatSegmentResponse; | ||
| parsedBody: ListBlobsFlatSegmentResponseModel; | ||
| }; | ||
| }; | ||
|
|
||
|
|
@@ -1542,10 +1613,10 @@ export interface ContainerListBlobHierarchySegmentHeaders { | |
|
|
||
| // @public | ||
| export type ContainerListBlobHierarchySegmentResponse = ListBlobsHierarchySegmentResponse & ContainerListBlobHierarchySegmentHeaders & { | ||
| _response: coreHttp.HttpResponse & { | ||
| _response: HttpResponse & { | ||
| parsedHeaders: ContainerListBlobHierarchySegmentHeaders; | ||
| bodyAsText: string; | ||
| parsedBody: ListBlobsHierarchySegmentResponse; | ||
| parsedBody: ListBlobsHierarchySegmentResponseModel; | ||
| }; | ||
| }; | ||
|
|
||
|
|
@@ -1556,6 +1627,7 @@ export interface ContainerListBlobsOptions extends CommonOptions { | |
| includeDeleted?: boolean; | ||
| includeMetadata?: boolean; | ||
| includeSnapshots?: boolean; | ||
| includeTags?: boolean; | ||
| includeUncommitedBlobs?: boolean; | ||
| includeVersions?: boolean; | ||
| prefix?: string; | ||
|
|
@@ -1605,6 +1677,7 @@ export class ContainerSASPermissions { | |
| list: boolean; | ||
| static parse(permissions: string): ContainerSASPermissions; | ||
| read: boolean; | ||
| tag: boolean; | ||
| toString(): string; | ||
| write: boolean; | ||
| } | ||
|
|
@@ -1705,6 +1778,28 @@ export { deserializationPolicy } | |
| // @public | ||
| export type EncryptionAlgorithmType = 'AES256'; | ||
|
|
||
| // @public | ||
| export interface FilterBlobItem { | ||
|
XiaoningLiu marked this conversation as resolved.
Outdated
|
||
| // (undocumented) | ||
| containerName: string; | ||
| // (undocumented) | ||
| name: string; | ||
| // (undocumented) | ||
| tagValue: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface FilterBlobSegment { | ||
| // (undocumented) | ||
| blobs: FilterBlobItem[]; | ||
| // (undocumented) | ||
| continuationToken?: string; | ||
| // (undocumented) | ||
| serviceEndpoint: string; | ||
| // (undocumented) | ||
| where: string; | ||
| } | ||
|
|
||
| // @public | ||
| export function generateAccountSASQueryParameters(accountSASSignatureValues: AccountSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; | ||
|
|
||
|
|
@@ -1788,6 +1883,26 @@ export interface ListBlobsFlatSegmentResponse { | |
| serviceEndpoint: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface ListBlobsFlatSegmentResponseModel { | ||
| // (undocumented) | ||
| containerName: string; | ||
| // (undocumented) | ||
| continuationToken?: string; | ||
| // (undocumented) | ||
| marker?: string; | ||
| // (undocumented) | ||
| maxPageSize?: number; | ||
| // (undocumented) | ||
| prefix?: string; | ||
| // Warning: (ae-forgotten-export) The symbol "BlobFlatListSegment" needs to be exported by the entry point index.d.ts | ||
| // | ||
| // (undocumented) | ||
| segment: BlobFlatListSegment_2; | ||
| // (undocumented) | ||
| serviceEndpoint: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface ListBlobsHierarchySegmentResponse { | ||
| // (undocumented) | ||
|
|
@@ -1808,6 +1923,28 @@ export interface ListBlobsHierarchySegmentResponse { | |
| serviceEndpoint: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface ListBlobsHierarchySegmentResponseModel { | ||
| // (undocumented) | ||
| containerName: string; | ||
| // (undocumented) | ||
| continuationToken?: string; | ||
| // (undocumented) | ||
| delimiter?: string; | ||
| // (undocumented) | ||
| marker?: string; | ||
| // (undocumented) | ||
| maxPageSize?: number; | ||
| // (undocumented) | ||
| prefix?: string; | ||
| // Warning: (ae-forgotten-export) The symbol "BlobHierarchyListSegment" needs to be exported by the entry point index.d.ts | ||
| // | ||
| // (undocumented) | ||
| segment: BlobHierarchyListSegment_2; | ||
| // (undocumented) | ||
| serviceEndpoint: string; | ||
| } | ||
|
|
||
| // @public | ||
| export type ListBlobsIncludeItem = 'copy' | 'deleted' | 'metadata' | 'snapshots' | 'uncommittedblobs' | 'versions' | 'tags'; | ||
|
|
||
|
|
@@ -1964,6 +2101,7 @@ export interface PageBlobCreateOptions extends CommonOptions { | |
| customerProvidedKey?: CpkInfo; | ||
| encryptionScope?: string; | ||
| metadata?: Metadata; | ||
| tags?: Tags; | ||
| tier?: PremiumPageBlobTier | string; | ||
| } | ||
|
|
||
|
|
@@ -2280,6 +2418,30 @@ export interface SequenceNumberAccessConditions { | |
| // @public | ||
| export type SequenceNumberActionType = 'max' | 'update' | 'increment'; | ||
|
|
||
| // @public | ||
| export interface ServiceFilterBlobsHeaders { | ||
| clientRequestId?: string; | ||
| date?: Date; | ||
| // (undocumented) | ||
| errorCode?: string; | ||
| requestId?: string; | ||
| version?: string; | ||
| } | ||
|
|
||
| // @public | ||
| export interface ServiceFindBlobByTagsOptions extends CommonOptions { | ||
| abortSignal?: AbortSignalLike; | ||
| } | ||
|
|
||
| // @public | ||
| export type ServiceFindBlobsByTagsSegmentResponse = FilterBlobSegment & ServiceFilterBlobsHeaders & { | ||
| _response: coreHttp.HttpResponse & { | ||
| parsedHeaders: ServiceFilterBlobsHeaders; | ||
| bodyAsText: string; | ||
| parsedBody: FilterBlobSegment; | ||
| }; | ||
| }; | ||
|
|
||
| // @public | ||
| export interface ServiceGetAccountInfoHeaders { | ||
| accountKind?: AccountKind; | ||
|
|
@@ -2543,6 +2705,9 @@ export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { | |
| // @public | ||
| export type SyncCopyStatusType = 'success'; | ||
|
|
||
| // @public | ||
| export type Tags = Record<string, string>; | ||
|
|
||
| // @public | ||
| export interface UserDelegationKey { | ||
| signedExpiresOn: Date; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.