diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java index fe1b3720f59f4..a6710efcf72dc 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java @@ -18,8 +18,7 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.data.tables.implementation.AzureTableImpl; import com.azure.data.tables.implementation.AzureTableImplBuilder; -import com.azure.data.tables.implementation.TablesConstants; -import com.azure.data.tables.implementation.TablesModelHelper; +import com.azure.data.tables.implementation.ModelHelper; import com.azure.data.tables.implementation.models.OdataMetadataFormat; import com.azure.data.tables.implementation.models.QueryOptions; import com.azure.data.tables.implementation.models.ResponseFormat; @@ -32,8 +31,6 @@ import java.net.URI; import java.time.Duration; -import java.time.OffsetDateTime; -import java.time.format.DateTimeParseException; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -519,7 +516,7 @@ private Mono> listEntities(String nextPartitionKey, S } final List entities = entityResponseValue.stream() - .map(entityMap -> deserializeEntity(logger, entityMap)) + .map(ModelHelper::createEntity) .collect(Collectors.toList()); return Mono.just(new EntityPaged(response, entities, @@ -632,60 +629,9 @@ Mono> getEntityWithResponse(String partitionKey, String ro // Deserialize the first entity. // TODO: Potentially update logic to deserialize them all. - final TableEntity entity = deserializeEntity(logger, matchingEntities.get(0)); + final TableEntity entity = ModelHelper.createEntity(matchingEntities.get(0)); sink.next(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), entity)); }); } - - /** - * Given a Map, creates the corresponding entity. - * - * @param properties Properties representing the entity. - * - * @return The Entity represented by this map. - * @throws IllegalArgumentException if the Map is missing a row key or partition key. - * @throws NullPointerException if 'properties' is null. - */ - private static TableEntity deserializeEntity(ClientLogger logger, Map properties) { - final Object partitionKeyValue = properties.get(TablesConstants.PARTITION_KEY); - if (!(partitionKeyValue instanceof String) || ((String) partitionKeyValue).isEmpty()) { - throw logger.logExceptionAsError(new IllegalArgumentException(String.format( - "'%s' does not exist in property map or is an empty value.", TablesConstants.PARTITION_KEY))); - } - - final Object rowKeyValue = properties.get(TablesConstants.ROW_KEY); - if (!(rowKeyValue instanceof String) || ((String) rowKeyValue).isEmpty()) { - throw logger.logExceptionAsError(new IllegalArgumentException(String.format( - "'%s' does not exist in property map or is an empty value.", TablesConstants.ROW_KEY))); - } - - final Object timestampValue = properties.get(TablesConstants.TIMESTAMP_KEY); - OffsetDateTime timestamp = null; - if (timestampValue != null) { - if (!(timestampValue instanceof String)) { - throw logger.logExceptionAsError(new IllegalArgumentException(String.format( - "'%s' value is of the wrong type.", TablesConstants.TIMESTAMP_KEY))); - } - try { - timestamp = OffsetDateTime.parse((String) timestampValue); - } catch (DateTimeParseException e) { - throw logger.logExceptionAsError(new IllegalArgumentException(String.format( - "'%s' value is not a valid OffsetDateTime.", TablesConstants.TIMESTAMP_KEY), e)); - } - } - - final Object etagValue = properties.get(TablesConstants.ODATA_ETAG_KEY); - if (etagValue != null && !(etagValue instanceof String)) { - throw logger.logExceptionAsError(new IllegalArgumentException(String.format( - "'%s' value is of the wrong type.", TablesConstants.ODATA_ETAG_KEY))); - } - - final TableEntity entity = new TableEntity((String) partitionKeyValue, (String) rowKeyValue); - TablesModelHelper.setValues(entity, timestamp, (String) etagValue); - - properties.forEach((key, value) -> entity.getProperties().putIfAbsent(key, value)); - - return entity; - } } diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java index d98821ec57eb9..c870205ec6f3b 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java @@ -19,7 +19,7 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.data.tables.implementation.AzureTableImpl; import com.azure.data.tables.implementation.AzureTableImplBuilder; -import com.azure.data.tables.implementation.TablesModelHelper; +import com.azure.data.tables.implementation.ModelHelper; import com.azure.data.tables.implementation.models.OdataMetadataFormat; import com.azure.data.tables.implementation.models.QueryOptions; import com.azure.data.tables.implementation.models.ResponseFormat; @@ -268,7 +268,7 @@ private Mono> listTables(String nextTableName, Context return Mono.empty(); } final List tables = tableResponsePropertiesList.stream() - .map(TablesModelHelper::createItem).collect(Collectors.toList()); + .map(ModelHelper::createItem).collect(Collectors.toList()); return Mono.just(new TablePaged(response, tables, response.getDeserializedHeaders().getXMsContinuationNextTableName())); diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/ModelHelper.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/ModelHelper.java new file mode 100644 index 0000000000000..3927adbc5b2b3 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/ModelHelper.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.data.tables.implementation; + +import com.azure.core.util.logging.ClientLogger; +import com.azure.data.tables.implementation.models.TableResponseProperties; +import com.azure.data.tables.models.TableEntity; +import com.azure.data.tables.models.TableItem; + +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; + +/** + * Used to access internal methods on models. + */ +public final class ModelHelper { + private static Function, TableEntity> entityCreator; + private static Function itemCreator; + + static { + // Force classes' static blocks to execute + try { + Class.forName(TableEntity.class.getName(), true, TableEntity.class.getClassLoader()); + Class.forName(TableItem.class.getName(), true, TableItem.class.getClassLoader()); + } catch (ClassNotFoundException e) { + throw new ExceptionInInitializerError(new ClientLogger(ModelHelper.class).logThrowableAsError(e)); + } + } + + /** + * Sets the entity creator. + * + * @param creator The entity creator. + * @throws IllegalStateException if the creator has already been set. + */ + public static void setEntityCreator(Function, TableEntity> creator) { + Objects.requireNonNull(creator, "'creator' cannot be null."); + + if (ModelHelper.entityCreator != null) { + throw new ClientLogger(ModelHelper.class).logExceptionAsError(new IllegalStateException( + "'entityCreator' is already set.")); + } + + entityCreator = creator; + } + + /** + * Sets the item creator. + * + * @param creator The item creator. + * @throws IllegalStateException if the creator has already been set. + */ + public static void setItemCreator(Function creator) { + Objects.requireNonNull(creator, "'creator' cannot be null."); + + if (ModelHelper.itemCreator != null) { + throw new ClientLogger(ModelHelper.class).logExceptionAsError(new IllegalStateException( + "'itemCreator' is already set.")); + } + + itemCreator = creator; + } + + /** + * Creates a {@link TableEntity}. + * + * @param properties The properties used to construct the entity + * @return The created TableEntity + */ + public static TableEntity createEntity(Map properties) { + if (entityCreator == null) { + throw new ClientLogger(ModelHelper.class).logExceptionAsError( + new IllegalStateException("'entityCreator' should not be null.")); + } + + return entityCreator.apply(properties); + } + + /** + * Creates a {@link TableItem}. + * + * @param properties The TableResponseProperties used to construct the table + * @return The created TableItem + */ + public static TableItem createItem(TableResponseProperties properties) { + if (itemCreator == null) { + throw new ClientLogger(ModelHelper.class).logExceptionAsError( + new IllegalStateException("'itemCreator' should not be null.")); + } + + return itemCreator.apply(properties); + } +} diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesConstants.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesConstants.java index d973ac94a81a7..66e0380930c61 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesConstants.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesConstants.java @@ -2,10 +2,21 @@ // Licensed under the MIT License. package com.azure.data.tables.implementation; +import java.util.HashSet; +import java.util.Set; +import java.util.stream.Collectors; +import java.util.stream.Stream; + /** * Constants for Tables service. */ public final class TablesConstants { + + /** + * Name in the Map to get the table name. + */ + public static final String TABLE_NAME_KEY = "TableName"; + /** * Name in the Map to get the partition key. */ @@ -32,10 +43,31 @@ public final class TablesConstants { public static final String ODATA_METADATA_KEY = "odata.metadata"; /** - * Name in the map for the entity's URL. + * Name in the map for the table or entity's URL. */ public static final String ODATA_EDIT_LINK_KEY = "odata.editLink"; + /** + * Name in the map for the table or entity's type. + */ + public static final String ODATA_TYPE_KEY = "odata.type"; + + /** + * Name in the map for the table or entity's ID. + */ + public static final String ODATA_ID_KEY = "odata.id"; + + /** + * Set of keys returned in OData metadata. + */ + public static final Set METADATA_KEYS = Stream.of( + ODATA_EDIT_LINK_KEY, + ODATA_ETAG_KEY, + ODATA_ID_KEY, + ODATA_METADATA_KEY, + ODATA_TYPE_KEY + ).collect(Collectors.toCollection(HashSet::new)); + /** * Private constructor so this class cannot be instantiated. */ diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesJacksonSerializer.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesJacksonSerializer.java index c8f2ed7b4f082..4f840de467343 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesJacksonSerializer.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesJacksonSerializer.java @@ -2,9 +2,7 @@ // Licensed under the MIT License. package com.azure.data.tables.implementation; -import com.azure.core.http.HttpHeaders; import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.serializer.CollectionFormat; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.data.tables.implementation.models.TableEntityQueryResponse; @@ -15,6 +13,8 @@ import java.io.InputStream; import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.time.format.DateTimeParseException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -27,71 +27,107 @@ public class TablesJacksonSerializer extends JacksonAdapter { private final ClientLogger logger = new ClientLogger(TablesJacksonSerializer.class); - @Override - public String serialize(Object object, SerializerEncoding serializerEncoding) throws IOException { - return super.serialize(object, serializerEncoding); - } - - @Override - public String serializeRaw(Object object) { - return super.serializeRaw(object); - } - - @Override - public String serializeList(List list, CollectionFormat format) { - return super.serializeList(list, format); - } - @Override public U deserialize(String value, Type type, SerializerEncoding serializerEncoding) throws IOException { - return deserialize(new ByteArrayInputStream(value.getBytes(StandardCharsets.UTF_8)), type, serializerEncoding); + if (type == TableEntityQueryResponse.class) { + return deserialize(new ByteArrayInputStream(value.getBytes(StandardCharsets.UTF_8)), type, + serializerEncoding); + } else { + return super.deserialize(value, type, serializerEncoding); + } } @Override - @SuppressWarnings("unchecked") public U deserialize(InputStream inputStream, Type type, SerializerEncoding serializerEncoding) throws IOException { - if (type != TableEntityQueryResponse.class) { + if (type == TableEntityQueryResponse.class) { + return deserializeTableEntityQueryResponse(inputStream); + } else { return super.deserialize(inputStream, type, serializerEncoding); } + } - // Force to deserialize as a Map by using Object.class + @SuppressWarnings("unchecked") + private U deserializeTableEntityQueryResponse(InputStream inputStream) throws IOException { String odataMetadata = null; List> values = new ArrayList<>(); + // Represents the entries in the response. It's possible that it is a single or multiple response. final JsonNode node = super.serializer().readTree(inputStream); - final Map rootObject = new HashMap<>(); + Map singleValue = null; + for (Iterator> it = node.fields(); it.hasNext();) { final Map.Entry entry = it.next(); + final String fieldName = entry.getKey(); final JsonNode childNode = entry.getValue(); - if (entry.getKey().equals(TablesConstants.ODATA_METADATA_KEY)) { + if (fieldName.equals(TablesConstants.ODATA_METADATA_KEY)) { odataMetadata = childNode.asText(); - continue; - } - - // Represents the entries in the response. It's possible that it is a single or multiple response. - if (entry.getKey().equals("value")) { + } else if (fieldName.equals("value")) { if (childNode.isArray()) { - logger.info("Node is an array of items."); + // This is a multiple-entity response. + for (JsonNode childEntry : childNode) { + values.add(getEntityFieldsAsMap(childEntry)); + } + } else { + // This is a single-entity response where the user just happened to use the key "value". + if (singleValue == null) { + singleValue = new HashMap<>(); + } + singleValue.put(fieldName, getEntityFieldAsObject(node, fieldName)); } - - throw logger.logExceptionAsError( - new UnsupportedOperationException("Multiple return values not supported yet.")); + } else { + // This is a single-entity response. + if (singleValue == null) { + singleValue = new HashMap<>(); + } + singleValue.put(fieldName, getEntityFieldAsObject(node, fieldName)); } - - rootObject.put(entry.getKey(), entry.getValue().asText()); } - values.add(0, rootObject); + if (singleValue != null) { + if (values.size() > 0) { + throw logger.logExceptionAsError(new IllegalStateException( + "Unexpected response format. Response containing a 'value' array must not contain other properties." + )); + } + values.add(singleValue); + } return (U) new TableEntityQueryResponse() .setOdataMetadata(odataMetadata) .setValue(values); } - @Override - public U deserialize(HttpHeaders httpHeaders, Type type) throws IOException { - return super.deserialize(httpHeaders, type); + private Map getEntityFieldsAsMap(JsonNode node) { + Map result = new HashMap<>(); + for (Iterator it = node.fieldNames(); it.hasNext();) { + String fieldName = it.next(); + result.put(fieldName, getEntityFieldAsObject(node, fieldName)); + } + return result; + } + + private Object getEntityFieldAsObject(JsonNode parentNode, String fieldName) { + JsonNode valueNode = parentNode.get(fieldName); + if (!TablesConstants.METADATA_KEYS.contains(fieldName) && !fieldName.endsWith("@odata.type")) { + JsonNode typeNode = parentNode.get(fieldName + "@odata.type"); + if (typeNode != null) { + String type = typeNode.asText(); + switch (type) { + case "Edm.DateTime": + try { + return OffsetDateTime.parse(valueNode.asText()); + } catch (DateTimeParseException e) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' value is not a valid OffsetDateTime.", TablesConstants.TIMESTAMP_KEY), e)); + } + default: + logger.warning(String.format("'%s' value has unknown OData type '%s'", fieldName, type)); + break; // Fallthrough to the default return value + } + } + } + return valueNode.asText(); } } diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesModelHelper.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesModelHelper.java deleted file mode 100644 index 8e86d5afe2a9b..0000000000000 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesModelHelper.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.azure.data.tables.implementation; - -import com.azure.core.util.logging.ClientLogger; -import com.azure.data.tables.implementation.models.TableResponseProperties; -import com.azure.data.tables.models.TableEntity; -import com.azure.data.tables.models.TableItem; - -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * Used to access internal methods on models. - */ -public final class TablesModelHelper { - private static EntityAccessor entityAccessor; - private static ItemCreator itemCreator; - - static { - // Force classes' static blocks to execute - try { - Class.forName(TableEntity.class.getName(), true, TableEntity.class.getClassLoader()); - Class.forName(TableItem.class.getName(), true, TableItem.class.getClassLoader()); - } catch (ClassNotFoundException e) { - AssertionError err = new AssertionError("Failed to initialize TablesModelHelper dependency classes.", e); - new ClientLogger(TablesModelHelper.class).logThrowableAsError(err); - throw err; - } - } - - /** - * Sets the entity accessor. - * - * @param accessor The entity accessor. - * @throws IllegalStateException if the accessor has already been set. - */ - public static void setEntityAccessor(EntityAccessor accessor) { - Objects.requireNonNull(accessor, "'accessor' cannot be null."); - - if (TablesModelHelper.entityAccessor != null) { - throw new ClientLogger(TablesModelHelper.class).logExceptionAsError(new IllegalStateException( - "'entityAccessor' is already set.")); - } - - entityAccessor = accessor; - } - - /** - * Sets the item creator. - * - * @param creator The item creator. - * @throws IllegalStateException if the accessor has already been set. - */ - public static void setItemCreator(ItemCreator creator) { - Objects.requireNonNull(creator, "'creator' cannot be null."); - - if (TablesModelHelper.itemCreator != null) { - throw new ClientLogger(TablesModelHelper.class).logExceptionAsError(new IllegalStateException( - "'itemCreator' is already set.")); - } - - itemCreator = creator; - } - - /** - * Sets values on a {@link TableEntity}. - * - * @param entity Entity to set the values on. - * @param timestamp Timestamp to set. - * @param eTag ETag to set. - */ - public static void setValues(TableEntity entity, OffsetDateTime timestamp, String eTag) { - if (entityAccessor == null) { - throw new ClientLogger(TablesModelHelper.class).logExceptionAsError( - new IllegalStateException("'entityAccessor' should not be null.")); - } - - entityAccessor.setValues(entity, timestamp, eTag); - } - - /** - * Creates a {@link TableItem}. - * - * @param properties The TableResponseProperties used to construct the table - */ - public static TableItem createItem(TableResponseProperties properties) { - if (itemCreator == null) { - throw new ClientLogger(TablesModelHelper.class).logExceptionAsError( - new IllegalStateException("'itemCreator' should not be null.")); - } - - return itemCreator.create(properties); - } - - public interface EntityAccessor { - /** - * Sets values on a {@link TableEntity}. - * - * @param entity Entity to set the ETag on. - * @param timestamp Timestamp to set. - * @param eTag ETag to set. - */ - void setValues(TableEntity entity, OffsetDateTime timestamp, String eTag); - } - - public interface ItemCreator { - /** - * Creates a {@link TableItem}. - * - * @param properties The TableResponseProperties used to construct the table - */ - TableItem create(TableResponseProperties properties); - } -} diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableEntity.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableEntity.java index 832e9c60a0abc..74f99ff5a78a2 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableEntity.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableEntity.java @@ -6,7 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.data.tables.implementation.TablesConstants; -import com.azure.data.tables.implementation.TablesModelHelper; +import com.azure.data.tables.implementation.ModelHelper; import java.time.OffsetDateTime; import java.util.HashMap; @@ -21,17 +21,17 @@ public class TableEntity { private final ClientLogger logger = new ClientLogger(TableEntity.class); private final String partitionKey; private final String rowKey; - private final Map properties = new HashMap<>(); + private final Map properties; - private OffsetDateTime timestamp; - private String eTag; + private final OffsetDateTime timestamp; + private final String eTag; + private final String odataType; + private final String odataId; + private final String odataEditLink; static { // This is used by classes in different packages to get access to private and package-private methods. - TablesModelHelper.setEntityAccessor((entity, timestamp, eTag) -> { - entity.setTimestamp(timestamp); - entity.setETag(eTag); - }); + ModelHelper.setEntityCreator(TableEntity::new); } /** @@ -41,14 +41,82 @@ public class TableEntity { * @param rowKey the row key */ public TableEntity(String partitionKey, String rowKey) { - this.rowKey = Objects.requireNonNull(rowKey, "'rowKey' cannot be null."); - this.partitionKey = Objects.requireNonNull(partitionKey, "'partitionKey' cannot be null."); - Objects.requireNonNull(properties, "'properties' cannot be null."); + if (partitionKey == null || partitionKey.isEmpty()) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' is an empty value.", TablesConstants.PARTITION_KEY))); + } + this.partitionKey = partitionKey; + + if (rowKey == null || rowKey.isEmpty()) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' is an empty value.", TablesConstants.ROW_KEY))); + } + this.rowKey = rowKey; + this.timestamp = null; + this.eTag = null; + this.odataEditLink = null; + this.odataId = null; + this.odataType = null; + + this.properties = new HashMap<>(); properties.put(TablesConstants.PARTITION_KEY, partitionKey); properties.put(TablesConstants.ROW_KEY, rowKey); } + TableEntity(Map properties) { + Object partitionKey = properties.get(TablesConstants.PARTITION_KEY); + if (partitionKey != null && (!(partitionKey instanceof String) || ((String) partitionKey).isEmpty())) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' is an empty value or is of the wrong type.", TablesConstants.PARTITION_KEY))); + } + this.partitionKey = (String) partitionKey; + + Object rowKey = properties.get(TablesConstants.ROW_KEY); + if (rowKey != null && (!(rowKey instanceof String) || ((String) rowKey).isEmpty())) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' is an empty value or is of the wrong type.", TablesConstants.ROW_KEY))); + } + this.rowKey = (String) rowKey; + + Object timestamp = properties.get(TablesConstants.TIMESTAMP_KEY); + if (timestamp != null && !(timestamp instanceof OffsetDateTime)) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' value is of the wrong type.", TablesConstants.TIMESTAMP_KEY))); + } + this.timestamp = (OffsetDateTime) timestamp; + + Object eTag = properties.get(TablesConstants.ODATA_ETAG_KEY); + if (eTag != null && !(eTag instanceof String)) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' value is of the wrong type.", TablesConstants.ODATA_ETAG_KEY))); + } + this.eTag = (String) eTag; + + Object odataEditLink = properties.get(TablesConstants.ODATA_EDIT_LINK_KEY); + if (odataEditLink != null && !(odataEditLink instanceof String)) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' value is of the wrong type.", TablesConstants.ODATA_EDIT_LINK_KEY))); + } + this.odataEditLink = (String) odataEditLink; + + Object odataId = properties.get(TablesConstants.ODATA_ID_KEY); + if (odataId != null && !(odataId instanceof String)) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' value is of the wrong type.", TablesConstants.ODATA_ID_KEY))); + } + this.odataId = (String) odataId; + + Object odataType = properties.get(TablesConstants.ODATA_TYPE_KEY); + if (odataType != null && !(odataType instanceof String)) { + throw logger.logExceptionAsError(new IllegalArgumentException(String.format( + "'%s' value is of the wrong type.", TablesConstants.ODATA_TYPE_KEY))); + } + this.odataType = (String) odataType; + + this.properties = properties; + } + /** * Gets the map of properties * @@ -110,29 +178,38 @@ public OffsetDateTime getTimestamp() { } /** - * Sets the Timestamp on the Entity. + * gets the etag * - * @param timestamp Timestamp to set. + * @return the etag for the entity */ - void setTimestamp(OffsetDateTime timestamp) { - this.timestamp = timestamp; + public String getETag() { + return eTag; } /** - * gets the etag + * returns the type of this entity * - * @return the etag for the entity + * @return type */ - public String getETag() { - return eTag; + String getOdataType() { + return odataType; + } + + /** + * returns the ID of this entity + * + * @return ID + */ + String getOdataId() { + return odataId; } /** - * Sets the ETag on the Entity. + * returns the edit link of this entity * - * @param eTag ETag to set. + * @return edit link */ - void setETag(String eTag) { - this.eTag = eTag; + String getOdataEditLink() { + return odataEditLink; } } diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableItem.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableItem.java index 3e34d0dab9a6a..350d34dd9d7da 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableItem.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableItem.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. package com.azure.data.tables.models; -import com.azure.data.tables.implementation.TablesModelHelper; +import com.azure.data.tables.implementation.ModelHelper; import com.azure.data.tables.implementation.models.TableResponseProperties; /** @@ -16,7 +16,7 @@ public class TableItem { static { // This is used by classes in different packages to get access to private and package-private methods. - TablesModelHelper.setItemCreator(TableItem::new); + ModelHelper.setItemCreator(TableItem::new); } /** diff --git a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java index a99fe6143d5fd..0262afda0edcb 100644 --- a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java +++ b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java @@ -13,7 +13,9 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; import reactor.test.StepVerifier; import java.time.Duration; @@ -177,17 +179,65 @@ void serviceDeleteTableWithResponseAsync() { } @Test + @Tag("ListTables") + void serviceListTablesAsync() { + // Arrange + final String tableName = testResourceNamer.randomName("test", 20); + final String tableName2 = testResourceNamer.randomName("test", 20); + Mono.when( + serviceClient.createTable(tableName), + serviceClient.createTable(tableName2) + ).block(TIMEOUT); + + // Act & Assert + StepVerifier.create(serviceClient.listTables()) + .expectNextCount(2) + .thenConsumeWhile(x -> true) + .expectComplete() + .verify(); + } + + @Test + @Tag("ListTables") void serviceListTablesWithFilterAsync() { // Arrange final String tableName = testResourceNamer.randomName("test", 20); + final String tableName2 = testResourceNamer.randomName("test", 20); ListTablesOptions options = new ListTablesOptions().setFilter("TableName eq '" + tableName + "'"); - serviceClient.createTable(tableName).block(TIMEOUT); + Mono.when( + serviceClient.createTable(tableName), + serviceClient.createTable(tableName2) + ).block(TIMEOUT); // Act & Assert StepVerifier.create(serviceClient.listTables(options)) .assertNext(table -> { assertEquals(tableName, table.getName()); }) + .expectNextCount(0) + .thenConsumeWhile(x -> true) + .expectComplete() + .verify(); + } + + @Test + @Tag("ListTables") + void serviceListTablesWithTopAsync() { + // Arrange + final String tableName = testResourceNamer.randomName("test", 20); + final String tableName2 = testResourceNamer.randomName("test", 20); + final String tableName3 = testResourceNamer.randomName("test", 20); + ListTablesOptions options = new ListTablesOptions().setTop(2); + Mono.when( + serviceClient.createTable(tableName), + serviceClient.createTable(tableName2), + serviceClient.createTable(tableName3) + ).block(TIMEOUT); + + // Act & Assert + StepVerifier.create(serviceClient.listTables(options)) + .expectNextCount(2) + .thenConsumeWhile(x -> true) .expectComplete() .verify(); } diff --git a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TablesAsyncClientTest.java b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TablesAsyncClientTest.java index 9c9ec05b8a67f..5b90f427dc958 100644 --- a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TablesAsyncClientTest.java +++ b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TablesAsyncClientTest.java @@ -12,8 +12,9 @@ import com.azure.data.tables.models.ListEntitiesOptions; import com.azure.data.tables.models.TableEntity; import com.azure.data.tables.models.UpdateMode; -import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; import reactor.test.StepVerifier; import java.time.Duration; @@ -21,6 +22,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** @@ -302,29 +304,54 @@ void updateEntityWithResponseAsync(UpdateMode mode) { .verifyComplete(); } - @Disabled("List not working yet.") @Test - void listEntityWithFilterAsync() { + @Tag("ListEntities") + void listEntitiesAsync() { // Arrange final String partitionKeyValue = testResourceNamer.randomName("partitionKey", 20); final String rowKeyValue = testResourceNamer.randomName("rowKey", 20); - final TableEntity entity = new TableEntity(partitionKeyValue, rowKeyValue); - ListEntitiesOptions options = new ListEntitiesOptions().setFilter("PartitionKey eq '" + entity.getPartitionKey() + "'"); - tableClient.createEntity(entity).block(TIMEOUT); + final String rowKeyValue2 = testResourceNamer.randomName("rowKey", 20); + Mono.when( + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue)), + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue2)) + ).block(TIMEOUT); + + // Act & Assert + StepVerifier.create(tableClient.listEntities()) + .expectNextCount(2) + .thenConsumeWhile(x -> true) + .expectComplete() + .verify(); + } + + @Test + @Tag("ListEntities") + void listEntitiesWithFilterAsync() { + // Arrange + final String partitionKeyValue = testResourceNamer.randomName("partitionKey", 20); + final String rowKeyValue = testResourceNamer.randomName("rowKey", 20); + final String rowKeyValue2 = testResourceNamer.randomName("rowKey", 20); + ListEntitiesOptions options = new ListEntitiesOptions().setFilter("RowKey eq '" + rowKeyValue + "'"); + Mono.when( + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue)), + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue2)) + ).block(TIMEOUT); // Act & Assert StepVerifier.create(tableClient.listEntities(options)) .assertNext(returnEntity -> { assertEquals(partitionKeyValue, returnEntity.getPartitionKey()); - assertEquals(entity.getRowKey(), returnEntity.getRowKey()); + assertEquals(rowKeyValue, returnEntity.getRowKey()); }) + .expectNextCount(0) + .thenConsumeWhile(x -> true) .expectComplete() .verify(); } - @Disabled("List not working yet.") @Test - void listEntityWithSelectAsync() { + @Tag("ListEntities") + void listEntitiesWithSelectAsync() { // Arrange final String partitionKeyValue = testResourceNamer.randomName("partitionKey", 20); final String rowKeyValue = testResourceNamer.randomName("rowKey", 20); @@ -332,30 +359,41 @@ void listEntityWithSelectAsync() { .addProperty("propertyC", "valueC") .addProperty("propertyD", "valueD"); ListEntitiesOptions options = new ListEntitiesOptions() - .setFilter("PartitionKey eq '" + entity.getPartitionKey() + "'") .setSelect("propertyC"); tableClient.createEntity(entity).block(TIMEOUT); // Act & Assert StepVerifier.create(tableClient.listEntities(options)) .assertNext(returnEntity -> { - assertEquals(entity.getRowKey(), returnEntity.getRowKey()); - assertEquals(entity.getPartitionKey(), returnEntity.getPartitionKey()); + assertNull(returnEntity.getRowKey()); + assertNull(returnEntity.getPartitionKey()); assertEquals("valueC", returnEntity.getProperties().get("propertyC")); - assertEquals(3, returnEntity.getProperties().size()); + assertNull(returnEntity.getProperties().get("propertyD")); }) .expectComplete() .verify(); } @Test - void listEntityWithTopAsync() { + @Tag("ListEntities") + void listEntitiesWithTopAsync() { // Arrange - ListEntitiesOptions options = new ListEntitiesOptions() - .setTop(1); + final String partitionKeyValue = testResourceNamer.randomName("partitionKey", 20); + final String rowKeyValue = testResourceNamer.randomName("rowKey", 20); + final String rowKeyValue2 = testResourceNamer.randomName("rowKey", 20); + final String rowKeyValue3 = testResourceNamer.randomName("rowKey", 20); + ListEntitiesOptions options = new ListEntitiesOptions().setTop(2); + Mono.when( + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue)), + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue2)), + tableClient.createEntity(new TableEntity(partitionKeyValue, rowKeyValue3)) + ).block(TIMEOUT); // Act & Assert StepVerifier.create(tableClient.listEntities(options)) - .expectNextCount(2); + .expectNextCount(2) + .thenConsumeWhile(x -> true) + .expectComplete() + .verify(); } } diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesAsync.json new file mode 100644 index 0000000000000..442d9f50cf2ed --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesAsync.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "fad069a0-b37b-4737-85fa-3ba98cb6f3dd", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:58 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('tablename577453a5')", + "Content-Length" : "0", + "x-ms-request-id" : "70d54cd7-7002-00c3-7ee2-7cd306000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "fad069a0-b37b-4737-85fa-3ba98cb6f3dd", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('tablename577453a5')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename577453a5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "f00db36d-d908-4ca7-b19a-ea4c351cf969", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:58 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A58.439355Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey97788c73c')", + "Content-Length" : "0", + "x-ms-request-id" : "70d54ce7-7002-00c3-0be2-7cd306000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "f00db36d-d908-4ca7-b19a-ea4c351cf969", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey97788c73c')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename577453a5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "e4975ec7-7893-4e35-ac3d-8d353dafd1ac", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:58 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A58.464373Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey68919b12e')", + "Content-Length" : "0", + "x-ms-request-id" : "70d54ce8-7002-00c3-0ce2-7cd306000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "e4975ec7-7893-4e35-ac3d-8d353dafd1ac", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey68919b12e')" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename577453a5()?$format=application/json%3Bodata%3Dfullmetadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "b2e2ebae-423a-44d1-91fe-6916abf1ef91" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "Cache-Control" : "no-cache", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "70d54cf2-7002-00c3-16e2-7cd306000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#tablename577453a5\",\"value\":[{\"odata.type\":\"brsiegelsample.tablename577453a5\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey68919b12e')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A58.464373Z'\\\"\",\"odata.editLink\":\"tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey68919b12e')\",\"PartitionKey\":\"partitionkey46738e\",\"RowKey\":\"rowkey68919b12e\",\"Timestamp@odata.type\":\"Edm.DateTime\",\"Timestamp\":\"2020-08-28T02:26:58.464373Z\"},{\"odata.type\":\"brsiegelsample.tablename577453a5\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey97788c73c')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A58.439355Z'\\\"\",\"odata.editLink\":\"tablename577453a5(PartitionKey='partitionkey46738e',RowKey='rowkey97788c73c')\",\"PartitionKey\":\"partitionkey46738e\",\"RowKey\":\"rowkey97788c73c\",\"Timestamp@odata.type\":\"Edm.DateTime\",\"Timestamp\":\"2020-08-28T02:26:58.439355Z\"}]}", + "Date" : "Fri, 28 Aug 2020 02:26:58 GMT", + "x-ms-client-request-id" : "b2e2ebae-423a-44d1-91fe-6916abf1ef91", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "tablename577453a5", "partitionkey46738e", "rowkey97788c73c", "rowkey68919b12e" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithFilterAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithFilterAsync.json new file mode 100644 index 0000000000000..b67e0fd6ddb04 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithFilterAsync.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "b375b08e-0964-4563-a383-f59ea8087d1d", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:49 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('tablename1503261f')", + "Content-Length" : "0", + "x-ms-request-id" : "285df789-9002-003f-5de2-7c02ff000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "b375b08e-0964-4563-a383-f59ea8087d1d", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('tablename1503261f')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename1503261f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "1e4e4506-8ae8-4b69-b46f-9c7baab89b18", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:49 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A50.3094455Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename1503261f(PartitionKey='partitionkey75827c',RowKey='rowkey846239572')", + "Content-Length" : "0", + "x-ms-request-id" : "285df7a4-9002-003f-76e2-7c02ff000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "1e4e4506-8ae8-4b69-b46f-9c7baab89b18", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename1503261f(PartitionKey='partitionkey75827c',RowKey='rowkey846239572')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename1503261f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "4b2bc3d6-9965-4dae-b80e-582f3791637b", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:49 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A50.3354635Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename1503261f(PartitionKey='partitionkey75827c',RowKey='rowkey041465618')", + "Content-Length" : "0", + "x-ms-request-id" : "285df7ad-9002-003f-7fe2-7c02ff000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "4b2bc3d6-9965-4dae-b80e-582f3791637b", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename1503261f(PartitionKey='partitionkey75827c',RowKey='rowkey041465618')" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename1503261f()?$format=application/json%3Bodata%3Dfullmetadata&$filter=RowKey%20eq%20%27rowkey846239572%27", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "c4892b9a-ae0f-4653-b036-753a85f0cedc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "Cache-Control" : "no-cache", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "285df7b6-9002-003f-08e2-7c02ff000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#tablename1503261f\",\"value\":[{\"odata.type\":\"brsiegelsample.tablename1503261f\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename1503261f(PartitionKey='partitionkey75827c',RowKey='rowkey846239572')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A50.3094455Z'\\\"\",\"odata.editLink\":\"tablename1503261f(PartitionKey='partitionkey75827c',RowKey='rowkey846239572')\",\"PartitionKey\":\"partitionkey75827c\",\"RowKey\":\"rowkey846239572\",\"Timestamp@odata.type\":\"Edm.DateTime\",\"Timestamp\":\"2020-08-28T02:26:50.3094455Z\"}]}", + "Date" : "Fri, 28 Aug 2020 02:26:50 GMT", + "x-ms-client-request-id" : "c4892b9a-ae0f-4653-b036-753a85f0cedc", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "tablename1503261f", "partitionkey75827c", "rowkey846239572", "rowkey041465618" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithSelectAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithSelectAsync.json new file mode 100644 index 0000000000000..9c6af2025909c --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithSelectAsync.json @@ -0,0 +1,78 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "098dbc14-5c49-4d95-94c4-310729fbf5d9", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:54 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('tablename52409778')", + "Content-Length" : "0", + "x-ms-request-id" : "cf783c07-d002-0073-09e2-7c92cf000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "098dbc14-5c49-4d95-94c4-310729fbf5d9", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('tablename52409778')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename52409778", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "d7c60741-caeb-41b7-a893-7239d31a91b6", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:54 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A55.6348765Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename52409778(PartitionKey='partitionkey005024',RowKey='rowkey19878b418')", + "Content-Length" : "0", + "x-ms-request-id" : "cf783c2b-d002-0073-27e2-7c92cf000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "d7c60741-caeb-41b7-a893-7239d31a91b6", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename52409778(PartitionKey='partitionkey005024',RowKey='rowkey19878b418')" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename52409778()?$format=application/json%3Bodata%3Dfullmetadata&$select=propertyC", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "0bb758c9-aa0a-4d87-9141-fabb1aa392db" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "Cache-Control" : "no-cache", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cf783c3a-d002-0073-36e2-7c92cf000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#tablename52409778&$select=propertyC\",\"value\":[{\"odata.type\":\"brsiegelsample.tablename52409778\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename52409778(PartitionKey='partitionkey005024',RowKey='rowkey19878b418')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A55.6348765Z'\\\"\",\"odata.editLink\":\"tablename52409778(PartitionKey='partitionkey005024',RowKey='rowkey19878b418')\",\"propertyC\":\"valueC\"}]}", + "Date" : "Fri, 28 Aug 2020 02:26:54 GMT", + "x-ms-client-request-id" : "0bb758c9-aa0a-4d87-9141-fabb1aa392db", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "tablename52409778", "partitionkey005024", "rowkey19878b418" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithTopAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithTopAsync.json new file mode 100644 index 0000000000000..424b03d2898f8 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/listEntitiesWithTopAsync.json @@ -0,0 +1,155 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "5670cdd2-5d72-46ae-aaf4-a05e673a2ef9", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:52 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('tablename04439a16')", + "Content-Length" : "0", + "x-ms-request-id" : "93862bd3-f002-005b-46e2-7cf367000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "5670cdd2-5d72-46ae-aaf4-a05e673a2ef9", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('tablename04439a16')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename04439a16", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "93c97b2c-093d-41e7-a939-c4902ff7d816", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:52 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A52.9304254Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey5423059a3')", + "Content-Length" : "0", + "x-ms-request-id" : "93862be0-f002-005b-51e2-7cf367000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "93c97b2c-093d-41e7-a939-c4902ff7d816", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey5423059a3')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename04439a16", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "f7710adb-a82d-4536-bb43-8724b1660840", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:52 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A52.952441Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey999612231')", + "Content-Length" : "0", + "x-ms-request-id" : "93862be6-f002-005b-56e2-7cf367000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "f7710adb-a82d-4536-bb43-8724b1660840", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey999612231')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/tablename04439a16", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "b63785b9-7062-40e8-a0a8-29c89e0a573e", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:26:52 GMT", + "Cache-Control" : "no-cache", + "ETag" : "W/datetime'2020-08-28T02%3A26%3A52.9744561Z'", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey914436f52')", + "Content-Length" : "0", + "x-ms-request-id" : "93862beb-f002-005b-5ae2-7cf367000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "b63785b9-7062-40e8-a0a8-29c89e0a573e", + "Location" : "https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey914436f52')" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename04439a16()?$format=application/json%3Bodata%3Dfullmetadata&$top=2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "bc366565-49d3-439a-803b-cf7d59a42288" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "x-ms-continuation-NextPartitionKey" : "1!24!cGFydGl0aW9ua2V5MTkyNjU4", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 28 Aug 2020 02:26:52 GMT", + "Cache-Control" : "no-cache", + "x-ms-continuation-NextRowKey" : "1!20!cm93a2V5OTk5NjEyMjMx", + "x-ms-request-id" : "93862bef-f002-005b-5ee2-7cf367000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#tablename04439a16\",\"value\":[{\"odata.type\":\"brsiegelsample.tablename04439a16\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey5423059a3')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A52.9304254Z'\\\"\",\"odata.editLink\":\"tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey5423059a3')\",\"PartitionKey\":\"partitionkey192658\",\"RowKey\":\"rowkey5423059a3\",\"Timestamp@odata.type\":\"Edm.DateTime\",\"Timestamp\":\"2020-08-28T02:26:52.9304254Z\"},{\"odata.type\":\"brsiegelsample.tablename04439a16\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey914436f52')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A52.9744561Z'\\\"\",\"odata.editLink\":\"tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey914436f52')\",\"PartitionKey\":\"partitionkey192658\",\"RowKey\":\"rowkey914436f52\",\"Timestamp@odata.type\":\"Edm.DateTime\",\"Timestamp\":\"2020-08-28T02:26:52.9744561Z\"}]}", + "x-ms-client-request-id" : "bc366565-49d3-439a-803b-cf7d59a42288", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename04439a16()?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextPartitionKey=1%2124%21cGFydGl0aW9ua2V5MTkyNjU4&NextRowKey=1%2120%21cm93a2V5OTk5NjEyMjMx", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "927a9498-40e7-4657-920b-e34daaddedae" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "Cache-Control" : "no-cache", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "93862bf3-f002-005b-62e2-7cf367000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#tablename04439a16\",\"value\":[{\"odata.type\":\"brsiegelsample.tablename04439a16\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey999612231')\",\"odata.etag\":\"W/\\\"datetime'2020-08-28T02%3A26%3A52.952441Z'\\\"\",\"odata.editLink\":\"tablename04439a16(PartitionKey='partitionkey192658',RowKey='rowkey999612231')\",\"PartitionKey\":\"partitionkey192658\",\"RowKey\":\"rowkey999612231\",\"Timestamp@odata.type\":\"Edm.DateTime\",\"Timestamp\":\"2020-08-28T02:26:52.952441Z\"}]}", + "Date" : "Fri, 28 Aug 2020 02:26:52 GMT", + "x-ms-client-request-id" : "927a9498-40e7-4657-920b-e34daaddedae", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "tablename04439a16", "partitionkey192658", "rowkey5423059a3", "rowkey999612231", "rowkey914436f52" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesAsync.json new file mode 100644 index 0000000000000..41d3f2dd8563f --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesAsync.json @@ -0,0 +1,77 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "45f1c2da-f5dc-49c6-bac2-c296f155031c", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:31:53 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test06383c9e71')", + "Content-Length" : "0", + "x-ms-request-id" : "6a583a33-c002-0032-5ce3-7cca2b000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "45f1c2da-f5dc-49c6-bac2-c296f155031c", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test06383c9e71')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "babc6f73-f740-4f14-8f33-5d85ee1148b9", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:31:53 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test82653e4fb9')", + "Content-Length" : "0", + "x-ms-request-id" : "6a583a3d-c002-0032-64e3-7cca2b000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "babc6f73-f740-4f14-8f33-5d85ee1148b9", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test82653e4fb9')" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "5459e73f-430d-4d3d-9be3-c253d5e5028b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "Cache-Control" : "no-cache", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6a583a42-c002-0032-68e3-7cca2b000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename005593d7')\",\"odata.editLink\":\"Tables('tablename005593d7')\",\"TableName\":\"tablename005593d7\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename04439a16')\",\"odata.editLink\":\"Tables('tablename04439a16')\",\"TableName\":\"tablename04439a16\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename05399ab1')\",\"odata.editLink\":\"Tables('tablename05399ab1')\",\"TableName\":\"tablename05399ab1\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename08863144')\",\"odata.editLink\":\"Tables('tablename08863144')\",\"TableName\":\"tablename08863144\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename12011fa2')\",\"odata.editLink\":\"Tables('tablename12011fa2')\",\"TableName\":\"tablename12011fa2\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename1503261f')\",\"odata.editLink\":\"Tables('tablename1503261f')\",\"TableName\":\"tablename1503261f\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename1740503e')\",\"odata.editLink\":\"Tables('tablename1740503e')\",\"TableName\":\"tablename1740503e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename22151d64')\",\"odata.editLink\":\"Tables('tablename22151d64')\",\"TableName\":\"tablename22151d64\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename22570f34')\",\"odata.editLink\":\"Tables('tablename22570f34')\",\"TableName\":\"tablename22570f34\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename22926b61')\",\"odata.editLink\":\"Tables('tablename22926b61')\",\"TableName\":\"tablename22926b61\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename24297981')\",\"odata.editLink\":\"Tables('tablename24297981')\",\"TableName\":\"tablename24297981\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename266742d8')\",\"odata.editLink\":\"Tables('tablename266742d8')\",\"TableName\":\"tablename266742d8\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename2735672b')\",\"odata.editLink\":\"Tables('tablename2735672b')\",\"TableName\":\"tablename2735672b\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename28265d57')\",\"odata.editLink\":\"Tables('tablename28265d57')\",\"TableName\":\"tablename28265d57\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename29023a45')\",\"odata.editLink\":\"Tables('tablename29023a45')\",\"TableName\":\"tablename29023a45\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename29498f86')\",\"odata.editLink\":\"Tables('tablename29498f86')\",\"TableName\":\"tablename29498f86\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename318470ba')\",\"odata.editLink\":\"Tables('tablename318470ba')\",\"TableName\":\"tablename318470ba\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename380507a9')\",\"odata.editLink\":\"Tables('tablename380507a9')\",\"TableName\":\"tablename380507a9\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename429824e5')\",\"odata.editLink\":\"Tables('tablename429824e5')\",\"TableName\":\"tablename429824e5\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename4765688e')\",\"odata.editLink\":\"Tables('tablename4765688e')\",\"TableName\":\"tablename4765688e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename50892c11')\",\"odata.editLink\":\"Tables('tablename50892c11')\",\"TableName\":\"tablename50892c11\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename52409778')\",\"odata.editLink\":\"Tables('tablename52409778')\",\"TableName\":\"tablename52409778\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename55175482')\",\"odata.editLink\":\"Tables('tablename55175482')\",\"TableName\":\"tablename55175482\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename577453a5')\",\"odata.editLink\":\"Tables('tablename577453a5')\",\"TableName\":\"tablename577453a5\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename5869215e')\",\"odata.editLink\":\"Tables('tablename5869215e')\",\"TableName\":\"tablename5869215e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename59331a54')\",\"odata.editLink\":\"Tables('tablename59331a54')\",\"TableName\":\"tablename59331a54\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename61704c28')\",\"odata.editLink\":\"Tables('tablename61704c28')\",\"TableName\":\"tablename61704c28\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename676177ca')\",\"odata.editLink\":\"Tables('tablename676177ca')\",\"TableName\":\"tablename676177ca\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename752523f0')\",\"odata.editLink\":\"Tables('tablename752523f0')\",\"TableName\":\"tablename752523f0\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename759867f7')\",\"odata.editLink\":\"Tables('tablename759867f7')\",\"TableName\":\"tablename759867f7\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename8230294b')\",\"odata.editLink\":\"Tables('tablename8230294b')\",\"TableName\":\"tablename8230294b\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename8345426e')\",\"odata.editLink\":\"Tables('tablename8345426e')\",\"TableName\":\"tablename8345426e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename84415286')\",\"odata.editLink\":\"Tables('tablename84415286')\",\"TableName\":\"tablename84415286\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename8628280c')\",\"odata.editLink\":\"Tables('tablename8628280c')\",\"TableName\":\"tablename8628280c\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename86719a4c')\",\"odata.editLink\":\"Tables('tablename86719a4c')\",\"TableName\":\"tablename86719a4c\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename89280cf9')\",\"odata.editLink\":\"Tables('tablename89280cf9')\",\"TableName\":\"tablename89280cf9\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename911357f6')\",\"odata.editLink\":\"Tables('tablename911357f6')\",\"TableName\":\"tablename911357f6\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename92139cb2')\",\"odata.editLink\":\"Tables('tablename92139cb2')\",\"TableName\":\"tablename92139cb2\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename94779836')\",\"odata.editLink\":\"Tables('tablename94779836')\",\"TableName\":\"tablename94779836\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename9640599b')\",\"odata.editLink\":\"Tables('tablename9640599b')\",\"TableName\":\"tablename9640599b\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test006395df14')\",\"odata.editLink\":\"Tables('test006395df14')\",\"TableName\":\"test006395df14\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test007347455e')\",\"odata.editLink\":\"Tables('test007347455e')\",\"TableName\":\"test007347455e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test0374771735')\",\"odata.editLink\":\"Tables('test0374771735')\",\"TableName\":\"test0374771735\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test04639b0b55')\",\"odata.editLink\":\"Tables('test04639b0b55')\",\"TableName\":\"test04639b0b55\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test057208851c')\",\"odata.editLink\":\"Tables('test057208851c')\",\"TableName\":\"test057208851c\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test06383c9e71')\",\"odata.editLink\":\"Tables('test06383c9e71')\",\"TableName\":\"test06383c9e71\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test0745122b86')\",\"odata.editLink\":\"Tables('test0745122b86')\",\"TableName\":\"test0745122b86\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test10015a9f16')\",\"odata.editLink\":\"Tables('test10015a9f16')\",\"TableName\":\"test10015a9f16\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test155744f244')\",\"odata.editLink\":\"Tables('test155744f244')\",\"TableName\":\"test155744f244\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test1647277e78')\",\"odata.editLink\":\"Tables('test1647277e78')\",\"TableName\":\"test1647277e78\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test21844768a3')\",\"odata.editLink\":\"Tables('test21844768a3')\",\"TableName\":\"test21844768a3\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test257389fbf8')\",\"odata.editLink\":\"Tables('test257389fbf8')\",\"TableName\":\"test257389fbf8\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test2599971a94')\",\"odata.editLink\":\"Tables('test2599971a94')\",\"TableName\":\"test2599971a94\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test2622631dd8')\",\"odata.editLink\":\"Tables('test2622631dd8')\",\"TableName\":\"test2622631dd8\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test26338149bb')\",\"odata.editLink\":\"Tables('test26338149bb')\",\"TableName\":\"test26338149bb\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test281826ce94')\",\"odata.editLink\":\"Tables('test281826ce94')\",\"TableName\":\"test281826ce94\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test28355fbd99')\",\"odata.editLink\":\"Tables('test28355fbd99')\",\"TableName\":\"test28355fbd99\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test33027fb27c')\",\"odata.editLink\":\"Tables('test33027fb27c')\",\"TableName\":\"test33027fb27c\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test3894166e75')\",\"odata.editLink\":\"Tables('test3894166e75')\",\"TableName\":\"test3894166e75\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test3997052fe6')\",\"odata.editLink\":\"Tables('test3997052fe6')\",\"TableName\":\"test3997052fe6\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test4212370301')\",\"odata.editLink\":\"Tables('test4212370301')\",\"TableName\":\"test4212370301\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test4765734d77')\",\"odata.editLink\":\"Tables('test4765734d77')\",\"TableName\":\"test4765734d77\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test47781842bc')\",\"odata.editLink\":\"Tables('test47781842bc')\",\"TableName\":\"test47781842bc\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test51168a9b38')\",\"odata.editLink\":\"Tables('test51168a9b38')\",\"TableName\":\"test51168a9b38\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test520311ed97')\",\"odata.editLink\":\"Tables('test520311ed97')\",\"TableName\":\"test520311ed97\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test520753e49d')\",\"odata.editLink\":\"Tables('test520753e49d')\",\"TableName\":\"test520753e49d\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test566703d6dd')\",\"odata.editLink\":\"Tables('test566703d6dd')\",\"TableName\":\"test566703d6dd\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test56846ce380')\",\"odata.editLink\":\"Tables('test56846ce380')\",\"TableName\":\"test56846ce380\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test59416cb4ec')\",\"odata.editLink\":\"Tables('test59416cb4ec')\",\"TableName\":\"test59416cb4ec\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test6722241abb')\",\"odata.editLink\":\"Tables('test6722241abb')\",\"TableName\":\"test6722241abb\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test679311d126')\",\"odata.editLink\":\"Tables('test679311d126')\",\"TableName\":\"test679311d126\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test702437ff4e')\",\"odata.editLink\":\"Tables('test702437ff4e')\",\"TableName\":\"test702437ff4e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test734214d762')\",\"odata.editLink\":\"Tables('test734214d762')\",\"TableName\":\"test734214d762\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test752186f9b8')\",\"odata.editLink\":\"Tables('test752186f9b8')\",\"TableName\":\"test752186f9b8\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test78362c260e')\",\"odata.editLink\":\"Tables('test78362c260e')\",\"TableName\":\"test78362c260e\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test80861bd1a2')\",\"odata.editLink\":\"Tables('test80861bd1a2')\",\"TableName\":\"test80861bd1a2\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test81380603c8')\",\"odata.editLink\":\"Tables('test81380603c8')\",\"TableName\":\"test81380603c8\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test82653e4fb9')\",\"odata.editLink\":\"Tables('test82653e4fb9')\",\"TableName\":\"test82653e4fb9\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test830095af33')\",\"odata.editLink\":\"Tables('test830095af33')\",\"TableName\":\"test830095af33\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test85149324b9')\",\"odata.editLink\":\"Tables('test85149324b9')\",\"TableName\":\"test85149324b9\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test853437ea44')\",\"odata.editLink\":\"Tables('test853437ea44')\",\"TableName\":\"test853437ea44\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test85922dd8da')\",\"odata.editLink\":\"Tables('test85922dd8da')\",\"TableName\":\"test85922dd8da\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test88876136a4')\",\"odata.editLink\":\"Tables('test88876136a4')\",\"TableName\":\"test88876136a4\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test90030d7fe2')\",\"odata.editLink\":\"Tables('test90030d7fe2')\",\"TableName\":\"test90030d7fe2\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test90613aee41')\",\"odata.editLink\":\"Tables('test90613aee41')\",\"TableName\":\"test90613aee41\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test92691e7cc4')\",\"odata.editLink\":\"Tables('test92691e7cc4')\",\"TableName\":\"test92691e7cc4\"}]}", + "Date" : "Fri, 28 Aug 2020 02:31:53 GMT", + "x-ms-client-request-id" : "5459e73f-430d-4d3d-9be3-c253d5e5028b", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "test06383c9e71", "test82653e4fb9" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithFilterAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithFilterAsync.json index 9d252a115a735..653cac014908d 100644 --- a/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithFilterAsync.json +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithFilterAsync.json @@ -5,7 +5,7 @@ "Headers" : { "x-ms-version" : "2019-02-02", "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", - "x-ms-client-request-id" : "06927113-a636-42f5-bb72-b5cc497cefdb", + "x-ms-client-request-id" : "22243d2c-0c42-487e-84a9-483849e3fd28", "Content-Type" : "application/json" }, "Response" : { @@ -14,23 +14,48 @@ "X-Content-Type-Options" : "nosniff", "retry-after" : "0", "StatusCode" : "204", - "Date" : "Thu, 27 Aug 2020 01:51:44 GMT", + "Date" : "Fri, 28 Aug 2020 02:31:50 GMT", "Cache-Control" : "no-cache", - "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test3626197efd')", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test90030d7fe2')", "Content-Length" : "0", - "x-ms-request-id" : "671fe630-5002-0020-6414-7cb1fb000000", + "x-ms-request-id" : "5e05a870-5002-00b6-2de3-7cb82a000000", "Preference-Applied" : "return-no-content", - "x-ms-client-request-id" : "06927113-a636-42f5-bb72-b5cc497cefdb", - "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test3626197efd')" + "x-ms-client-request-id" : "22243d2c-0c42-487e-84a9-483849e3fd28", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test90030d7fe2')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "c0083317-0462-4d71-b5b4-c7e91544c5a1", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Fri, 28 Aug 2020 02:31:50 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test81380603c8')", + "Content-Length" : "0", + "x-ms-request-id" : "5e05a87c-5002-00b6-37e3-7cb82a000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "c0083317-0462-4d71-b5b4-c7e91544c5a1", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test81380603c8')" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$filter=TableName%20eq%20%27test3626197efd%27", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$filter=TableName%20eq%20%27test90030d7fe2%27", "Headers" : { "x-ms-version" : "2019-02-02", "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", - "x-ms-client-request-id" : "85c97dca-bb2e-4abf-bdea-81ad47538df3" + "x-ms-client-request-id" : "38544705-b1d0-4467-8864-8aff39b2064e" }, "Response" : { "Transfer-Encoding" : "chunked", @@ -40,13 +65,13 @@ "X-Content-Type-Options" : "nosniff", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "671fe642-5002-0020-7314-7cb1fb000000", - "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test3626197efd')\",\"odata.editLink\":\"Tables('test3626197efd')\",\"TableName\":\"test3626197efd\"}]}", - "Date" : "Thu, 27 Aug 2020 01:51:44 GMT", - "x-ms-client-request-id" : "85c97dca-bb2e-4abf-bdea-81ad47538df3", + "x-ms-request-id" : "5e05a881-5002-00b6-3be3-7cb82a000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test90030d7fe2')\",\"odata.editLink\":\"Tables('test90030d7fe2')\",\"TableName\":\"test90030d7fe2\"}]}", + "Date" : "Fri, 28 Aug 2020 02:31:50 GMT", + "x-ms-client-request-id" : "38544705-b1d0-4467-8864-8aff39b2064e", "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" }, "Exception" : null } ], - "variables" : [ "test3626197efd" ] + "variables" : [ "test90030d7fe2", "test81380603c8" ] } \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithTopAsync.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithTopAsync.json new file mode 100644 index 0000000000000..1f33790e9fcd7 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/serviceListTablesWithTopAsync.json @@ -0,0 +1,414 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "8c2ddc34-77e4-4207-af59-90703668bf9b", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test2869773f50')", + "Content-Length" : "0", + "x-ms-request-id" : "3685c5fd-7002-0018-619f-7d153b000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "8c2ddc34-77e4-4207-af59-90703668bf9b", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test2869773f50')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "6703030a-6486-42fe-bf7f-3d3f21e6c113", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test61000c4016')", + "Content-Length" : "0", + "x-ms-request-id" : "57e6a677-c002-009b-069f-7d0b59000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "6703030a-6486-42fe-bf7f-3d3f21e6c113", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test61000c4016')" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "d2e9b05e-0fe9-4d73-921e-73539291091c", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://brsiegelsample.table.core.windows.net/Tables('test50046e8327')", + "Content-Length" : "0", + "x-ms-request-id" : "a2d08562-3002-00a0-0e9f-7d4efd000000", + "Preference-Applied" : "return-no-content", + "x-ms-client-request-id" : "d2e9b05e-0fe9-4d73-921e-73539291091c", + "Location" : "https://brsiegelsample.table.core.windows.net/Tables('test50046e8327')" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "f6c5a706-dc25-4ddf-8da3-df43ba1cac4a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lMjAwNTA1ZjUBMDFkNjdkOTExNGYzNjhhNQ--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "3685c609-7002-0018-6a9f-7d153b000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename18710f82')\",\"odata.editLink\":\"Tables('tablename18710f82')\",\"TableName\":\"tablename18710f82\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename20049a1f')\",\"odata.editLink\":\"Tables('tablename20049a1f')\",\"TableName\":\"tablename20049a1f\"}]}", + "x-ms-client-request-id" : "f6c5a706-dc25-4ddf-8da3-df43ba1cac4a", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lMjAwNTA1ZjUBMDFkNjdkOTExNGYzNjhhNQ--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "ae5f3487-09a0-4d74-a042-2ee3e40fdf31" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lNDI5MTNlMTIBMDFkNjdkOTEwMzYxNGMwZg--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "57e6a686-c002-009b-0f9f-7d0b59000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename200505f5')\",\"odata.editLink\":\"Tables('tablename200505f5')\",\"TableName\":\"tablename200505f5\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename376233ff')\",\"odata.editLink\":\"Tables('tablename376233ff')\",\"TableName\":\"tablename376233ff\"}]}", + "x-ms-client-request-id" : "ae5f3487-09a0-4d74-a042-2ee3e40fdf31", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lNDI5MTNlMTIBMDFkNjdkOTEwMzYxNGMwZg--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "9d378ac2-cfbd-4f95-92df-847788bbb7aa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lNDM3MzFkNjUBMDFkNjdkOTBmZTY1ZmJmZA--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "a2d0856b-3002-00a0-159f-7d4efd000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename42913e12')\",\"odata.editLink\":\"Tables('tablename42913e12')\",\"TableName\":\"tablename42913e12\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename43390846')\",\"odata.editLink\":\"Tables('tablename43390846')\",\"TableName\":\"tablename43390846\"}]}", + "x-ms-client-request-id" : "9d378ac2-cfbd-4f95-92df-847788bbb7aa", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lNDM3MzFkNjUBMDFkNjdkOTBmZTY1ZmJmZA--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "d66f4cf2-d16a-4098-b0b4-71cf777da718" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lNjY0NjhkN2IBMDFkNjdkOTEwYjQyMTk2NQ--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "3685c613-7002-0018-749f-7d153b000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename43731d65')\",\"odata.editLink\":\"Tables('tablename43731d65')\",\"TableName\":\"tablename43731d65\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename4907877c')\",\"odata.editLink\":\"Tables('tablename4907877c')\",\"TableName\":\"tablename4907877c\"}]}", + "x-ms-client-request-id" : "d66f4cf2-d16a-4098-b0b4-71cf777da718", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lNjY0NjhkN2IBMDFkNjdkOTEwYjQyMTk2NQ--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "8abd5c72-f88d-4bb3-9bd6-9fc83aa96f91" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lODI5MjcwYWYBMDFkNjdkOTEwOTlkNmM1MQ--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "57e6a688-c002-009b-119f-7d0b59000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename66468d7b')\",\"odata.editLink\":\"Tables('tablename66468d7b')\",\"TableName\":\"tablename66468d7b\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename71199fe7')\",\"odata.editLink\":\"Tables('tablename71199fe7')\",\"TableName\":\"tablename71199fe7\"}]}", + "x-ms-client-request-id" : "8abd5c72-f88d-4bb3-9bd6-9fc83aa96f91", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lODI5MjcwYWYBMDFkNjdkOTEwOTlkNmM1MQ--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "70b80a1b-4276-4775-b0e7-de71855a535a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lODU3Nzc3MGYBMDFkNjdkOTExMzU3OTZjYQ--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "a2d0857e-3002-00a0-279f-7d4efd000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename829270af')\",\"odata.editLink\":\"Tables('tablename829270af')\",\"TableName\":\"tablename829270af\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename83209b67')\",\"odata.editLink\":\"Tables('tablename83209b67')\",\"TableName\":\"tablename83209b67\"}]}", + "x-ms-client-request-id" : "70b80a1b-4276-4775-b0e7-de71855a535a", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lODU3Nzc3MGYBMDFkNjdkOTExMzU3OTZjYQ--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "e79577eb-ae05-45f2-a765-3c298951bae2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!48!dGFibGVuYW1lOTMwNTU5OWQBMDFkNjdkOTEwY2M0NmQyNA--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "3685c618-7002-0018-799f-7d153b000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename8577770f')\",\"odata.editLink\":\"Tables('tablename8577770f')\",\"TableName\":\"tablename8577770f\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename9126961e')\",\"odata.editLink\":\"Tables('tablename9126961e')\",\"TableName\":\"tablename9126961e\"}]}", + "x-ms-client-request-id" : "e79577eb-ae05-45f2-a765-3c298951bae2", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2148%21dGFibGVuYW1lOTMwNTU5OWQBMDFkNjdkOTEwY2M0NmQyNA--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "391ec67b-1951-4df7-8e00-f493e9be18ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!44!dGVzdDA3Mzg3MGQyMjIBMDFkNjdkOTExZDJmZDNmZg--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "57e6a691-c002-009b-189f-7d0b59000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename9305599d')\",\"odata.editLink\":\"Tables('tablename9305599d')\",\"TableName\":\"tablename9305599d\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('tablename9526959a')\",\"odata.editLink\":\"Tables('tablename9526959a')\",\"TableName\":\"tablename9526959a\"}]}", + "x-ms-client-request-id" : "391ec67b-1951-4df7-8e00-f493e9be18ab", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2144%21dGVzdDA3Mzg3MGQyMjIBMDFkNjdkOTExZDJmZDNmZg--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "03163fad-bfcf-462e-8332-641bf0cb7568" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:39 GMT", + "x-ms-continuation-NextTableName" : "1!44!dGVzdDI4Njk3NzNmNTABMDFkNjdkOWZjZjcxYzQxZQ--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "a2d08595-3002-00a0-3e9f-7d4efd000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test073870d222')\",\"odata.editLink\":\"Tables('test073870d222')\",\"TableName\":\"test073870d222\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test221679dc96')\",\"odata.editLink\":\"Tables('test221679dc96')\",\"TableName\":\"test221679dc96\"}]}", + "x-ms-client-request-id" : "03163fad-bfcf-462e-8332-641bf0cb7568", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2144%21dGVzdDI4Njk3NzNmNTABMDFkNjdkOWZjZjcxYzQxZQ--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "1103dc99-34d1-41a6-ba9d-9cb9d0156da4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!44!dGVzdDYxMDAwYzQwMTYBMDFkNjdkOWZjZjcxZWIzYQ--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "3685c622-7002-0018-019f-7d153b000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test2869773f50')\",\"odata.editLink\":\"Tables('test2869773f50')\",\"TableName\":\"test2869773f50\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test50046e8327')\",\"odata.editLink\":\"Tables('test50046e8327')\",\"TableName\":\"test50046e8327\"}]}", + "x-ms-client-request-id" : "1103dc99-34d1-41a6-ba9d-9cb9d0156da4", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2144%21dGVzdDYxMDAwYzQwMTYBMDFkNjdkOWZjZjcxZWIzYQ--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "2a654345-510b-4ba1-b20d-eb37fcb73572" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!44!dGVzdDczNzQyNjNkNTYBMDFkNjdkOTExYmE4OWY0Yw--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "57e6a697-c002-009b-1e9f-7d0b59000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test61000c4016')\",\"odata.editLink\":\"Tables('test61000c4016')\",\"TableName\":\"test61000c4016\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test7364588c80')\",\"odata.editLink\":\"Tables('test7364588c80')\",\"TableName\":\"test7364588c80\"}]}", + "x-ms-client-request-id" : "2a654345-510b-4ba1-b20d-eb37fcb73572", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2144%21dGVzdDczNzQyNjNkNTYBMDFkNjdkOTExYmE4OWY0Yw--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "871f7872-6136-407a-afbb-976d39fb28ff" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:39 GMT", + "x-ms-continuation-NextTableName" : "1!44!dGVzdDgwODU0NzdiMzMBMDFkNjdkOTExNjhlYzUzYg--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "a2d085aa-3002-00a0-539f-7d4efd000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test7374263d56')\",\"odata.editLink\":\"Tables('test7374263d56')\",\"TableName\":\"test7374263d56\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test792520b9e3')\",\"odata.editLink\":\"Tables('test792520b9e3')\",\"TableName\":\"test792520b9e3\"}]}", + "x-ms-client-request-id" : "871f7872-6136-407a-afbb-976d39fb28ff", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2144%21dGVzdDgwODU0NzdiMzMBMDFkNjdkOTExNjhlYzUzYg--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "041c7387-65fd-4f35-af4a-59268246cb78" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-continuation-NextTableName" : "1!44!dGVzdDk4OTk4NjY3ZTIBMDFkNjdkOWZjYzQyNWYxMg--", + "Cache-Control" : "no-cache", + "x-ms-request-id" : "3685c62d-7002-0018-0a9f-7d153b000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test8085477b33')\",\"odata.editLink\":\"Tables('test8085477b33')\",\"TableName\":\"test8085477b33\"},{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test97656af5d7')\",\"odata.editLink\":\"Tables('test97656af5d7')\",\"TableName\":\"test97656af5d7\"}]}", + "x-ms-client-request-id" : "041c7387-65fd-4f35-af4a-59268246cb78", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/Tables?$format=application/json%3Bodata%3Dfullmetadata&$top=2&NextTableName=1%2144%21dGVzdDk4OTk4NjY3ZTIBMDFkNjdkOWZjYzQyNWYxMg--", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-UnknownName/UnknownVersion (11.0.8; Mac OS X; 10.15.6)", + "x-ms-client-request-id" : "f0bebb6f-af3d-463c-b101-1648527f7cb3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "Cache-Control" : "no-cache", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "57e6a69c-c002-009b-229f-7d0b59000000", + "Body" : "{\"odata.metadata\":\"https://brsiegelsample.table.core.windows.net/$metadata#Tables\",\"value\":[{\"odata.type\":\"brsiegelsample.Tables\",\"odata.id\":\"https://brsiegelsample.table.core.windows.net/Tables('test98998667e2')\",\"odata.editLink\":\"Tables('test98998667e2')\",\"TableName\":\"test98998667e2\"}]}", + "Date" : "Sat, 29 Aug 2020 01:00:38 GMT", + "x-ms-client-request-id" : "f0bebb6f-af3d-463c-b101-1648527f7cb3", + "Content-Type" : "application/json;odata=fullmetadata;streaming=true;charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "test61000c4016", "test2869773f50", "test50046e8327" ] +} \ No newline at end of file