diff --git a/sdk/storage/azure-storage-blob/CHANGELOG.md b/sdk/storage/azure-storage-blob/CHANGELOG.md index 64e0da6e8f89..6187e09b9fc3 100644 --- a/sdk/storage/azure-storage-blob/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob/CHANGELOG.md @@ -3,6 +3,11 @@ ## 12.8.0-beta.2 (Unreleased) - Fixed a bug that, when the data length parameter did not match the actual length of the data in BlobClient.upload, caused a zero length blob to be uploaded rather than throwing an exception. - Fixed a bug that ignored the customer's specified block size when determining buffer sizes in BlobClient.upload +- Added support for Object Replication Service on listBlobs and getProperties. +- Added support for blob tags. Added tagsConditions to BlobRequestConditions that allow a user to specify a SQL statement for the blob's tags to satisfy. +- Added support for setting tags and filterTags operations on SAS by adding to AccountSASPermissions, BlobSASPermissions, and BlobContainerSASPermissions. +- Added support for setting and getting the StaticWebsite.DefaultIndexDocumentPath property on the service client. +- Added RehydratePriority to BlobProperties and BlobItemProperties. - Fixed bug where Query Input Stream would throw when a ByteBuffer of length 0 was encountered. ## 12.8.0-beta.1 (2020-07-07) diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java index d3cb58d1b195..006d402fb435 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java @@ -251,6 +251,7 @@ public static BlobItemProperties populateBlobItemProperties(BlobItemPropertiesIn blobItemProperties.setEncryptionScope(blobItemPropertiesInternal.getEncryptionScope()); blobItemProperties.setAccessTierChangeTime(blobItemPropertiesInternal.getAccessTierChangeTime()); blobItemProperties.setTagCount(blobItemPropertiesInternal.getTagCount()); + blobItemProperties.setRehydratePriority(blobItemPropertiesInternal.getRehydratePriority()); return blobItemProperties; } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobItemProperties.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobItemProperties.java index 877ca109e249..624802bddbb9 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobItemProperties.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobItemProperties.java @@ -218,6 +218,12 @@ public final class BlobItemProperties { @JsonProperty(value = "TagCount") private Integer tagCount; + /* + * Possible values include: 'High', 'Standard' + */ + @JsonProperty(value = "RehydratePriority") + private RehydratePriority rehydratePriority; + /** * Get the creationTime property: The creationTime property. * @@ -904,4 +910,26 @@ public BlobItemProperties setTagCount(Integer tagCount) { this.tagCount = tagCount; return this; } + + /** + * Get the rehydratePriority property: Possible values include: 'High', + * 'Standard'. + * + * @return the rehydratePriority value. + */ + public RehydratePriority getRehydratePriority() { + return this.rehydratePriority; + } + + /** + * Set the rehydratePriority property: Possible values include: 'High', + * 'Standard'. + * + * @param rehydratePriority the rehydratePriority value to set. + * @return the BlobItemProperties object itself. + */ + public BlobItemProperties setRehydratePriority(RehydratePriority rehydratePriority) { + this.rehydratePriority = rehydratePriority; + return this; + } } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobProperties.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobProperties.java index 817275a032e6..07d54841107a 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobProperties.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobProperties.java @@ -55,6 +55,7 @@ public final class BlobProperties { private final Boolean isCurrentVersion; private final List objectReplicationSourcePolicies; private final String objectReplicationDestinationPolicyId; + private final RehydratePriority rehydratePriority; /** * Constructs a {@link BlobProperties}. @@ -109,8 +110,8 @@ public BlobProperties(final OffsetDateTime creationTime, final OffsetDateTime la contentLanguage, cacheControl, blobSequenceNumber, blobType, leaseStatus, leaseState, leaseDuration, copyId, copyStatus, copySource, copyProgress, copyCompletionTime, copyStatusDescription, isServerEncrypted, isIncrementalCopy, copyDestinationSnapshot, accessTier, isAccessTierInferred, archiveStatus, - encryptionKeySha256, null, accessTierChangeTime, metadata, committedBlockCount, null, null, - null, null, null); + encryptionKeySha256, null, accessTierChangeTime, metadata, committedBlockCount, (Long) null, + null, null, null, null); } /** @@ -155,6 +156,7 @@ public BlobProperties(final OffsetDateTime creationTime, final OffsetDateTime la * @param isCurrentVersion Flag indicating if version identifier points to current version of the blob. * @param tagCount Number of tags associated with the blob. * @param objectReplicationStatus The object replication status map to parse. + * @param rehydratePriority The rehydrate priority */ public BlobProperties(final OffsetDateTime creationTime, final OffsetDateTime lastModified, final String eTag, final long blobSize, final String contentType, final byte[] contentMd5, final String contentEncoding, @@ -167,7 +169,7 @@ public BlobProperties(final OffsetDateTime creationTime, final OffsetDateTime la final Boolean isAccessTierInferred, final ArchiveStatus archiveStatus, final String encryptionKeySha256, final String encryptionScope, final OffsetDateTime accessTierChangeTime, final Map metadata, final Integer committedBlockCount, final String versionId, final Boolean isCurrentVersion, - final Long tagCount, Map objectReplicationStatus) { + final Long tagCount, Map objectReplicationStatus, String rehydratePriority) { this.creationTime = creationTime; this.lastModified = lastModified; this.eTag = eTag; @@ -224,6 +226,7 @@ public BlobProperties(final OffsetDateTime creationTime, final OffsetDateTime la for (Map.Entry> entry : internalSourcePolicies.entrySet()) { this.objectReplicationSourcePolicies.add(new ObjectReplicationPolicy(entry.getKey(), entry.getValue())); } + this.rehydratePriority = RehydratePriority.fromString(rehydratePriority); } @@ -322,6 +325,7 @@ public BlobProperties(final OffsetDateTime creationTime, final OffsetDateTime la this.isCurrentVersion = isCurrentVersion; this.objectReplicationSourcePolicies = objectReplicationSourcePolicies; this.objectReplicationDestinationPolicyId = objectReplicationDestinationPolicyId; + this.rehydratePriority = null; } /** @@ -596,4 +600,11 @@ public List getObjectReplicationSourcePolicies() { public String getObjectReplicationDestinationPolicyId() { return this.objectReplicationDestinationPolicyId; } + + /** + * @return The {@link RehydratePriority} of the blob if it is in RehydratePending state. + */ + public RehydratePriority getRehydratePriority() { + return this.rehydratePriority; + } } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java index fef7e2ead188..8b92c9ff0946 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java @@ -1215,7 +1215,7 @@ Mono> getPropertiesWithResponse(BlobRequestConditions r hd.isAccessTierInferred(), ArchiveStatus.fromString(hd.getArchiveStatus()), hd.getEncryptionKeySha256(), hd.getEncryptionScope(), hd.getAccessTierChangeTime(), hd.getMetadata(), hd.getBlobCommittedBlockCount(), hd.getVersionId(), hd.isCurrentVersion(), - hd.getTagCount(), hd.getObjectReplicationRules()); + hd.getTagCount(), hd.getObjectReplicationRules(), hd.getRehydratePriority()); return new SimpleResponse<>(rb, properties); }); } diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy index c17a11dd835b..fcaa8cc109af 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy @@ -942,6 +942,7 @@ class BlobAPITest extends APISpec { properties.getArchiveStatus() == null properties.getCreationTime() != null properties.getTagCount() == 1 + properties.getRehydratePriority() == null // tested in setTier rehydrate priority } def "Get properties min"() { @@ -2346,10 +2347,33 @@ class BlobAPITest extends APISpec { cc.listBlobs().iterator().next().getProperties().getArchiveStatus() == status where: - sourceTier | destTier | priority | status - AccessTier.ARCHIVE | AccessTier.COOL | RehydratePriority.STANDARD | ArchiveStatus.REHYDRATE_PENDING_TO_COOL - AccessTier.ARCHIVE | AccessTier.HOT | RehydratePriority.STANDARD | ArchiveStatus.REHYDRATE_PENDING_TO_HOT - AccessTier.ARCHIVE | AccessTier.HOT | RehydratePriority.HIGH | ArchiveStatus.REHYDRATE_PENDING_TO_HOT + sourceTier | destTier || status + AccessTier.ARCHIVE | AccessTier.COOL || ArchiveStatus.REHYDRATE_PENDING_TO_COOL + AccessTier.ARCHIVE | AccessTier.HOT || ArchiveStatus.REHYDRATE_PENDING_TO_HOT + AccessTier.ARCHIVE | AccessTier.HOT || ArchiveStatus.REHYDRATE_PENDING_TO_HOT + } + + @Unroll + def "Set tier rehydrate priority"() { + setup: + if (rehydratePriority != null) { + bc.setAccessTier(AccessTier.ARCHIVE) + + bc.setAccessTierWithResponse(new BlobSetAccessTierOptions(AccessTier.HOT).setPriority(rehydratePriority), null, null) + } + + when: + def resp = bc.getPropertiesWithResponse(null, null, null) + + then: + resp.getStatusCode() == 200 + resp.getValue().getRehydratePriority() == rehydratePriority + + where: + rehydratePriority || _ + null || _ + RehydratePriority.STANDARD || _ + RehydratePriority.HIGH || _ } def "Set tier error"() { diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy index ca0004a8bdc2..69c1dd1cb6cf 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy @@ -22,6 +22,8 @@ import com.azure.storage.blob.models.LeaseStatusType import com.azure.storage.blob.models.ListBlobsOptions import com.azure.storage.blob.models.ObjectReplicationPolicy import com.azure.storage.blob.models.ObjectReplicationStatus +import com.azure.storage.blob.models.RehydratePriority +import com.azure.storage.blob.options.BlobSetAccessTierOptions import com.azure.storage.blob.options.PageBlobCreateOptions import com.azure.storage.blob.models.PublicAccessType import com.azure.storage.blob.specialized.AppendBlobClient @@ -937,6 +939,32 @@ class ContainerAPITest extends APISpec { pagedResponse2.getContinuationToken() == null } + @Unroll + def "List blobs flat rehydrate priority"() { + setup: + def name = generateBlobName() + def bc = cc.getBlobClient(name).getBlockBlobClient() + bc.upload(defaultInputStream.get(), 7) + + if (rehydratePriority != null) { + bc.setAccessTier(AccessTier.ARCHIVE) + + bc.setAccessTierWithResponse(new BlobSetAccessTierOptions(AccessTier.HOT).setPriority(rehydratePriority), null, null) + } + + when: + def item = cc.listBlobs().iterator().next() + + then: + item.getProperties().getRehydratePriority() == rehydratePriority + + where: + rehydratePriority || _ + null || _ + RehydratePriority.STANDARD || _ + RehydratePriority.HIGH || _ + } + def "List blobs flat error"() { setup: cc = primaryBlobServiceClient.getBlobContainerClient(generateContainerName()) @@ -1317,6 +1345,32 @@ class ContainerAPITest extends APISpec { cc.listBlobs(new ListBlobsOptions().setMaxResultsPerPage(PAGE_SIZE), null).stream().count() == NUM_BLOBS } + @Unroll + def "List blobs hier rehydrate priority"() { + setup: + def name = generateBlobName() + def bc = cc.getBlobClient(name).getBlockBlobClient() + bc.upload(defaultInputStream.get(), 7) + + if (rehydratePriority != null) { + bc.setAccessTier(AccessTier.ARCHIVE) + + bc.setAccessTierWithResponse(new BlobSetAccessTierOptions(AccessTier.HOT).setPriority(rehydratePriority), null, null) + } + + when: + def item = cc.listBlobsByHierarchy(null).iterator().next() + + then: + item.getProperties().getRehydratePriority() == rehydratePriority + + where: + rehydratePriority || _ + null || _ + RehydratePriority.STANDARD || _ + RehydratePriority.HIGH || _ + } + def "List blobs hier error"() { setup: cc = primaryBlobServiceClient.getBlobContainerClient(generateContainerName()) diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[0].json new file mode 100644 index 000000000000..25e2d786fe7d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[0].json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0655036b64db747b264d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "bccb2f6c-a2b0-4275-a784-38ef355ba125" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D82A71BD01DCB6", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "27c6d086-a01e-0055-6c5a-5c8109000000", + "Date" : "Fri, 17 Jul 2020 16:52:05 GMT", + "x-ms-client-request-id" : "bccb2f6c-a2b0-4275-a784-38ef355ba125" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0655036b64db747b264d7/javablobsettierrehydratepriority120642b8037355bfdf", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "24c6562c-5698-4551-92d8-4b2c08a0139c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-17T16:52:07.0300485Z", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 17 Jul 2020 16:52:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D82A71BD67EB45", + "Content-Length" : "0", + "x-ms-request-id" : "c8a72cc7-c01e-0031-7c5a-5c7091000000", + "x-ms-client-request-id" : "24c6562c-5698-4551-92d8-4b2c08a0139c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0655036b64db747b264d7/javablobsettierrehydratepriority120642b8037355bfdf", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "c4e3ed2d-af6a-41d7-9999-5a85470c5494" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2019-12-12", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-07-17T16:52:07.0300485Z", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:07 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 17 Jul 2020 16:52:06 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D82A71BD67EB45", + "x-ms-creation-time" : "Fri, 17 Jul 2020 16:52:07 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "a59445d5-801e-001f-7d5a-5c2286000000", + "x-ms-client-request-id" : "c4e3ed2d-af6a-41d7-9999-5a85470c5494", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsettierrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "04e1de65-d520-4c46-9d46-c41462abe824" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "42d0e68a-e01e-0054-395a-5cded5000000", + "Body" : "jtcsettierrehydratepriorityjtcsettierrehydratepriority0655036b64db747b264d7Fri, 17 Jul 2020 16:52:06 GMT\"0x8D82A71BD01DCB6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 17 Jul 2020 16:52:07 GMT", + "x-ms-client-request-id" : "04e1de65-d520-4c46-9d46-c41462abe824", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0655036b64db747b264d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "0f426077-2c51-496a-8c67-2b23d1111838" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6f3a7ab3-801e-000f-045a-5ce7ee000000", + "Date" : "Fri, 17 Jul 2020 16:52:08 GMT", + "x-ms-client-request-id" : "0f426077-2c51-496a-8c67-2b23d1111838" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierrehydratepriority0655036b64db747b264d7", "javablobsettierrehydratepriority120642b8037355bfdf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[1].json new file mode 100644 index 000000000000..e9c4d2b803da --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[1].json @@ -0,0 +1,164 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority00225461e4e7f9d89e413?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "9f78ba24-45ad-4d1f-878e-8b15ffc09cb1" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D82A71BE74459D", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "732df7ab-201e-0006-615a-5ca23d000000", + "Date" : "Fri, 17 Jul 2020 16:52:08 GMT", + "x-ms-client-request-id" : "9f78ba24-45ad-4d1f-878e-8b15ffc09cb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority00225461e4e7f9d89e413/javablobsettierrehydratepriority154012842f426dfd40", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ac224d07-9512-4f9a-80b2-c432c0935fcb", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-17T16:52:09.1295432Z", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 17 Jul 2020 16:52:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D82A71BEA846C8", + "Content-Length" : "0", + "x-ms-request-id" : "9171e4b6-901e-0061-585a-5cb2c1000000", + "x-ms-client-request-id" : "ac224d07-9512-4f9a-80b2-c432c0935fcb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority00225461e4e7f9d89e413/javablobsettierrehydratepriority154012842f426dfd40?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "1617a652-9308-4bd6-9baa-b010a7bd7f18" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a5bc387a-d01e-0094-355a-5c26eb000000", + "Date" : "Fri, 17 Jul 2020 16:52:09 GMT", + "x-ms-client-request-id" : "1617a652-9308-4bd6-9baa-b010a7bd7f18" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority00225461e4e7f9d89e413/javablobsettierrehydratepriority154012842f426dfd40?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "06490aaf-27bf-4e09-9998-b5eab177a597" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9ff78820-f01e-0077-135a-5c4416000000", + "Date" : "Fri, 17 Jul 2020 16:52:09 GMT", + "x-ms-client-request-id" : "06490aaf-27bf-4e09-9998-b5eab177a597" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority00225461e4e7f9d89e413/javablobsettierrehydratepriority154012842f426dfd40", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "194399d8-4fa8-4bca-93bc-0756dc0f735e" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2019-12-12", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-07-17T16:52:09.1295432Z", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:09 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 17 Jul 2020 16:52:09 GMT", + "StatusCode" : "200", + "Date" : "Fri, 17 Jul 2020 16:52:09 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-rehydrate-priority" : "Standard", + "x-ms-access-tier" : "Archive", + "ETag" : "0x8D82A71BEA846C8", + "x-ms-creation-time" : "Fri, 17 Jul 2020 16:52:09 GMT", + "Content-Length" : "7", + "x-ms-archive-status" : "rehydrate-pending-to-hot", + "x-ms-request-id" : "847321e7-501e-006e-475a-5cc4ad000000", + "x-ms-client-request-id" : "194399d8-4fa8-4bca-93bc-0756dc0f735e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsettierrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "317c45c0-7e00-4dad-a67c-429cddf5eca8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5e6f0195-701e-008d-755a-5ca650000000", + "Body" : "jtcsettierrehydratepriorityjtcsettierrehydratepriority00225461e4e7f9d89e413Fri, 17 Jul 2020 16:52:08 GMT\"0x8D82A71BE74459D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 17 Jul 2020 16:52:09 GMT", + "x-ms-client-request-id" : "317c45c0-7e00-4dad-a67c-429cddf5eca8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority00225461e4e7f9d89e413?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "7c9259df-3709-4db9-861d-2ac64d1b7782" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "af8af7bc-301e-0035-6d5a-5cfd96000000", + "Date" : "Fri, 17 Jul 2020 16:52:10 GMT", + "x-ms-client-request-id" : "7c9259df-3709-4db9-861d-2ac64d1b7782" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierrehydratepriority00225461e4e7f9d89e413", "javablobsettierrehydratepriority154012842f426dfd40" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[2].json new file mode 100644 index 000000000000..6f4b670cb508 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierrehydratepriority[2].json @@ -0,0 +1,164 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0156978aeab57f79044bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ef24d41f-66bd-41ea-a255-e3ba48195c03" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D82A71BFEB3EC6", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d39edce1-401e-003f-025a-5c5921000000", + "Date" : "Fri, 17 Jul 2020 16:52:10 GMT", + "x-ms-client-request-id" : "ef24d41f-66bd-41ea-a255-e3ba48195c03" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0156978aeab57f79044bb/javablobsettierrehydratepriority131268a9ac5fb3bf41", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b5e415ab-4309-4f33-8d03-223dd15855c0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-17T16:52:11.5962944Z", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 17 Jul 2020 16:52:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D82A71C020AC40", + "Content-Length" : "0", + "x-ms-request-id" : "a4ce95a1-001e-0087-665a-5c02e7000000", + "x-ms-client-request-id" : "b5e415ab-4309-4f33-8d03-223dd15855c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0156978aeab57f79044bb/javablobsettierrehydratepriority131268a9ac5fb3bf41?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b8e08b04-74df-44e7-84fc-56321c65bc40" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "81705fb2-d01e-003d-4f5a-5ce799000000", + "Date" : "Fri, 17 Jul 2020 16:52:11 GMT", + "x-ms-client-request-id" : "b8e08b04-74df-44e7-84fc-56321c65bc40" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0156978aeab57f79044bb/javablobsettierrehydratepriority131268a9ac5fb3bf41?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "8b78f973-484f-45ac-8230-83af951d8aed" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "c748235b-801e-0020-715a-5cea25000000", + "Date" : "Fri, 17 Jul 2020 16:52:12 GMT", + "x-ms-client-request-id" : "8b78f973-484f-45ac-8230-83af951d8aed" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0156978aeab57f79044bb/javablobsettierrehydratepriority131268a9ac5fb3bf41", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "6df6881c-2231-4fe3-932d-3ebb64520658" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2019-12-12", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-07-17T16:52:11.5962944Z", + "Last-Modified" : "Fri, 17 Jul 2020 16:52:11 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 17 Jul 2020 16:52:12 GMT", + "StatusCode" : "200", + "Date" : "Fri, 17 Jul 2020 16:52:12 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-rehydrate-priority" : "High", + "x-ms-access-tier" : "Archive", + "ETag" : "0x8D82A71C020AC40", + "x-ms-creation-time" : "Fri, 17 Jul 2020 16:52:11 GMT", + "Content-Length" : "7", + "x-ms-archive-status" : "rehydrate-pending-to-hot", + "x-ms-request-id" : "57567e8a-901e-0003-035a-5c70e6000000", + "x-ms-client-request-id" : "6df6881c-2231-4fe3-932d-3ebb64520658", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsettierrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "30ab2eba-67a4-493f-87d0-4575b2b91be9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "52e72d99-a01e-0045-495a-5c4461000000", + "Body" : "jtcsettierrehydratepriorityjtcsettierrehydratepriority0156978aeab57f79044bbFri, 17 Jul 2020 16:52:11 GMT\"0x8D82A71BFEB3EC6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 17 Jul 2020 16:52:12 GMT", + "x-ms-client-request-id" : "30ab2eba-67a4-493f-87d0-4575b2b91be9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsettierrehydratepriority0156978aeab57f79044bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "c4aa394c-6bcc-4a14-a397-093916b75146" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "7e38ba19-b01e-0014-345a-5cd9ed000000", + "Date" : "Fri, 17 Jul 2020 16:52:13 GMT", + "x-ms-client-request-id" : "c4aa394c-6bcc-4a14-a397-093916b75146" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierrehydratepriority0156978aeab57f79044bb", "javablobsettierrehydratepriority131268a9ac5fb3bf41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[0].json new file mode 100644 index 000000000000..d866292ae2ba --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[0].json @@ -0,0 +1,112 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority060683109f5e38b69c?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "61027fca-e401-48a4-803d-cc5e560f6197" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D829D7392C56AE", + "Last-Modified" : "Thu, 16 Jul 2020 22:26:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "790510da-601e-0017-51c0-5b3889000000", + "Date" : "Thu, 16 Jul 2020 22:26:02 GMT", + "x-ms-client-request-id" : "61027fca-e401-48a4-803d-cc5e560f6197" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority060683109f5e38b69c/javabloblistblobsflatrehydratepriority12444372d7eaebb", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "aa005ed2-3f47-4d8f-a06f-6a8e51dbb907", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-16T22:26:03.4703921Z", + "Last-Modified" : "Thu, 16 Jul 2020 22:26:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 16 Jul 2020 22:26:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D829D739A42F1D", + "Content-Length" : "0", + "x-ms-request-id" : "5b111e36-f01e-0077-1fc0-5b4416000000", + "x-ms-client-request-id" : "aa005ed2-3f47-4d8f-a06f-6a8e51dbb907" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority060683109f5e38b69c?restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ac10755a-4abd-4819-a748-636bf5a0e4cd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "46991b0c-001e-0073-66c0-5bc911000000", + "Body" : "javabloblistblobsflatrehydratepriority12444372d7eaebb2020-07-16T22:26:03.4703921ZtrueThu, 16 Jul 2020 22:26:03 GMTThu, 16 Jul 2020 22:26:03 GMT0x8D829D739A42F1D7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "Date" : "Thu, 16 Jul 2020 22:26:03 GMT", + "x-ms-client-request-id" : "ac10755a-4abd-4819-a748-636bf5a0e4cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobsflatrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "7d488dab-15a6-4b7e-acb5-2f1718df6e7e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8d747aa5-001e-0097-05c0-5bc78f000000", + "Body" : "jtclistblobsflatrehydratepriorityjtclistblobsflatrehydratepriority060683109f5e38b69cThu, 16 Jul 2020 22:26:02 GMT\"0x8D829D7392C56AE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 16 Jul 2020 22:26:04 GMT", + "x-ms-client-request-id" : "7d488dab-15a6-4b7e-acb5-2f1718df6e7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority060683109f5e38b69c?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "fcf3d163-3132-48be-8b6e-d885139f07b8" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "7f23133f-301e-0057-6cc0-5b3fb1000000", + "Date" : "Thu, 16 Jul 2020 22:26:04 GMT", + "x-ms-client-request-id" : "fcf3d163-3132-48be-8b6e-d885139f07b8" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatrehydratepriority060683109f5e38b69c", "javabloblistblobsflatrehydratepriority12444372d7eaebb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[1].json new file mode 100644 index 000000000000..fd8412485c6e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[1].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority02510283cb1cfb28f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ed6ca2af-394d-4e0d-972c-3bdf9926d4d8" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D829D73AC8EDA0", + "Last-Modified" : "Thu, 16 Jul 2020 22:26:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "197775de-201e-0016-69c0-5b6755000000", + "Date" : "Thu, 16 Jul 2020 22:26:04 GMT", + "x-ms-client-request-id" : "ed6ca2af-394d-4e0d-972c-3bdf9926d4d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority02510283cb1cfb28f9/javabloblistblobsflatrehydratepriority15576601ec6042d", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b23ba35a-43ab-4202-b610-599d65cd8ee3", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-16T22:26:05.8180640Z", + "Last-Modified" : "Thu, 16 Jul 2020 22:26:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 16 Jul 2020 22:26:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D829D73B0A9020", + "Content-Length" : "0", + "x-ms-request-id" : "c6e2d90a-e01e-0026-37c0-5bd99a000000", + "x-ms-client-request-id" : "b23ba35a-43ab-4202-b610-599d65cd8ee3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority02510283cb1cfb28f9/javabloblistblobsflatrehydratepriority15576601ec6042d?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b684a715-9581-4b5f-a055-2f07112aee5a" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3f533d23-901e-005e-60c0-5b7a62000000", + "Date" : "Thu, 16 Jul 2020 22:26:05 GMT", + "x-ms-client-request-id" : "b684a715-9581-4b5f-a055-2f07112aee5a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority02510283cb1cfb28f9/javabloblistblobsflatrehydratepriority15576601ec6042d?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "7dfb587e-508a-4687-ba1f-9cbfb3c287ba" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "15cab93b-b01e-0082-07c0-5bd03c000000", + "Date" : "Thu, 16 Jul 2020 22:26:05 GMT", + "x-ms-client-request-id" : "7dfb587e-508a-4687-ba1f-9cbfb3c287ba" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority02510283cb1cfb28f9?restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "f8751554-6938-48d7-9e2d-f4cfdd97747f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a707bfba-d01e-002d-5dc0-5b22f1000000", + "Body" : "javabloblistblobsflatrehydratepriority15576601ec6042d2020-07-16T22:26:05.8180640ZtrueThu, 16 Jul 2020 22:26:05 GMTThu, 16 Jul 2020 22:26:05 GMT0x8D829D73B0A90207application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobArchiverehydrate-pending-to-hotStandardThu, 16 Jul 2020 22:26:06 GMTunlockedavailabletrue", + "Date" : "Thu, 16 Jul 2020 22:26:06 GMT", + "x-ms-client-request-id" : "f8751554-6938-48d7-9e2d-f4cfdd97747f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobsflatrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "c73de428-740c-4475-8484-96cd8fccea49" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6e0c727b-201e-004b-31c0-5b6dd1000000", + "Body" : "jtclistblobsflatrehydratepriorityjtclistblobsflatrehydratepriority02510283cb1cfb28f9Thu, 16 Jul 2020 22:26:05 GMT\"0x8D829D73AC8EDA0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 16 Jul 2020 22:26:06 GMT", + "x-ms-client-request-id" : "c73de428-740c-4475-8484-96cd8fccea49", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority02510283cb1cfb28f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "4b8b3f9b-0f6f-4cd8-8410-1df5325db2af" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "826b8bce-f01e-0093-52c0-5b4a88000000", + "Date" : "Thu, 16 Jul 2020 22:26:06 GMT", + "x-ms-client-request-id" : "4b8b3f9b-0f6f-4cd8-8410-1df5325db2af" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatrehydratepriority02510283cb1cfb28f9", "javabloblistblobsflatrehydratepriority15576601ec6042d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[2].json new file mode 100644 index 000000000000..9b34b0a5ba17 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatrehydratepriority[2].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority068306476250bc568c?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "413e38ed-ba77-45f0-85cb-385b6d5a564f" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D829D73C6ED8F3", + "Last-Modified" : "Thu, 16 Jul 2020 22:26:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fcbbbed7-e01e-007b-0fc0-5bd31e000000", + "Date" : "Thu, 16 Jul 2020 22:26:08 GMT", + "x-ms-client-request-id" : "413e38ed-ba77-45f0-85cb-385b6d5a564f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority068306476250bc568c/javabloblistblobsflatrehydratepriority14802901046ae4f", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "4ff6ffe0-9894-4bec-b007-aeab9e53feef", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-16T22:26:08.5329982Z", + "Last-Modified" : "Thu, 16 Jul 2020 22:26:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 16 Jul 2020 22:26:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D829D73CA8AD20", + "Content-Length" : "0", + "x-ms-request-id" : "5267847a-b01e-0076-6ec0-5b1bca000000", + "x-ms-client-request-id" : "4ff6ffe0-9894-4bec-b007-aeab9e53feef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority068306476250bc568c/javabloblistblobsflatrehydratepriority14802901046ae4f?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "5972de57-08e7-4b07-b872-c7c44a0e9dfd" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dbe29e68-001e-0087-56c0-5b02e7000000", + "Date" : "Thu, 16 Jul 2020 22:26:07 GMT", + "x-ms-client-request-id" : "5972de57-08e7-4b07-b872-c7c44a0e9dfd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority068306476250bc568c/javabloblistblobsflatrehydratepriority14802901046ae4f?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "f62550c6-e048-459f-9e2a-72ebeae9d167" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3992f939-601e-005a-26c0-5bf765000000", + "Date" : "Thu, 16 Jul 2020 22:26:09 GMT", + "x-ms-client-request-id" : "f62550c6-e048-459f-9e2a-72ebeae9d167" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority068306476250bc568c?restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "2f8267cf-52df-47b9-abdf-b8a1d915b1d4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8dc66c37-601e-0091-4bc0-5bf430000000", + "Body" : "javabloblistblobsflatrehydratepriority14802901046ae4f2020-07-16T22:26:08.5329982ZtrueThu, 16 Jul 2020 22:26:08 GMTThu, 16 Jul 2020 22:26:08 GMT0x8D829D73CA8AD207application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobArchiverehydrate-pending-to-hotHighThu, 16 Jul 2020 22:26:09 GMTunlockedavailabletrue", + "Date" : "Thu, 16 Jul 2020 22:26:08 GMT", + "x-ms-client-request-id" : "2f8267cf-52df-47b9-abdf-b8a1d915b1d4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobsflatrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "c3f249bd-4981-441a-b670-8db80de377f7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "64a6cf1f-701e-0079-38c0-5b6da6000000", + "Body" : "jtclistblobsflatrehydratepriorityjtclistblobsflatrehydratepriority068306476250bc568cThu, 16 Jul 2020 22:26:08 GMT\"0x8D829D73C6ED8F3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 16 Jul 2020 22:26:09 GMT", + "x-ms-client-request-id" : "c3f249bd-4981-441a-b670-8db80de377f7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsflatrehydratepriority068306476250bc568c?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "814ee357-ee93-4377-97db-612295d7cb29" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "a128b9c9-d01e-005f-15c0-5b25be000000", + "Date" : "Thu, 16 Jul 2020 22:26:10 GMT", + "x-ms-client-request-id" : "814ee357-ee93-4377-97db-612295d7cb29" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatrehydratepriority068306476250bc568c", "javabloblistblobsflatrehydratepriority14802901046ae4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[0].json new file mode 100644 index 000000000000..280a511b5245 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[0].json @@ -0,0 +1,112 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority0688468e2431e2118a?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "23cc880f-26fd-4a4d-b946-1821aaac7aa6" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D829D7B9076006", + "Last-Modified" : "Thu, 16 Jul 2020 22:29:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c3fd033-a01e-0008-4dc0-5b8b8d000000", + "Date" : "Thu, 16 Jul 2020 22:29:36 GMT", + "x-ms-client-request-id" : "23cc880f-26fd-4a4d-b946-1821aaac7aa6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority0688468e2431e2118a/javabloblistblobshierrehydratepriority1393252298fce99", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "3f51d231-1846-4eca-aef9-019d1fd5191a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-16T22:29:37.8669143Z", + "Last-Modified" : "Thu, 16 Jul 2020 22:29:37 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 16 Jul 2020 22:29:37 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D829D7B96EA657", + "Content-Length" : "0", + "x-ms-request-id" : "7906c671-601e-0017-16c0-5b3889000000", + "x-ms-client-request-id" : "3f51d231-1846-4eca-aef9-019d1fd5191a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority0688468e2431e2118a?delimiter=/&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b7d03c33-7f5f-4735-a7d4-165108ed5b01" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ca436a4c-d01e-0060-6ac0-5bed1d000000", + "Body" : "/javabloblistblobshierrehydratepriority1393252298fce992020-07-16T22:29:37.8669143ZtrueThu, 16 Jul 2020 22:29:37 GMTThu, 16 Jul 2020 22:29:37 GMT0x8D829D7B96EA6577application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "Date" : "Thu, 16 Jul 2020 22:29:37 GMT", + "x-ms-client-request-id" : "b7d03c33-7f5f-4735-a7d4-165108ed5b01", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobshierrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ff578cfe-46dd-44fd-af25-0d586552c977" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a926d761-801e-0099-2dc0-5bee3f000000", + "Body" : "jtclistblobshierrehydratepriorityjtclistblobshierrehydratepriority0688468e2431e2118aThu, 16 Jul 2020 22:29:37 GMT\"0x8D829D7B9076006\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 16 Jul 2020 22:29:38 GMT", + "x-ms-client-request-id" : "ff578cfe-46dd-44fd-af25-0d586552c977", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority0688468e2431e2118a?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "1d24c8d4-352e-4606-bf18-61779fa4ed7b" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "46cfdff5-501e-001c-02c0-5bc3e2000000", + "Date" : "Thu, 16 Jul 2020 22:29:38 GMT", + "x-ms-client-request-id" : "1d24c8d4-352e-4606-bf18-61779fa4ed7b" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierrehydratepriority0688468e2431e2118a", "javabloblistblobshierrehydratepriority1393252298fce99" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[1].json new file mode 100644 index 000000000000..cca98ec9f75e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[1].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority04614041068277539b?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "255ffd7e-d6dc-4ddb-a28e-3a4dc3a7af9c" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D829D7BAAD9942", + "Last-Modified" : "Thu, 16 Jul 2020 22:29:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "800e0bc2-c01e-0053-52c0-5bb2b6000000", + "Date" : "Thu, 16 Jul 2020 22:29:39 GMT", + "x-ms-client-request-id" : "255ffd7e-d6dc-4ddb-a28e-3a4dc3a7af9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority04614041068277539b/javabloblistblobshierrehydratepriority10269857ef73c43", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "24266a3d-5894-4f95-9b8d-9f66dbddc269", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-16T22:29:40.3807036Z", + "Last-Modified" : "Thu, 16 Jul 2020 22:29:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 16 Jul 2020 22:29:39 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D829D7BAEE393C", + "Content-Length" : "0", + "x-ms-request-id" : "18088cb0-501e-007e-6ac0-5b01c5000000", + "x-ms-client-request-id" : "24266a3d-5894-4f95-9b8d-9f66dbddc269" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority04614041068277539b/javabloblistblobshierrehydratepriority10269857ef73c43?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "24aff4af-a703-4702-af5a-5725bf288937" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "61d04749-201e-0029-45c0-5baff6000000", + "Date" : "Thu, 16 Jul 2020 22:29:40 GMT", + "x-ms-client-request-id" : "24aff4af-a703-4702-af5a-5725bf288937" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority04614041068277539b/javabloblistblobshierrehydratepriority10269857ef73c43?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "cb26ad18-c32a-451a-9f87-266dc4c20987" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d84ca203-301e-0025-1ec0-5b38fe000000", + "Date" : "Thu, 16 Jul 2020 22:29:40 GMT", + "x-ms-client-request-id" : "cb26ad18-c32a-451a-9f87-266dc4c20987" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority04614041068277539b?delimiter=/&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "32024163-286f-40c6-9b9f-2be62486ccb0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "89a75ce6-101e-000d-01c0-5b5956000000", + "Body" : "/javabloblistblobshierrehydratepriority10269857ef73c432020-07-16T22:29:40.3807036ZtrueThu, 16 Jul 2020 22:29:40 GMTThu, 16 Jul 2020 22:29:40 GMT0x8D829D7BAEE393C7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobArchiverehydrate-pending-to-hotStandardThu, 16 Jul 2020 22:29:41 GMTunlockedavailabletrue", + "Date" : "Thu, 16 Jul 2020 22:29:40 GMT", + "x-ms-client-request-id" : "32024163-286f-40c6-9b9f-2be62486ccb0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobshierrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "10fadf5d-b3e7-44f1-a259-14ac6643d45f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "7f97d186-c01e-006c-03c0-5b7a15000000", + "Body" : "jtclistblobshierrehydratepriorityjtclistblobshierrehydratepriority04614041068277539bThu, 16 Jul 2020 22:29:39 GMT\"0x8D829D7BAAD9942\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 16 Jul 2020 22:29:41 GMT", + "x-ms-client-request-id" : "10fadf5d-b3e7-44f1-a259-14ac6643d45f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority04614041068277539b?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ab73d67b-5ba2-4aca-98b5-e99e30f53c95" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "e292cce9-a01e-0018-56c0-5b4ee5000000", + "Date" : "Thu, 16 Jul 2020 22:29:41 GMT", + "x-ms-client-request-id" : "ab73d67b-5ba2-4aca-98b5-e99e30f53c95" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierrehydratepriority04614041068277539b", "javabloblistblobshierrehydratepriority10269857ef73c43" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[2].json new file mode 100644 index 000000000000..fb35ae1c749c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierrehydratepriority[2].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority039462d734a2e85f46?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "75c8f2c1-085f-40e6-abe1-912bee5b3c70" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D829D7BC4AB3C0", + "Last-Modified" : "Thu, 16 Jul 2020 22:29:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9f63f225-201e-0039-43c0-5b6a9e000000", + "Date" : "Thu, 16 Jul 2020 22:29:41 GMT", + "x-ms-client-request-id" : "75c8f2c1-085f-40e6-abe1-912bee5b3c70" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority039462d734a2e85f46/javabloblistblobshierrehydratepriority139710a6c5cbace", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "e5b83498-006e-43fc-9bca-46d04d2023a8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-version-id" : "2020-07-16T22:29:43.0155803Z", + "Last-Modified" : "Thu, 16 Jul 2020 22:29:43 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 16 Jul 2020 22:29:42 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D829D7BC80461B", + "Content-Length" : "0", + "x-ms-request-id" : "289838a8-901e-0071-12c0-5b77a9000000", + "x-ms-client-request-id" : "e5b83498-006e-43fc-9bca-46d04d2023a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority039462d734a2e85f46/javabloblistblobshierrehydratepriority139710a6c5cbace?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "7f31f14a-7f68-4e42-ad7c-e813a69ea8e8" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "df12be2d-801e-0030-66c0-5b2f4d000000", + "Date" : "Thu, 16 Jul 2020 22:29:42 GMT", + "x-ms-client-request-id" : "7f31f14a-7f68-4e42-ad7c-e813a69ea8e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority039462d734a2e85f46/javabloblistblobshierrehydratepriority139710a6c5cbace?comp=tier", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "aa6fb409-246a-46e1-89c4-3294ccfad00d" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe75b46-e01e-0054-2fc0-5bded5000000", + "Date" : "Thu, 16 Jul 2020 22:29:43 GMT", + "x-ms-client-request-id" : "aa6fb409-246a-46e1-89c4-3294ccfad00d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority039462d734a2e85f46?delimiter=/&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "aee7c20e-5335-4817-90b0-e88860531bb1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "4b980e4f-d01e-004f-2bc0-5be0d6000000", + "Body" : "/javabloblistblobshierrehydratepriority139710a6c5cbace2020-07-16T22:29:43.0155803ZtrueThu, 16 Jul 2020 22:29:43 GMTThu, 16 Jul 2020 22:29:43 GMT0x8D829D7BC80461B7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobArchiverehydrate-pending-to-hotHighThu, 16 Jul 2020 22:29:43 GMTunlockedavailabletrue", + "Date" : "Thu, 16 Jul 2020 22:29:43 GMT", + "x-ms-client-request-id" : "aee7c20e-5335-4817-90b0-e88860531bb1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobshierrehydratepriority&comp=list", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "9f149e81-e65e-45a1-a57e-acab03ed52d5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25391a97-e01e-00a0-7ac0-5b1523000000", + "Body" : "jtclistblobshierrehydratepriorityjtclistblobshierrehydratepriority039462d734a2e85f46Thu, 16 Jul 2020 22:29:42 GMT\"0x8D829D7BC4AB3C0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 16 Jul 2020 22:29:44 GMT", + "x-ms-client-request-id" : "9f149e81-e65e-45a1-a57e-acab03ed52d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobshierrehydratepriority039462d734a2e85f46?restype=container", + "Headers" : { + "x-ms-version" : "2019-12-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b449f867-5e91-4384-ae30-0fea43764a12" + }, + "Response" : { + "x-ms-version" : "2019-12-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b01be586-801e-001f-03c0-5b2286000000", + "Date" : "Thu, 16 Jul 2020 22:29:44 GMT", + "x-ms-client-request-id" : "b449f867-5e91-4384-ae30-0fea43764a12" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierrehydratepriority039462d734a2e85f46", "javabloblistblobshierrehydratepriority139710a6c5cbace" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-common/CHANGELOG.md b/sdk/storage/azure-storage-common/CHANGELOG.md index 751e9b1573c1..2c8821e34b48 100644 --- a/sdk/storage/azure-storage-common/CHANGELOG.md +++ b/sdk/storage/azure-storage-common/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 12.8.0-beta.2 (Unreleased) +- Added support for setting tags and filterTags operations on SAS by adding to AccountSASPermissions. - Fixed bug where FluxInputStream would throw when a ByteBuffer of length 0 was encountered. ## 12.8.0-beta.1 (2020-07-07)