From 4ac1a476c0c82a07726481196ceb3a6d8a1744e3 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Tue, 4 May 2021 08:29:00 -0500 Subject: [PATCH] Renames, Delete swallows 404s, Add StringFormatter overloads to Query methods (#20786) * renames * catch 404s * string format overloads for Query methods --- sdk/tables/Azure.Data.Tables/README.md | 2 +- .../api/Azure.Data.Tables.netstandard2.0.cs | 96 ++++--- .../samples/Sample3QueryTables.md | 2 +- .../TableClientBuilderExtensions.cs | 14 +- .../Models/TableAccessPolicy.Serialization.cs | 22 +- .../src/Generated/Models/TableAccessPolicy.cs | 2 +- ...eAnalyticsLoggingSettings.Serialization.cs | 5 +- .../Models/TableAnalyticsLoggingSettings.cs | 5 +- .../Models/TableMetrics.Serialization.cs | 5 +- .../src/Generated/Models/TableMetrics.cs | 6 +- ... => TableRetentionPolicy.Serialization.cs} | 8 +- ...ntionPolicy.cs => TableRetentionPolicy.cs} | 12 +- ...=> TableSignedIdentifier.Serialization.cs} | 9 +- ...Identifier.cs => TableSignedIdentifier.cs} | 9 +- .../src/Generated/TableRestClient.cs | 22 +- .../Azure.Data.Tables/src/ITableEntity.cs | 9 +- .../src/Sas/TableSasBuilder.cs | 8 +- .../src/TableAccessPolicy.cs | 4 +- .../Azure.Data.Tables/src/TableClient.cs | 145 ++++++---- .../src/TableEntity.Dictionary.cs | 12 +- .../Azure.Data.Tables/src/TableErrorCode.cs | 20 +- sdk/tables/Azure.Data.Tables/src/TableItem.cs | 3 + .../Azure.Data.Tables/src/TableOdataFilter.cs | 4 +- .../src/TableRetentionPolicy.cs | 11 + .../src/TableServiceClient.cs | 195 ++++++++++--- .../src/TableSignedIdentifier.cs | 11 + ...lientOptions.cs => TablesClientOptions.cs} | 8 +- .../src/TablesModelFactory.cs | 21 -- .../tests/ExtractFailureContentTests.cs | 2 +- .../EntityDeleteRespectsEtag.json | 225 ++++++++------- .../EntityDeleteRespectsEtagAsync.json | 225 ++++++++------- .../ValidateCreateDeleteTable.json | 127 +++++---- .../ValidateCreateDeleteTableAsync.json | 127 +++++---- .../EntityDeleteRespectsEtag.json | 258 ++++++++++-------- .../EntityDeleteRespectsEtagAsync.json | 258 ++++++++++-------- .../ValidateCreateDeleteTable.json | 148 ++++++---- .../ValidateCreateDeleteTableAsync.json | 148 ++++++---- .../tests/TableClientLiveTests.cs | 97 +++---- .../tests/TableClientTests.cs | 8 +- .../tests/TableServiceClientLiveTests.cs | 18 +- .../tests/TableServiceLiveTestsBase.cs | 2 +- .../perf/Infrastructure/TablesPerfTest.cs | 2 +- .../tests/samples/Sample3_QueryTables.cs | 2 +- .../tests/samples/Sample3_QueryTablesAsync.cs | 2 +- 44 files changed, 1399 insertions(+), 920 deletions(-) rename sdk/tables/Azure.Data.Tables/src/Generated/Models/{RetentionPolicy.Serialization.cs => TableRetentionPolicy.Serialization.cs} (81%) rename sdk/tables/Azure.Data.Tables/src/Generated/Models/{RetentionPolicy.cs => TableRetentionPolicy.cs} (75%) rename sdk/tables/Azure.Data.Tables/src/Generated/Models/{SignedIdentifier.Serialization.cs => TableSignedIdentifier.Serialization.cs} (78%) rename sdk/tables/Azure.Data.Tables/src/Generated/Models/{SignedIdentifier.cs => TableSignedIdentifier.cs} (78%) create mode 100644 sdk/tables/Azure.Data.Tables/src/TableRetentionPolicy.cs create mode 100644 sdk/tables/Azure.Data.Tables/src/TableSignedIdentifier.cs rename sdk/tables/Azure.Data.Tables/src/{TableClientOptions.cs => TablesClientOptions.cs} (82%) delete mode 100644 sdk/tables/Azure.Data.Tables/src/TablesModelFactory.cs diff --git a/sdk/tables/Azure.Data.Tables/README.md b/sdk/tables/Azure.Data.Tables/README.md index 29442e501ee4..255d6f4f0af8 100644 --- a/sdk/tables/Azure.Data.Tables/README.md +++ b/sdk/tables/Azure.Data.Tables/README.md @@ -119,7 +119,7 @@ The set of existing Azure tables can be queries using an OData filter. ```C# Snippet:TablesSample3QueryTables // Use the to query the service. Passing in OData filter strings is optional. -Pageable queryTableResults = serviceClient.GetTables(filter: $"TableName eq '{tableName}'"); +Pageable queryTableResults = serviceClient.Query(filter: $"TableName eq '{tableName}'"); Console.WriteLine("The following are the names of the tables in the query results:"); diff --git a/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs b/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs index 12ed68a0e686..c09b393deb38 100644 --- a/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs +++ b/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs @@ -5,17 +5,17 @@ public partial interface ITableEntity Azure.ETag ETag { get; set; } string PartitionKey { get; set; } string RowKey { get; set; } - System.DateTimeOffset? Timestamp { get; set; } + System.DateTimeOffset? Timestamp { get; } } public partial class TableClient { protected TableClient() { } public TableClient(string connectionString, string tableName) { } - public TableClient(string connectionString, string tableName, Azure.Data.Tables.TableClientOptions options = null) { } - public TableClient(System.Uri endpoint, Azure.AzureSasCredential credential, Azure.Data.Tables.TableClientOptions options = null) { } - public TableClient(System.Uri endpoint, Azure.Data.Tables.TableClientOptions options = null) { } + public TableClient(string connectionString, string tableName, Azure.Data.Tables.TablesClientOptions options = null) { } + public TableClient(System.Uri endpoint, Azure.AzureSasCredential credential, Azure.Data.Tables.TablesClientOptions options = null) { } + public TableClient(System.Uri endpoint, Azure.Data.Tables.TablesClientOptions options = null) { } public TableClient(System.Uri endpoint, string tableName, Azure.Data.Tables.TableSharedKeyCredential credential) { } - public TableClient(System.Uri endpoint, string tableName, Azure.Data.Tables.TableSharedKeyCredential credential, Azure.Data.Tables.TableClientOptions options = null) { } + public TableClient(System.Uri endpoint, string tableName, Azure.Data.Tables.TableSharedKeyCredential credential, Azure.Data.Tables.TablesClientOptions options = null) { } public virtual string AccountName { get { throw null; } } public virtual string Name { get { throw null; } } public virtual System.Threading.Tasks.Task AddEntityAsync(T entity, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } @@ -30,8 +30,8 @@ public TableClient(System.Uri endpoint, string tableName, Azure.Data.Tables.Tabl public virtual System.Threading.Tasks.Task DeleteAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteEntity(string partitionKey, string rowKey, Azure.ETag ifMatch = default(Azure.ETag), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteEntityAsync(string partitionKey, string rowKey, Azure.ETag ifMatch = default(Azure.ETag), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response> GetAccessPolicy(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task>> GetAccessPolicyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response> GetAccessPolicies(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>> GetAccessPoliciesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetEntityAsync(string partitionKey, string rowKey, System.Collections.Generic.IEnumerable select = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } public virtual Azure.Response GetEntity(string partitionKey, string rowKey, System.Collections.Generic.IEnumerable select = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } public virtual Azure.Data.Tables.Sas.TableSasBuilder GetSasBuilder(Azure.Data.Tables.Sas.TableSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } @@ -40,8 +40,8 @@ public TableClient(System.Uri endpoint, string tableName, Azure.Data.Tables.Tabl public virtual Azure.AsyncPageable QueryAsync(string filter = null, int? maxPerPage = default(int?), System.Collections.Generic.IEnumerable select = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } public virtual Azure.Pageable Query(System.Linq.Expressions.Expression> filter, int? maxPerPage = default(int?), System.Collections.Generic.IEnumerable select = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } public virtual Azure.Pageable Query(string filter = null, int? maxPerPage = default(int?), System.Collections.Generic.IEnumerable select = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } - public virtual Azure.Response SetAccessPolicy(System.Collections.Generic.IEnumerable tableAcl, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SetAccessPolicyAsync(System.Collections.Generic.IEnumerable tableAcl, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessPolicy(System.Collections.Generic.IEnumerable tableAcl, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetAccessPolicyAsync(System.Collections.Generic.IEnumerable tableAcl, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> SubmitTransaction(System.Collections.Generic.IEnumerable transactionActions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SubmitTransactionAsync(System.Collections.Generic.IEnumerable transactionActions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task UpdateEntityAsync(T entity, Azure.ETag ifMatch, Azure.Data.Tables.TableUpdateMode mode = Azure.Data.Tables.TableUpdateMode.Merge, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } @@ -49,14 +49,6 @@ public TableClient(System.Uri endpoint, string tableName, Azure.Data.Tables.Tabl public virtual System.Threading.Tasks.Task UpsertEntityAsync(T entity, Azure.Data.Tables.TableUpdateMode mode = Azure.Data.Tables.TableUpdateMode.Merge, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } public virtual Azure.Response UpsertEntity(T entity, Azure.Data.Tables.TableUpdateMode mode = Azure.Data.Tables.TableUpdateMode.Merge, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where T : class, Azure.Data.Tables.ITableEntity, new() { throw null; } } - public partial class TableClientOptions : Azure.Core.ClientOptions - { - public TableClientOptions(Azure.Data.Tables.TableClientOptions.ServiceVersion serviceVersion = Azure.Data.Tables.TableClientOptions.ServiceVersion.V2019_02_02) { } - public enum ServiceVersion - { - V2019_02_02 = 1, - } - } public sealed partial class TableEntity : Azure.Data.Tables.ITableEntity, System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { public TableEntity() { } @@ -80,7 +72,6 @@ public void Clear() { } public System.DateTime? GetDateTime(string key) { throw null; } public System.DateTimeOffset? GetDateTimeOffset(string key) { throw null; } public double? GetDouble(string key) { throw null; } - public System.Collections.Generic.IEnumerator> GetEnumerator() { throw null; } public System.Guid? GetGuid(string key) { throw null; } public int? GetInt32(string key) { throw null; } public long? GetInt64(string key) { throw null; } @@ -90,18 +81,33 @@ public void Clear() { } bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { throw null; } void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { throw null; } + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public bool TryGetValue(string key, out object value) { throw null; } } + public partial class TableRetentionPolicy + { + public TableRetentionPolicy(bool enabled) { } + public int? Days { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + } + public partial class TablesClientOptions : Azure.Core.ClientOptions + { + public TablesClientOptions(Azure.Data.Tables.TablesClientOptions.ServiceVersion serviceVersion = Azure.Data.Tables.TablesClientOptions.ServiceVersion.V2019_02_02) { } + public enum ServiceVersion + { + V2019_02_02 = 1, + } + } public partial class TableServiceClient { protected TableServiceClient() { } public TableServiceClient(string connectionString) { } - public TableServiceClient(string connectionString, Azure.Data.Tables.TableClientOptions options = null) { } + public TableServiceClient(string connectionString, Azure.Data.Tables.TablesClientOptions options = null) { } public TableServiceClient(System.Uri endpoint, Azure.AzureSasCredential credential) { } - public TableServiceClient(System.Uri endpoint, Azure.AzureSasCredential credential, Azure.Data.Tables.TableClientOptions options = null) { } + public TableServiceClient(System.Uri endpoint, Azure.AzureSasCredential credential, Azure.Data.Tables.TablesClientOptions options = null) { } public TableServiceClient(System.Uri endpoint, Azure.Data.Tables.TableSharedKeyCredential credential) { } - public TableServiceClient(System.Uri endpoint, Azure.Data.Tables.TableSharedKeyCredential credential, Azure.Data.Tables.TableClientOptions options) { } + public TableServiceClient(System.Uri endpoint, Azure.Data.Tables.TableSharedKeyCredential credential, Azure.Data.Tables.TablesClientOptions options) { } public virtual string AccountName { get { throw null; } } public static string CreateQueryFilter(System.FormattableString filter) { throw null; } public static string CreateQueryFilter(System.Linq.Expressions.Expression> filter) { throw null; } @@ -118,10 +124,12 @@ public TableServiceClient(System.Uri endpoint, Azure.Data.Tables.TableSharedKeyC public virtual Azure.Response GetStatistics(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetStatisticsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Data.Tables.TableClient GetTableClient(string tableName) { throw null; } - public virtual Azure.Pageable GetTables(System.Linq.Expressions.Expression> filter, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetTables(string filter = null, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetTablesAsync(System.Linq.Expressions.Expression> filter, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetTablesAsync(string filter = null, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable Query(System.FormattableString filter, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable Query(System.Linq.Expressions.Expression> filter, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable Query(string filter = null, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable QueryAsync(System.FormattableString filter, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable QueryAsync(System.Linq.Expressions.Expression> filter, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable QueryAsync(string filter = null, int? maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetProperties(Azure.Data.Tables.Models.TableServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task SetPropertiesAsync(Azure.Data.Tables.Models.TableServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -131,9 +139,11 @@ public TableSharedKeyCredential(string accountName, string accountKey) { } public string AccountName { get { throw null; } } public void SetAccountKey(string accountKey) { } } - public static partial class TablesModelFactory + public partial class TableSignedIdentifier { - public static Azure.Data.Tables.Models.TableItem TableItem(string tableName, string odataType, string odataId, string odataEditLink) { throw null; } + public TableSignedIdentifier(string id, Azure.Data.Tables.Models.TableAccessPolicy accessPolicy) { } + public Azure.Data.Tables.Models.TableAccessPolicy AccessPolicy { get { throw null; } set { } } + public string Id { get { throw null; } set { } } } public partial class TableTransactionAction { @@ -166,31 +176,19 @@ public enum TableUpdateMode } namespace Azure.Data.Tables.Models { - public partial class RetentionPolicy - { - public RetentionPolicy(bool enabled) { } - public int? Days { get { throw null; } set { } } - public bool Enabled { get { throw null; } set { } } - } - public partial class SignedIdentifier - { - public SignedIdentifier(string id, Azure.Data.Tables.Models.TableAccessPolicy accessPolicy) { } - public Azure.Data.Tables.Models.TableAccessPolicy AccessPolicy { get { throw null; } set { } } - public string Id { get { throw null; } set { } } - } public partial class TableAccessPolicy { - public TableAccessPolicy(System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, string permission) { } - public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public TableAccessPolicy(System.DateTimeOffset? startsOn, System.DateTimeOffset? expiresOn, string permission) { } + public System.DateTimeOffset? ExpiresOn { get { throw null; } set { } } public string Permission { get { throw null; } set { } } - public System.DateTimeOffset StartsOn { get { throw null; } set { } } + public System.DateTimeOffset? StartsOn { get { throw null; } set { } } } public partial class TableAnalyticsLoggingSettings { - public TableAnalyticsLoggingSettings(string version, bool delete, bool read, bool write, Azure.Data.Tables.Models.RetentionPolicy retentionPolicy) { } + public TableAnalyticsLoggingSettings(string version, bool delete, bool read, bool write, Azure.Data.Tables.TableRetentionPolicy retentionPolicy) { } public bool Delete { get { throw null; } set { } } public bool Read { get { throw null; } set { } } - public Azure.Data.Tables.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.Data.Tables.TableRetentionPolicy RetentionPolicy { get { throw null; } set { } } public string Version { get { throw null; } set { } } public bool Write { get { throw null; } set { } } } @@ -294,7 +292,7 @@ internal TableGeoReplicationInfo() { } } public partial class TableItem { - internal TableItem() { } + public TableItem(string name) { } public string Name { get { throw null; } } } public partial class TableMetrics @@ -302,7 +300,7 @@ public partial class TableMetrics public TableMetrics(bool enabled) { } public bool Enabled { get { throw null; } set { } } public bool? IncludeApis { get { throw null; } set { } } - public Azure.Data.Tables.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.Data.Tables.TableRetentionPolicy RetentionPolicy { get { throw null; } set { } } public string Version { get { throw null; } set { } } } public partial class TableServiceProperties @@ -472,8 +470,8 @@ namespace Microsoft.Extensions.Azure { public static partial class TableClientBuilderExtensions { - public static Azure.Core.Extensions.IAzureClientBuilder AddTableServiceClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddTableServiceClient(this TBuilder builder, System.Uri serviceUri, Azure.Data.Tables.TableSharedKeyCredential sharedKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddTableServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddTableServiceClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddTableServiceClient(this TBuilder builder, System.Uri serviceUri, Azure.Data.Tables.TableSharedKeyCredential sharedKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddTableServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } } } diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md b/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md index a88b402ee580..2d65843cb905 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md @@ -23,7 +23,7 @@ To get a collection of tables, call `GetTables` and optionally pass in an OData ```C# Snippet:TablesSample3QueryTables // Use the to query the service. Passing in OData filter strings is optional. -Pageable queryTableResults = serviceClient.GetTables(filter: $"TableName eq '{tableName}'"); +Pageable queryTableResults = serviceClient.Query(filter: $"TableName eq '{tableName}'"); Console.WriteLine("The following are the names of the tables in the query results:"); diff --git a/sdk/tables/Azure.Data.Tables/src/Extensions/TableClientBuilderExtensions.cs b/sdk/tables/Azure.Data.Tables/src/Extensions/TableClientBuilderExtensions.cs index 94c7abaf1c4a..9ba0eaadf59f 100644 --- a/sdk/tables/Azure.Data.Tables/src/Extensions/TableClientBuilderExtensions.cs +++ b/sdk/tables/Azure.Data.Tables/src/Extensions/TableClientBuilderExtensions.cs @@ -8,35 +8,35 @@ namespace Microsoft.Extensions.Azure { /// - /// Extension methods to add client to clients builder. + /// Extension methods to add client to clients builder. /// public static class TableClientBuilderExtensions { /// /// Registers a instance with the provided /// - public static IAzureClientBuilder AddTableServiceClient(this TBuilder builder, string connectionString) + public static IAzureClientBuilder AddTableServiceClient(this TBuilder builder, string connectionString) where TBuilder : IAzureClientFactoryBuilder { - return builder.RegisterClientFactory(options => new TableServiceClient(connectionString, options)); + return builder.RegisterClientFactory(options => new TableServiceClient(connectionString, options)); } /// /// Registers a instance with the provided and /// - public static IAzureClientBuilder AddTableServiceClient(this TBuilder builder, Uri serviceUri, TableSharedKeyCredential sharedKeyCredential) + public static IAzureClientBuilder AddTableServiceClient(this TBuilder builder, Uri serviceUri, TableSharedKeyCredential sharedKeyCredential) where TBuilder : IAzureClientFactoryBuilder { - return builder.RegisterClientFactory(options => new TableServiceClient(serviceUri, sharedKeyCredential, options)); + return builder.RegisterClientFactory(options => new TableServiceClient(serviceUri, sharedKeyCredential, options)); } /// /// Registers a instance with connection options loaded from the provided instance. /// - public static IAzureClientBuilder AddTableServiceClient(this TBuilder builder, TConfiguration configuration) + public static IAzureClientBuilder AddTableServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : IAzureClientFactoryBuilderWithConfiguration { - return builder.RegisterClientFactory(configuration); + return builder.RegisterClientFactory(configuration); } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.Serialization.cs index 5acf2958bcea..86f0eb847fe9 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.Serialization.cs @@ -17,12 +17,18 @@ public partial class TableAccessPolicy : IXmlSerializable void IXmlSerializable.Write(XmlWriter writer, string nameHint) { writer.WriteStartElement(nameHint ?? "AccessPolicy"); - writer.WriteStartElement("Start"); - writer.WriteValue(StartsOn, "O"); - writer.WriteEndElement(); - writer.WriteStartElement("Expiry"); - writer.WriteValue(ExpiresOn, "O"); - writer.WriteEndElement(); + if (StartsOn != null) + { + writer.WriteStartElement("Start"); + writer.WriteValue(StartsOn.Value, "O"); + writer.WriteEndElement(); + } + if (ExpiresOn != null) + { + writer.WriteStartElement("Expiry"); + writer.WriteValue(ExpiresOn.Value, "O"); + writer.WriteEndElement(); + } writer.WriteStartElement("Permission"); writer.WriteValue(Permission); writer.WriteEndElement(); @@ -31,8 +37,8 @@ void IXmlSerializable.Write(XmlWriter writer, string nameHint) internal static TableAccessPolicy DeserializeTableAccessPolicy(XElement element) { - DateTimeOffset startsOn = default; - DateTimeOffset expiresOn = default; + DateTimeOffset? startsOn = default; + DateTimeOffset? expiresOn = default; string permission = default; if (element.Element("Start") is XElement startElement) { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.cs index 1e9239e65a21..b35e0d84f883 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAccessPolicy.cs @@ -17,7 +17,7 @@ public partial class TableAccessPolicy /// The datetime that the policy expires. /// The permissions for the acl policy. /// is null. - public TableAccessPolicy(DateTimeOffset startsOn, DateTimeOffset expiresOn, string permission) + public TableAccessPolicy(DateTimeOffset? startsOn, DateTimeOffset? expiresOn, string permission) { if (permission == null) { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.Serialization.cs index 0cf2c53391ae..433559a985cf 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.Serialization.cs @@ -8,6 +8,7 @@ using System.Xml; using System.Xml.Linq; using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { @@ -38,7 +39,7 @@ internal static TableAnalyticsLoggingSettings DeserializeTableAnalyticsLoggingSe bool delete = default; bool read = default; bool write = default; - RetentionPolicy retentionPolicy = default; + TableRetentionPolicy retentionPolicy = default; if (element.Element("Version") is XElement versionElement) { version = (string)versionElement; @@ -57,7 +58,7 @@ internal static TableAnalyticsLoggingSettings DeserializeTableAnalyticsLoggingSe } if (element.Element("RetentionPolicy") is XElement retentionPolicyElement) { - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(retentionPolicyElement); + retentionPolicy = TableRetentionPolicy.DeserializeTableRetentionPolicy(retentionPolicyElement); } return new TableAnalyticsLoggingSettings(version, delete, read, write, retentionPolicy); } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.cs index e741da397745..2788963e463e 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableAnalyticsLoggingSettings.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { @@ -19,7 +20,7 @@ public partial class TableAnalyticsLoggingSettings /// Indicates whether all write requests should be logged. /// The retention policy. /// or is null. - public TableAnalyticsLoggingSettings(string version, bool delete, bool read, bool write, RetentionPolicy retentionPolicy) + public TableAnalyticsLoggingSettings(string version, bool delete, bool read, bool write, TableRetentionPolicy retentionPolicy) { if (version == null) { @@ -46,6 +47,6 @@ public TableAnalyticsLoggingSettings(string version, bool delete, bool read, boo /// Indicates whether all write requests should be logged. public bool Write { get; set; } /// The retention policy. - public RetentionPolicy RetentionPolicy { get; set; } + public TableRetentionPolicy RetentionPolicy { get; set; } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.Serialization.cs index 84fd88c7416e..834c89e662a8 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.Serialization.cs @@ -8,6 +8,7 @@ using System.Xml; using System.Xml.Linq; using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { @@ -43,7 +44,7 @@ internal static TableMetrics DeserializeTableMetrics(XElement element) string version = default; bool enabled = default; bool? includeApis = default; - RetentionPolicy retentionPolicy = default; + TableRetentionPolicy retentionPolicy = default; if (element.Element("Version") is XElement versionElement) { version = (string)versionElement; @@ -58,7 +59,7 @@ internal static TableMetrics DeserializeTableMetrics(XElement element) } if (element.Element("RetentionPolicy") is XElement retentionPolicyElement) { - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(retentionPolicyElement); + retentionPolicy = TableRetentionPolicy.DeserializeTableRetentionPolicy(retentionPolicyElement); } return new TableMetrics(version, enabled, includeApis, retentionPolicy); } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.cs index fa7f63d0b91d..d9abd0670716 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableMetrics.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Data.Tables; + namespace Azure.Data.Tables.Models { /// The Metrics. @@ -22,7 +24,7 @@ public TableMetrics(bool enabled) /// Indicates whether metrics are enabled for the Table service. /// Indicates whether metrics should generate summary statistics for called API operations. /// The retention policy. - internal TableMetrics(string version, bool enabled, bool? includeApis, RetentionPolicy retentionPolicy) + internal TableMetrics(string version, bool enabled, bool? includeApis, TableRetentionPolicy retentionPolicy) { Version = version; Enabled = enabled; @@ -35,6 +37,6 @@ internal TableMetrics(string version, bool enabled, bool? includeApis, Retention /// Indicates whether metrics are enabled for the Table service. public bool Enabled { get; set; } /// The retention policy. - public RetentionPolicy RetentionPolicy { get; set; } + public TableRetentionPolicy RetentionPolicy { get; set; } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/RetentionPolicy.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableRetentionPolicy.Serialization.cs similarity index 81% rename from sdk/tables/Azure.Data.Tables/src/Generated/Models/RetentionPolicy.Serialization.cs rename to sdk/tables/Azure.Data.Tables/src/Generated/Models/TableRetentionPolicy.Serialization.cs index 4a088363dbd4..96649c5a1b00 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/RetentionPolicy.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableRetentionPolicy.Serialization.cs @@ -9,9 +9,9 @@ using System.Xml.Linq; using Azure.Core; -namespace Azure.Data.Tables.Models +namespace Azure.Data.Tables { - public partial class RetentionPolicy : IXmlSerializable + public partial class TableRetentionPolicy : IXmlSerializable { void IXmlSerializable.Write(XmlWriter writer, string nameHint) { @@ -28,7 +28,7 @@ void IXmlSerializable.Write(XmlWriter writer, string nameHint) writer.WriteEndElement(); } - internal static RetentionPolicy DeserializeRetentionPolicy(XElement element) + internal static TableRetentionPolicy DeserializeTableRetentionPolicy(XElement element) { bool enabled = default; int? days = default; @@ -40,7 +40,7 @@ internal static RetentionPolicy DeserializeRetentionPolicy(XElement element) { days = (int?)daysElement; } - return new RetentionPolicy(enabled, days); + return new TableRetentionPolicy(enabled, days); } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/RetentionPolicy.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableRetentionPolicy.cs similarity index 75% rename from sdk/tables/Azure.Data.Tables/src/Generated/Models/RetentionPolicy.cs rename to sdk/tables/Azure.Data.Tables/src/Generated/Models/TableRetentionPolicy.cs index 9ccbb8bfb3e7..a98f2c7afbe0 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/RetentionPolicy.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableRetentionPolicy.cs @@ -5,22 +5,22 @@ #nullable disable -namespace Azure.Data.Tables.Models +namespace Azure.Data.Tables { /// The retention policy. - public partial class RetentionPolicy + public partial class TableRetentionPolicy { - /// Initializes a new instance of RetentionPolicy. + /// Initializes a new instance of TableRetentionPolicy. /// Indicates whether a retention policy is enabled for the service. - public RetentionPolicy(bool enabled) + public TableRetentionPolicy(bool enabled) { Enabled = enabled; } - /// Initializes a new instance of RetentionPolicy. + /// Initializes a new instance of TableRetentionPolicy. /// Indicates whether a retention policy is enabled for the service. /// Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - internal RetentionPolicy(bool enabled, int? days) + internal TableRetentionPolicy(bool enabled, int? days) { Enabled = enabled; Days = days; diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/SignedIdentifier.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableSignedIdentifier.Serialization.cs similarity index 78% rename from sdk/tables/Azure.Data.Tables/src/Generated/Models/SignedIdentifier.Serialization.cs rename to sdk/tables/Azure.Data.Tables/src/Generated/Models/TableSignedIdentifier.Serialization.cs index 58774b041d52..97d595ce6b87 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/SignedIdentifier.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableSignedIdentifier.Serialization.cs @@ -8,10 +8,11 @@ using System.Xml; using System.Xml.Linq; using Azure.Core; +using Azure.Data.Tables.Models; -namespace Azure.Data.Tables.Models +namespace Azure.Data.Tables { - public partial class SignedIdentifier : IXmlSerializable + public partial class TableSignedIdentifier : IXmlSerializable { void IXmlSerializable.Write(XmlWriter writer, string nameHint) { @@ -23,7 +24,7 @@ void IXmlSerializable.Write(XmlWriter writer, string nameHint) writer.WriteEndElement(); } - internal static SignedIdentifier DeserializeSignedIdentifier(XElement element) + internal static TableSignedIdentifier DeserializeTableSignedIdentifier(XElement element) { string id = default; TableAccessPolicy accessPolicy = default; @@ -35,7 +36,7 @@ internal static SignedIdentifier DeserializeSignedIdentifier(XElement element) { accessPolicy = TableAccessPolicy.DeserializeTableAccessPolicy(accessPolicyElement); } - return new SignedIdentifier(id, accessPolicy); + return new TableSignedIdentifier(id, accessPolicy); } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/SignedIdentifier.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableSignedIdentifier.cs similarity index 78% rename from sdk/tables/Azure.Data.Tables/src/Generated/Models/SignedIdentifier.cs rename to sdk/tables/Azure.Data.Tables/src/Generated/Models/TableSignedIdentifier.cs index f0922f0f5632..2761452b53bb 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/SignedIdentifier.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableSignedIdentifier.cs @@ -6,17 +6,18 @@ #nullable disable using System; +using Azure.Data.Tables.Models; -namespace Azure.Data.Tables.Models +namespace Azure.Data.Tables { /// A signed identifier. - public partial class SignedIdentifier + public partial class TableSignedIdentifier { - /// Initializes a new instance of SignedIdentifier. + /// Initializes a new instance of TableSignedIdentifier. /// A unique id. /// The access policy. /// or is null. - public SignedIdentifier(string id, TableAccessPolicy accessPolicy) + public TableSignedIdentifier(string id, TableAccessPolicy accessPolicy) { if (id == null) { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/TableRestClient.cs b/sdk/tables/Azure.Data.Tables/src/Generated/TableRestClient.cs index 4cf4662fc73c..6e7360ff811d 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/TableRestClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/TableRestClient.cs @@ -1011,7 +1011,7 @@ internal HttpMessage CreateGetAccessPolicyRequest(string table, int? timeout) /// The timeout parameter is expressed in seconds. /// The cancellation token to use. /// is null. - public async Task, TableGetAccessPolicyHeaders>> GetAccessPolicyAsync(string table, int? timeout = null, CancellationToken cancellationToken = default) + public async Task, TableGetAccessPolicyHeaders>> GetAccessPolicyAsync(string table, int? timeout = null, CancellationToken cancellationToken = default) { if (table == null) { @@ -1025,14 +1025,14 @@ public async Task, TableGetA { case 200: { - IReadOnlyList value = default; + IReadOnlyList value = default; var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); if (document.Element("SignedIdentifiers") is XElement signedIdentifiersElement) { - var array = new List(); + var array = new List(); foreach (var e in signedIdentifiersElement.Elements("SignedIdentifier")) { - array.Add(SignedIdentifier.DeserializeSignedIdentifier(e)); + array.Add(TableSignedIdentifier.DeserializeTableSignedIdentifier(e)); } value = array; } @@ -1048,7 +1048,7 @@ public async Task, TableGetA /// The timeout parameter is expressed in seconds. /// The cancellation token to use. /// is null. - public ResponseWithHeaders, TableGetAccessPolicyHeaders> GetAccessPolicy(string table, int? timeout = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders, TableGetAccessPolicyHeaders> GetAccessPolicy(string table, int? timeout = null, CancellationToken cancellationToken = default) { if (table == null) { @@ -1062,14 +1062,14 @@ public ResponseWithHeaders, TableGetAccessPolicy { case 200: { - IReadOnlyList value = default; + IReadOnlyList value = default; var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); if (document.Element("SignedIdentifiers") is XElement signedIdentifiersElement) { - var array = new List(); + var array = new List(); foreach (var e in signedIdentifiersElement.Elements("SignedIdentifier")) { - array.Add(SignedIdentifier.DeserializeSignedIdentifier(e)); + array.Add(TableSignedIdentifier.DeserializeTableSignedIdentifier(e)); } value = array; } @@ -1080,7 +1080,7 @@ public ResponseWithHeaders, TableGetAccessPolicy } } - internal HttpMessage CreateSetAccessPolicyRequest(string table, int? timeout, IEnumerable tableAcl) + internal HttpMessage CreateSetAccessPolicyRequest(string table, int? timeout, IEnumerable tableAcl) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1118,7 +1118,7 @@ internal HttpMessage CreateSetAccessPolicyRequest(string table, int? timeout, IE /// The acls for the table. /// The cancellation token to use. /// is null. - public async Task> SetAccessPolicyAsync(string table, int? timeout = null, IEnumerable tableAcl = null, CancellationToken cancellationToken = default) + public async Task> SetAccessPolicyAsync(string table, int? timeout = null, IEnumerable tableAcl = null, CancellationToken cancellationToken = default) { if (table == null) { @@ -1143,7 +1143,7 @@ public async Task> SetAccessPol /// The acls for the table. /// The cancellation token to use. /// is null. - public ResponseWithHeaders SetAccessPolicy(string table, int? timeout = null, IEnumerable tableAcl = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders SetAccessPolicy(string table, int? timeout = null, IEnumerable tableAcl = null, CancellationToken cancellationToken = default) { if (table == null) { diff --git a/sdk/tables/Azure.Data.Tables/src/ITableEntity.cs b/sdk/tables/Azure.Data.Tables/src/ITableEntity.cs index 408a30f4aab9..216cf0da3aea 100644 --- a/sdk/tables/Azure.Data.Tables/src/ITableEntity.cs +++ b/sdk/tables/Azure.Data.Tables/src/ITableEntity.cs @@ -10,7 +10,7 @@ namespace Azure.Data.Tables /// /// /// - /// Two options exist for impelemtations of : Strongly typed custom entity model classes, and the provided model. + /// Two options exist for implementations of : Strongly typed custom entity model classes, and the provided model. /// public interface ITableEntity { @@ -29,13 +29,14 @@ public interface ITableEntity /// /// The Timestamp property is a DateTime value that is maintained on the server side to record the time an entity was last modified. /// The Table service uses the Timestamp property internally to provide optimistic concurrency. The value of Timestamp is a monotonically increasing value, - /// meaning that each time the entity is modified, the value of Timestamp increases for that entity. This property should not be set on insert or update operations (the value will be ignored). + /// meaning that each time the entity is modified, the value of Timestamp increases for that entity. + /// This property should not be set on insert or update operations (the value will be ignored). /// /// A containing the timestamp of the entity. - DateTimeOffset? Timestamp { get; set; } + DateTimeOffset? Timestamp { get; } /// - /// Gets or sets the entity's ETag. Set this value to '*' in order to force an overwrite to an entity as part of an update operation. + /// Gets or sets the entity's ETag. /// /// A string containing the ETag value for the entity. ETag ETag { get; set; } diff --git a/sdk/tables/Azure.Data.Tables/src/Sas/TableSasBuilder.cs b/sdk/tables/Azure.Data.Tables/src/Sas/TableSasBuilder.cs index 33707836a6ed..ffb356f8d454 100644 --- a/sdk/tables/Azure.Data.Tables/src/Sas/TableSasBuilder.cs +++ b/sdk/tables/Azure.Data.Tables/src/Sas/TableSasBuilder.cs @@ -210,10 +210,10 @@ public TableSasQueryParameters ToSasQueryParameters(TableSharedKeyCredential sha RowKeyEnd); var signature = TableSharedKeyCredential.ComputeSasSignature(sharedKeyCredential, stringToSign); var p = new TableSasQueryParameters( - version: Version, - resourceTypes: default, - tableName: TableName, - partitionKeyStart: PartitionKeyStart, + Version, + default, + TableName, + PartitionKeyStart, partitionKeyEnd: PartitionKeyEnd, rowKeyStart: RowKeyStart, rowKeyEnd: RowKeyEnd, diff --git a/sdk/tables/Azure.Data.Tables/src/TableAccessPolicy.cs b/sdk/tables/Azure.Data.Tables/src/TableAccessPolicy.cs index 83fdf58a8b26..77a4e656d501 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableAccessPolicy.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableAccessPolicy.cs @@ -12,9 +12,9 @@ public partial class TableAccessPolicy { /// The start datetime from which the policy is active. [CodeGenMember("Start")] - public DateTimeOffset StartsOn { get; set; } + public DateTimeOffset? StartsOn { get; set; } /// The datetime that the policy expires. [CodeGenMember("Expiry")] - public DateTimeOffset ExpiresOn { get; set; } + public DateTimeOffset? ExpiresOn { get; set; } } } diff --git a/sdk/tables/Azure.Data.Tables/src/TableClient.cs b/sdk/tables/Azure.Data.Tables/src/TableClient.cs index ea986068fa2f..e504a8310489 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableClient.cs @@ -32,6 +32,7 @@ public class TableClient private readonly Uri _endpoint; private Guid? _batchGuid; private Guid? _changesetGuid; + private readonly HttpPipeline _pipeline; /// /// The name of the table with which this client instance will interact. @@ -69,7 +70,7 @@ public virtual string AccountName /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// /// is not https. - public TableClient(Uri endpoint, TableClientOptions options = null) + public TableClient(Uri endpoint, TablesClientOptions options = null) : this(endpoint, null, default, options) { if (endpoint.Scheme != Uri.UriSchemeHttps) @@ -92,7 +93,7 @@ public TableClient(Uri endpoint, TableClientOptions options = null) /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// /// is not https. - public TableClient(Uri endpoint, AzureSasCredential credential, TableClientOptions options = null) + public TableClient(Uri endpoint, AzureSasCredential credential, TablesClientOptions options = null) : this(endpoint, null, default, credential, options) { Argument.AssertNotNull(credential, nameof(credential)); @@ -132,7 +133,7 @@ public TableClient(Uri endpoint, string tableName, TableSharedKeyCredential cred /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// /// or is null. - public TableClient(Uri endpoint, string tableName, TableSharedKeyCredential credential, TableClientOptions options = null) + public TableClient(Uri endpoint, string tableName, TableSharedKeyCredential credential, TablesClientOptions options = null) : this(endpoint, tableName, new TableSharedKeyPipelinePolicy(credential), default, options) { Argument.AssertNotNull(credential, nameof(credential)); @@ -172,7 +173,7 @@ public TableClient(string connectionString, string tableName) /// /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// - public TableClient(string connectionString, string tableName, TableClientOptions options = null) + public TableClient(string connectionString, string tableName, TablesClientOptions options = null) { Argument.AssertNotNull(connectionString, nameof(connectionString)); @@ -181,7 +182,7 @@ public TableClient(string connectionString, string tableName, TableClientOptions _isCosmosEndpoint = TableServiceClient.IsPremiumEndpoint(connString.TableStorageUri.PrimaryUri); var perCallPolicies = _isCosmosEndpoint ? new[] { new CosmosPatchTransformPolicy() } : Array.Empty(); - options ??= new TableClientOptions(); + options ??= new TablesClientOptions(); var endpointString = connString.TableStorageUri.PrimaryUri.ToString(); TableSharedKeyPipelinePolicy policy = connString.Credentials switch @@ -199,7 +200,7 @@ public TableClient(string connectionString, string tableName, TableClientOptions Name = tableName; } - internal TableClient(Uri endpoint, string tableName, TableSharedKeyPipelinePolicy policy, AzureSasCredential sasCredential, TableClientOptions options) + internal TableClient(Uri endpoint, string tableName, TableSharedKeyPipelinePolicy policy, AzureSasCredential sasCredential, TablesClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); @@ -221,7 +222,7 @@ internal TableClient(Uri endpoint, string tableName, TableSharedKeyPipelinePolic _endpoint = endpoint; _isCosmosEndpoint = TableServiceClient.IsPremiumEndpoint(endpoint); - options ??= new TableClientOptions(); + options ??= new TablesClientOptions(); var perCallPolicies = _isCosmosEndpoint ? new[] { new CosmosPatchTransformPolicy() } : Array.Empty(); HttpPipelinePolicy authPolicy = sasCredential switch @@ -229,19 +230,26 @@ internal TableClient(Uri endpoint, string tableName, TableSharedKeyPipelinePolic null => policy, _ => new AzureSasCredentialSynchronousPolicy(sasCredential) }; - HttpPipeline pipeline = HttpPipelineBuilder.Build( + _pipeline = HttpPipelineBuilder.Build( options, - perCallPolicies: perCallPolicies, - perRetryPolicies: new[] { authPolicy }, + perCallPolicies, + new[] { authPolicy }, new ResponseClassifier()); _version = options.VersionString; _diagnostics = new TablesClientDiagnostics(options); - _tableOperations = new TableRestClient(_diagnostics, pipeline, endpoint.AbsoluteUri, _version); + _tableOperations = new TableRestClient(_diagnostics, _pipeline, endpoint.AbsoluteUri, _version); Name = tableName; } - internal TableClient(string table, TableRestClient tableOperations, string version, ClientDiagnostics diagnostics, bool isPremiumEndpoint, Uri endpoint) + internal TableClient( + string table, + TableRestClient tableOperations, + string version, + ClientDiagnostics diagnostics, + bool isPremiumEndpoint, + Uri endpoint, + HttpPipeline pipeline) { _tableOperations = tableOperations; _version = version; @@ -249,6 +257,7 @@ internal TableClient(string table, TableRestClient tableOperations, string versi _diagnostics = diagnostics; _isCosmosEndpoint = isPremiumEndpoint; _endpoint = endpoint; + _pipeline = pipeline; } /// @@ -302,8 +311,8 @@ public virtual Response Create(CancellationToken cancellationToken = var response = _tableOperations.Create( new TableProperties() { TableName = Name }, null, - queryOptions: _defaultQueryOptions, - cancellationToken: cancellationToken); + _defaultQueryOptions, + cancellationToken); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } catch (Exception ex) @@ -328,8 +337,8 @@ public virtual async Task> CreateAsync(CancellationToken can var response = await _tableOperations.CreateAsync( new TableProperties() { TableName = Name }, null, - queryOptions: _defaultQueryOptions, - cancellationToken: cancellationToken) + _defaultQueryOptions, + cancellationToken) .ConfigureAwait(false); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } @@ -355,8 +364,8 @@ public virtual Response CreateIfNotExists(CancellationToken cancellat var response = _tableOperations.Create( new TableProperties() { TableName = Name }, null, - queryOptions: _defaultQueryOptions, - cancellationToken: cancellationToken); + _defaultQueryOptions, + cancellationToken); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.Conflict) @@ -385,8 +394,8 @@ public virtual async Task> CreateIfNotExistsAsync(Cancellati var response = await _tableOperations.CreateAsync( new TableProperties() { TableName = Name }, null, - queryOptions: _defaultQueryOptions, - cancellationToken: cancellationToken) + _defaultQueryOptions, + cancellationToken) .ConfigureAwait(false); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } @@ -405,14 +414,24 @@ public virtual async Task> CreateIfNotExistsAsync(Cancellati /// Deletes the table specified by the tableName parameter used to construct this client instance. /// /// A controlling the request lifetime. - /// + /// If the table exists, a . If the table already does not exist, null. public virtual Response Delete(CancellationToken cancellationToken = default) { using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(Delete)}"); scope.Start(); try { - return _tableOperations.Delete(table: Name, cancellationToken: cancellationToken); + using var message = _tableOperations.CreateDeleteRequest(Name); + _pipeline.Send(message, cancellationToken); + + switch (message.Response.Status) + { + case 404: + case 204: + return message.Response; + default: + throw _diagnostics.CreateRequestFailedException(message.Response); + } } catch (Exception ex) { @@ -425,14 +444,24 @@ public virtual Response Delete(CancellationToken cancellationToken = default) /// Deletes the table specified by the tableName parameter used to construct this client instance. /// /// A controlling the request lifetime. - /// + /// If the table exists, a . If the table already does not exist, null. public virtual async Task DeleteAsync(CancellationToken cancellationToken = default) { using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(Delete)}"); scope.Start(); try { - return await _tableOperations.DeleteAsync(table: Name, cancellationToken: cancellationToken).ConfigureAwait(false); + using var message = _tableOperations.CreateDeleteRequest(Name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + + switch (message.Response.Status) + { + case 404: + case 204: + return message.Response; + default: + throw _diagnostics.CreateRequestFailedException(message.Response); + } } catch (Exception ex) { @@ -1089,14 +1118,18 @@ public virtual async Task DeleteEntityAsync( scope.Start(); try { - return await _tableOperations.DeleteEntityAsync( - Name, - partitionKey, - rowKey, - ifMatch: ifMatch == default ? ETag.All.ToString() : ifMatch.ToString(), - queryOptions: _defaultQueryOptions, - cancellationToken: cancellationToken) - .ConfigureAwait(false); + var etag = ifMatch == default ? ETag.All.ToString() : ifMatch.ToString(); + using var message = _tableOperations.CreateDeleteEntityRequest(Name, partitionKey, rowKey, etag, null, _defaultQueryOptions); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + + switch (message.Response.Status) + { + case 404: + case 204: + return message.Response; + default: + throw _diagnostics.CreateRequestFailedException(message.Response); + } } catch (Exception ex) { @@ -1119,7 +1152,7 @@ public virtual async Task DeleteEntityAsync( /// /// A controlling the request lifetime. /// The server returned an error. See for details returned from the server. - /// The indicating the result of the operation. + /// If the entity exists, the indicating the result of the operation. If the entity does not exist, null public virtual Response DeleteEntity(string partitionKey, string rowKey, ETag ifMatch = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(partitionKey, nameof(partitionKey)); @@ -1128,13 +1161,18 @@ public virtual Response DeleteEntity(string partitionKey, string rowKey, ETag if scope.Start(); try { - return _tableOperations.DeleteEntity( - Name, - partitionKey, - rowKey, - ifMatch: ifMatch == default ? ETag.All.ToString() : ifMatch.ToString(), - queryOptions: _defaultQueryOptions, - cancellationToken: cancellationToken); + var etag = ifMatch == default ? ETag.All.ToString() : ifMatch.ToString(); + using var message = _tableOperations.CreateDeleteEntityRequest(Name, partitionKey, rowKey, etag, null, _defaultQueryOptions); + _pipeline.Send(message, cancellationToken); + + switch (message.Response.Status) + { + case 404: + case 204: + return message.Response; + default: + throw _diagnostics.CreateRequestFailedException(message.Response); + } } catch (Exception ex) { @@ -1146,9 +1184,9 @@ public virtual Response DeleteEntity(string partitionKey, string rowKey, ETag if /// Retrieves details about any stored access policies specified on the table that may be used with Shared Access Signatures. /// A controlling the request lifetime. /// The server returned an error. See for details returned from the server. - public virtual async Task>> GetAccessPolicyAsync(CancellationToken cancellationToken = default) + public virtual async Task>> GetAccessPoliciesAsync(CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(GetAccessPolicy)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(GetAccessPolicies)}"); scope.Start(); try { @@ -1165,9 +1203,9 @@ public virtual async Task>> GetAccessPo /// Retrieves details about any stored access policies specified on the table that may be used with Shared Access Signatures. /// A controlling the request lifetime. /// The server returned an error. See for details returned from the server. - public virtual Response> GetAccessPolicy(CancellationToken cancellationToken = default) + public virtual Response> GetAccessPolicies(CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(GetAccessPolicy)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(GetAccessPolicies)}"); scope.Start(); try { @@ -1185,7 +1223,7 @@ public virtual Response> GetAccessPolicy(Cancell /// the access policies for the table. /// A controlling the request lifetime. /// The server returned an error. See for details returned from the server. - public virtual async Task SetAccessPolicyAsync(IEnumerable tableAcl, CancellationToken cancellationToken = default) + public virtual async Task SetAccessPolicyAsync(IEnumerable tableAcl, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(SetAccessPolicy)}"); scope.Start(); @@ -1204,7 +1242,7 @@ public virtual async Task SetAccessPolicyAsync(IEnumerable the access policies for the table. /// A controlling the request lifetime. /// The server returned an error. See for details returned from the server. - public virtual Response SetAccessPolicy(IEnumerable tableAcl, CancellationToken cancellationToken = default) + public virtual Response SetAccessPolicy(IEnumerable tableAcl, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(SetAccessPolicy)}"); scope.Start(); @@ -1259,8 +1297,11 @@ await SubmitTransactionInternalAsync(transactionActions, _batchGuid ?? Guid.NewG /// containing a . /// if the batch transaction fails./> /// if the batch has been previously submitted. - public virtual Response> SubmitTransaction(IEnumerable transactionActions, CancellationToken cancellationToken = default) => - SubmitTransactionInternalAsync(transactionActions, _batchGuid ?? Guid.NewGuid(), _changesetGuid ?? Guid.NewGuid(), false, cancellationToken).EnsureCompleted(); + public virtual Response> SubmitTransaction( + IEnumerable transactionActions, + CancellationToken cancellationToken = default) => + SubmitTransactionInternalAsync(transactionActions, _batchGuid ?? Guid.NewGuid(), _changesetGuid ?? Guid.NewGuid(), false, cancellationToken) + .EnsureCompleted(); internal virtual async Task>> SubmitTransactionInternalAsync( IEnumerable transactionalBatch, @@ -1285,9 +1326,9 @@ internal virtual async Task>> SubmitTransaction var _batch = BuildChangeSet(batchOperations, batchItems, requestLookup, batchId, changesetId); var request = _tableOperations.CreateBatchRequest(_batch, null, null); - return async ? - await _tableOperations.SendBatchRequestAsync(request, cancellationToken).ConfigureAwait(false) : - _tableOperations.SendBatchRequest(request, cancellationToken); + return async + ? await _tableOperations.SendBatchRequestAsync(request, cancellationToken).ConfigureAwait(false) + : _tableOperations.SendBatchRequest(request, cancellationToken); } catch (Exception ex) { @@ -1377,7 +1418,7 @@ private HttpMessage CreateUpdateOrMergeRequest(TableRestClient batchOperations, private static HttpPipeline CreateBatchPipeline() { // Configure the options to use minimal policies - var options = new TableClientOptions(); + var options = new TablesClientOptions(); options.Diagnostics.IsLoggingEnabled = false; options.Diagnostics.IsTelemetryEnabled = false; options.Diagnostics.IsDistributedTracingEnabled = false; diff --git a/sdk/tables/Azure.Data.Tables/src/TableEntity.Dictionary.cs b/sdk/tables/Azure.Data.Tables/src/TableEntity.Dictionary.cs index 4d12aff28f26..7364d869e533 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableEntity.Dictionary.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableEntity.Dictionary.cs @@ -58,10 +58,14 @@ public object this[string key] /// bool ICollection>.Remove(KeyValuePair item) => _properties.Remove(item); - /// - public IEnumerator> GetEnumerator() => _properties.GetEnumerator(); + /// + /// Gets the enumerator for the properties. + /// + IEnumerator> IEnumerable>.GetEnumerator() => _properties.GetEnumerator(); - /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + /// Gets the enumerator for the properties. + /// + IEnumerator IEnumerable.GetEnumerator() => _properties.GetEnumerator(); } } diff --git a/sdk/tables/Azure.Data.Tables/src/TableErrorCode.cs b/sdk/tables/Azure.Data.Tables/src/TableErrorCode.cs index 84b0740cc0ea..c7157aba7203 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableErrorCode.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableErrorCode.cs @@ -54,11 +54,11 @@ public TableErrorCode(string value) private const string MediaTypeNotSupportedValue = "MediaTypeNotSupported"; private const string MethodNotAllowedValue = "MethodNotAllowed"; private const string ContentLengthExceededValue = "ContentLengthExceeded"; - private const string AccountIOPSLimitExceededValue = "AccountIOPSLimitExceeded"; - private const string CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTableValue = "CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTable"; - private const string PerTableIOPSIncrementLimitReachedValue = "PerTableIOPSIncrementLimitReached"; - private const string PerTableIOPSDecrementLimitReachedValue = "PerTableIOPSDecrementLimitReached"; - private const string SettingIOPSForATableInProvisioningNotAllowedValue = "SettingIOPSForATableInProvisioningNotAllowed"; + private const string AccountIopsLimitExceededValue = "AccountIOPSLimitExceeded"; + private const string CannotCreateTableWithIopsGreaterThanMaxAllowedPerTableValue = "CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTable"; + private const string PerTableIopsIncrementLimitReachedValue = "PerTableIOPSIncrementLimitReached"; + private const string PerTableIopsDecrementLimitReachedValue = "PerTableIOPSDecrementLimitReached"; + private const string SettingIopsForATableInProvisioningNotAllowedValue = "SettingIOPSForATableInProvisioningNotAllowed"; private const string PartitionKeyEqualityComparisonExpectedValue = "PartitionKeyEqualityComparisonExpected"; private const string PartitionKeySpecifiedMoreThanOnceValue = "PartitionKeySpecifiedMoreThanOnce"; private const string InvalidInputValue = "InvalidInput"; @@ -173,19 +173,19 @@ public TableErrorCode(string value) public static TableErrorCode ContentLengthExceeded { get; } = new TableErrorCode(ContentLengthExceededValue); /// AccountIOPSLimitExceeded. - public static TableErrorCode AccountIOPSLimitExceeded { get; } = new TableErrorCode(AccountIOPSLimitExceededValue); + public static TableErrorCode AccountIOPSLimitExceeded { get; } = new TableErrorCode(AccountIopsLimitExceededValue); /// CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTable. - public static TableErrorCode CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTable { get; } = new TableErrorCode(CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTableValue); + public static TableErrorCode CannotCreateTableWithIOPSGreaterThanMaxAllowedPerTable { get; } = new TableErrorCode(CannotCreateTableWithIopsGreaterThanMaxAllowedPerTableValue); /// PerTableIOPSIncrementLimitReached. - public static TableErrorCode PerTableIOPSIncrementLimitReached { get; } = new TableErrorCode(PerTableIOPSIncrementLimitReachedValue); + public static TableErrorCode PerTableIOPSIncrementLimitReached { get; } = new TableErrorCode(PerTableIopsIncrementLimitReachedValue); /// PerTableIOPSDecrementLimitReached. - public static TableErrorCode PerTableIOPSDecrementLimitReached { get; } = new TableErrorCode(PerTableIOPSDecrementLimitReachedValue); + public static TableErrorCode PerTableIOPSDecrementLimitReached { get; } = new TableErrorCode(PerTableIopsDecrementLimitReachedValue); /// SettingIOPSForATableInProvisioningNotAllowed. - public static TableErrorCode SettingIOPSForATableInProvisioningNotAllowed { get; } = new TableErrorCode(SettingIOPSForATableInProvisioningNotAllowedValue); + public static TableErrorCode SettingIOPSForATableInProvisioningNotAllowed { get; } = new TableErrorCode(SettingIopsForATableInProvisioningNotAllowedValue); /// PartitionKeyEqualityComparisonExpected. public static TableErrorCode PartitionKeyEqualityComparisonExpected { get; } = new TableErrorCode(PartitionKeyEqualityComparisonExpectedValue); diff --git a/sdk/tables/Azure.Data.Tables/src/TableItem.cs b/sdk/tables/Azure.Data.Tables/src/TableItem.cs index e7371a740ec0..5be58810599e 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableItem.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableItem.cs @@ -22,5 +22,8 @@ public partial class TableItem /// The name of the table. [CodeGenMember("TableName")] public string Name { get; } + + /// Initializes a new instance of TableItem. + public TableItem(string name) { Name = name; } } } diff --git a/sdk/tables/Azure.Data.Tables/src/TableOdataFilter.cs b/sdk/tables/Azure.Data.Tables/src/TableOdataFilter.cs index 113fb093408c..336c3da5ab54 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableOdataFilter.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableOdataFilter.cs @@ -14,8 +14,8 @@ namespace Azure.Data.Tables /// The class is used to help construct valid OData filter /// expressions, like the kind used by , /// , - /// , and - /// , + /// , and + /// , /// by automatically replacing, quoting, and escaping interpolated parameters. /// For more information, see Constructing Filter Strings. /// diff --git a/sdk/tables/Azure.Data.Tables/src/TableRetentionPolicy.cs b/sdk/tables/Azure.Data.Tables/src/TableRetentionPolicy.cs new file mode 100644 index 000000000000..47dc8b997116 --- /dev/null +++ b/sdk/tables/Azure.Data.Tables/src/TableRetentionPolicy.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.Data.Tables +{ + [CodeGenModel("RetentionPolicy")] + public partial class TableRetentionPolicy + { } +} diff --git a/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs b/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs index 1413a1662798..51bdac16d0cf 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs @@ -28,6 +28,7 @@ public class TableServiceClient private readonly QueryOptions _defaultQueryOptions = new QueryOptions() { Format = OdataMetadataFormat.ApplicationJsonOdataMinimalmetadata }; private string _accountName; private readonly Uri _endpoint; + private readonly HttpPipeline _pipeline; /// /// The name of the table account with which this client instance will interact. @@ -89,7 +90,7 @@ public TableServiceClient(string connectionString) /// /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// - public TableServiceClient(Uri endpoint, AzureSasCredential credential, TableClientOptions options = null) + public TableServiceClient(Uri endpoint, AzureSasCredential credential, TablesClientOptions options = null) : this(endpoint, default, credential, options) { if (endpoint.Scheme != Uri.UriSchemeHttps) @@ -125,7 +126,7 @@ public TableServiceClient(Uri endpoint, TableSharedKeyCredential credential) /// /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// - public TableServiceClient(Uri endpoint, TableSharedKeyCredential credential, TableClientOptions options) + public TableServiceClient(Uri endpoint, TableSharedKeyCredential credential, TablesClientOptions options) : this(endpoint, new TableSharedKeyPipelinePolicy(credential), default, options) { Argument.AssertNotNull(credential, nameof(credential)); @@ -146,14 +147,14 @@ public TableServiceClient(Uri endpoint, TableSharedKeyCredential credential, Tab /// /// Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. /// - public TableServiceClient(string connectionString, TableClientOptions options = null) + public TableServiceClient(string connectionString, TablesClientOptions options = null) { Argument.AssertNotNull(connectionString, nameof(connectionString)); TableConnectionString connString = TableConnectionString.Parse(connectionString); _accountName = connString._accountName; - options ??= new TableClientOptions(); + options ??= new TablesClientOptions(); var endpointString = connString.TableStorageUri.PrimaryUri.AbsoluteUri; var secondaryEndpoint = connString.TableStorageUri.SecondaryUri?.AbsoluteUri; _isCosmosEndpoint = TableServiceClient.IsPremiumEndpoint(connString.TableStorageUri.PrimaryUri); @@ -164,21 +165,25 @@ public TableServiceClient(string connectionString, TableClientOptions options = TableSharedKeyCredential credential => new TableSharedKeyPipelinePolicy(credential), _ => default }; - HttpPipeline pipeline = HttpPipelineBuilder.Build(options, perCallPolicies: perCallPolicies, perRetryPolicies: new[] { policy }, new ResponseClassifier()); + _pipeline = HttpPipelineBuilder.Build( + options, + perCallPolicies: perCallPolicies, + perRetryPolicies: new[] { policy }, + new ResponseClassifier()); _version = options.VersionString; _diagnostics = new TablesClientDiagnostics(options); - _tableOperations = new TableRestClient(_diagnostics, pipeline, endpointString, _version); - _serviceOperations = new ServiceRestClient(_diagnostics, pipeline, endpointString, _version); - _secondaryServiceOperations = new ServiceRestClient(_diagnostics, pipeline, secondaryEndpoint, _version); + _tableOperations = new TableRestClient(_diagnostics, _pipeline, endpointString, _version); + _serviceOperations = new ServiceRestClient(_diagnostics, _pipeline, endpointString, _version); + _secondaryServiceOperations = new ServiceRestClient(_diagnostics, _pipeline, secondaryEndpoint, _version); } - internal TableServiceClient(Uri endpoint, TableSharedKeyPipelinePolicy policy, AzureSasCredential sasCredential, TableClientOptions options) + internal TableServiceClient(Uri endpoint, TableSharedKeyPipelinePolicy policy, AzureSasCredential sasCredential, TablesClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); _endpoint = endpoint; - options ??= new TableClientOptions(); + options ??= new TablesClientOptions(); _isCosmosEndpoint = IsPremiumEndpoint(endpoint); var perCallPolicies = _isCosmosEndpoint ? new[] { new CosmosPatchTransformPolicy() } : Array.Empty(); var endpointString = endpoint.AbsoluteUri; @@ -189,13 +194,17 @@ internal TableServiceClient(Uri endpoint, TableSharedKeyPipelinePolicy policy, A null => policy, _ => new AzureSasCredentialSynchronousPolicy(sasCredential) }; - HttpPipeline pipeline = HttpPipelineBuilder.Build(options, perCallPolicies: perCallPolicies, perRetryPolicies: new[] { authPolicy }, new ResponseClassifier()); + _pipeline = HttpPipelineBuilder.Build( + options, + perCallPolicies: perCallPolicies, + perRetryPolicies: new[] { authPolicy }, + new ResponseClassifier()); _version = options.VersionString; _diagnostics = new TablesClientDiagnostics(options); - _tableOperations = new TableRestClient(_diagnostics, pipeline, endpointString, _version); - _serviceOperations = new ServiceRestClient(_diagnostics, pipeline, endpointString, _version); - _secondaryServiceOperations = new ServiceRestClient(_diagnostics, pipeline, secondaryEndpoint, _version); + _tableOperations = new TableRestClient(_diagnostics, _pipeline, endpointString, _version); + _serviceOperations = new ServiceRestClient(_diagnostics, _pipeline, endpointString, _version); + _secondaryServiceOperations = new ServiceRestClient(_diagnostics, _pipeline, secondaryEndpoint, _version); } /// @@ -221,7 +230,10 @@ protected TableServiceClient() /// containing the accessible resource types. /// The time at which the shared access signature becomes invalid. /// An instance of . - public virtual TableAccountSasBuilder GetSasBuilder(TableAccountSasPermissions permissions, TableAccountSasResourceTypes resourceTypes, DateTimeOffset expiresOn) + public virtual TableAccountSasBuilder GetSasBuilder( + TableAccountSasPermissions permissions, + TableAccountSasResourceTypes resourceTypes, + DateTimeOffset expiresOn) { return new TableAccountSasBuilder(permissions, resourceTypes, expiresOn) { Version = _version }; } @@ -247,25 +259,28 @@ public virtual TableClient GetTableClient(string tableName) { Argument.AssertNotNull(tableName, nameof(tableName)); - return new TableClient(tableName, _tableOperations, _version, _diagnostics, _isCosmosEndpoint, _endpoint); + return new TableClient(tableName, _tableOperations, _version, _diagnostics, _isCosmosEndpoint, _endpoint, _pipeline); } /// /// Gets a list of tables from the storage account. /// - /// Returns only tables that satisfy the specified filter. + /// + /// Returns only tables that satisfy the specified filter. + /// For example, the following would filter tables with a Name of 'foo': "TableName eq 'foo'". + /// /// /// The maximum number of tables that will be returned per page. /// Note: This value does not limit the total number of results if the result is fully enumerated. /// /// A controlling the request lifetime. /// An containing a collection of s. - public virtual AsyncPageable GetTablesAsync(string filter = null, int? maxPerPage = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable QueryAsync(string filter = null, int? maxPerPage = null, CancellationToken cancellationToken = default) { return PageableHelpers.CreateAsyncEnumerable( async pageSizeHint => { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(GetTables)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(Query)}"); scope.Start(); try { @@ -284,7 +299,7 @@ public virtual AsyncPageable GetTablesAsync(string filter = null, int }, async (nextLink, pageSizeHint) => { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(GetTables)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(Query)}"); scope.Start(); try { @@ -307,19 +322,22 @@ public virtual AsyncPageable GetTablesAsync(string filter = null, int /// /// Gets a list of tables from the storage account. /// - /// Returns only tables that satisfy the specified filter. + /// + /// Returns only tables that satisfy the specified filter. + /// For example, the following would filter tables with a Name of 'foo': "TableName eq 'foo'". + /// /// /// The maximum number tables that will be returned per page. /// Note: This value does not limit the total number of results if the result is fully enumerated. /// /// A controlling the request lifetime. /// An containing a collection of . - public virtual Pageable GetTables(string filter = null, int? maxPerPage = null, CancellationToken cancellationToken = default) + public virtual Pageable Query(string filter = null, int? maxPerPage = null, CancellationToken cancellationToken = default) { return PageableHelpers.CreateEnumerable( pageSizeHint => { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(GetTables)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(Query)}"); scope.Start(); try { @@ -337,12 +355,12 @@ public virtual Pageable GetTables(string filter = null, int? maxPerPa }, (nextLink, pageSizeHint) => { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(GetTables)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(Query)}"); scope.Start(); try { var response = _tableOperations.Query( - nextTableName: nextLink, + nextLink, new QueryOptions() { Filter = filter, Select = null, Top = pageSizeHint, Format = _format }, cancellationToken); return Page.FromValues(response.Value.Value, response.Headers.XMsContinuationNextTableName, response.GetRawResponse()); @@ -356,6 +374,66 @@ public virtual Pageable GetTables(string filter = null, int? maxPerPa maxPerPage); } + /// + /// Gets a list of tables from the storage account. + /// + /// + /// Returns only tables that satisfy the specified filter expression. + /// For example, the following would filter tables with a Name of 'foo': "TableName eq {someStringVariable}". + /// The filter string will be properly quoted and escaped. + /// + /// + /// The maximum number of entities that will be returned per page. + /// Note: This value does not limit the total number of results if the result is fully enumerated. + /// + /// A controlling the request lifetime. + /// An containing a collection of s. + /// The server returned an error. See for details returned from the server. + public virtual AsyncPageable QueryAsync(FormattableString filter, int? maxPerPage = null, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(Query)}"); + scope.Start(); + try + { + return QueryAsync(TableOdataFilter.Create(filter), maxPerPage, cancellationToken); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Gets a list of tables from the storage account. + /// + /// + /// Returns only tables that satisfy the specified filter expression. + /// For example, the following would filter tables with a Name of 'foo': "TableName eq {someStringVariable}". + /// The filter string will be properly quoted and escaped. + /// + /// + /// The maximum number of entities that will be returned per page. + /// Note: This value does not limit the total number of results if the result is fully enumerated. + /// + /// A controlling the request lifetime. + /// An containing a collection of . + /// The server returned an error. See for details returned from the server. + public virtual Pageable Query(FormattableString filter, int? maxPerPage = null, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(Query)}"); + scope.Start(); + try + { + return Query(TableOdataFilter.Create(filter), maxPerPage, cancellationToken); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + /// /// Gets a list of tables from the storage account. /// @@ -370,13 +448,16 @@ public virtual Pageable GetTables(string filter = null, int? maxPerPa /// A controlling the request lifetime. /// An containing a collection of s. /// The server returned an error. See for details returned from the server. - public virtual AsyncPageable GetTablesAsync(Expression> filter, int? maxPerPage = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable QueryAsync( + Expression> filter, + int? maxPerPage = null, + CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(GetTables)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(Query)}"); scope.Start(); try { - return GetTablesAsync(TableClient.Bind(filter), maxPerPage, cancellationToken); + return QueryAsync(TableClient.Bind(filter), maxPerPage, cancellationToken); } catch (Exception ex) { @@ -399,13 +480,13 @@ public virtual AsyncPageable GetTablesAsync(ExpressionA controlling the request lifetime. /// An containing a collection of . /// The server returned an error. See for details returned from the server. - public virtual Pageable GetTables(Expression> filter, int? maxPerPage = null, CancellationToken cancellationToken = default) + public virtual Pageable Query(Expression> filter, int? maxPerPage = null, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(GetTables)}"); + using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableClient)}.{nameof(Query)}"); scope.Start(); try { - return GetTables(TableClient.Bind(filter), maxPerPage, cancellationToken); + return Query(TableClient.Bind(filter), maxPerPage, cancellationToken); } catch (Exception ex) { @@ -427,7 +508,11 @@ public virtual Response CreateTable(string tableName, CancellationTok scope.Start(); try { - var response = _tableOperations.Create(new TableProperties() { TableName = tableName }, null, queryOptions: _defaultQueryOptions, cancellationToken: cancellationToken); + var response = _tableOperations.Create( + new TableProperties() { TableName = tableName }, + null, + queryOptions: _defaultQueryOptions, + cancellationToken: cancellationToken); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } catch (Exception ex) @@ -450,7 +535,12 @@ public virtual async Task> CreateTableAsync(string tableName scope.Start(); try { - var response = await _tableOperations.CreateAsync(new TableProperties() { TableName = tableName }, null, queryOptions: _defaultQueryOptions, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _tableOperations.CreateAsync( + new TableProperties() { TableName = tableName }, + null, + queryOptions: _defaultQueryOptions, + cancellationToken: cancellationToken) + .ConfigureAwait(false); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } catch (Exception ex) @@ -473,7 +563,11 @@ public virtual Response CreateTableIfNotExists(string tableName, Canc scope.Start(); try { - var response = _tableOperations.Create(new TableProperties() { TableName = tableName }, null, queryOptions: _defaultQueryOptions, cancellationToken: cancellationToken); + var response = _tableOperations.Create( + new TableProperties() { TableName = tableName }, + null, + queryOptions: _defaultQueryOptions, + cancellationToken: cancellationToken); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.Conflict) @@ -500,7 +594,12 @@ public virtual async Task> CreateTableIfNotExistsAsync(strin scope.Start(); try { - var response = await _tableOperations.CreateAsync(new TableProperties() { TableName = tableName }, null, queryOptions: _defaultQueryOptions, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _tableOperations.CreateAsync( + new TableProperties() { TableName = tableName }, + null, + queryOptions: _defaultQueryOptions, + cancellationToken: cancellationToken) + .ConfigureAwait(false); return Response.FromValue(response.Value as TableItem, response.GetRawResponse()); } catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.Conflict) @@ -522,11 +621,22 @@ public virtual async Task> CreateTableIfNotExistsAsync(strin /// The indicating the result of the operation. public virtual Response DeleteTable(string tableName, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(tableName, nameof(tableName)); using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(DeleteTable)}"); scope.Start(); try { - return _tableOperations.Delete(tableName, cancellationToken: cancellationToken); + using var message = _tableOperations.CreateDeleteRequest(tableName); + _pipeline.Send(message, cancellationToken); + + switch (message.Response.Status) + { + case 404: + case 204: + return message.Response; + default: + throw _diagnostics.CreateRequestFailedException(message.Response); + } } catch (Exception ex) { @@ -543,11 +653,22 @@ public virtual Response DeleteTable(string tableName, CancellationToken cancella /// The indicating the result of the operation. public virtual async Task DeleteTableAsync(string tableName, CancellationToken cancellationToken = default) { + Argument.AssertNotNull(tableName, nameof(tableName)); using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(DeleteTable)}"); scope.Start(); try { - return await _tableOperations.DeleteAsync(tableName, cancellationToken: cancellationToken).ConfigureAwait(false); + using var message = _tableOperations.CreateDeleteRequest(tableName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + + switch (message.Response.Status) + { + case 404: + case 204: + return message.Response; + default: + throw _diagnostics.CreateRequestFailedException(message.Response); + } } catch (Exception ex) { diff --git a/sdk/tables/Azure.Data.Tables/src/TableSignedIdentifier.cs b/sdk/tables/Azure.Data.Tables/src/TableSignedIdentifier.cs new file mode 100644 index 000000000000..b21c729d88c2 --- /dev/null +++ b/sdk/tables/Azure.Data.Tables/src/TableSignedIdentifier.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.Data.Tables +{ + [CodeGenModel("SignedIdentifier")] + public partial class TableSignedIdentifier + { } +} diff --git a/sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs b/sdk/tables/Azure.Data.Tables/src/TablesClientOptions.cs similarity index 82% rename from sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs rename to sdk/tables/Azure.Data.Tables/src/TablesClientOptions.cs index 4aa15c2900bc..1311e0baa22c 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs +++ b/sdk/tables/Azure.Data.Tables/src/TablesClientOptions.cs @@ -9,24 +9,24 @@ namespace Azure.Data.Tables /// /// Options to configure the requests to the Table service. /// - public class TableClientOptions : ClientOptions + public class TablesClientOptions : ClientOptions { /// /// The versions of Azure Tables supported by this client /// library. /// private const ServiceVersion Latest = ServiceVersion.V2019_02_02; - internal static TableClientOptions Default { get; } = new TableClientOptions(); + internal static TablesClientOptions Default { get; } = new TablesClientOptions(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// class. /// /// /// The of the service API used when /// making requests. /// - public TableClientOptions(ServiceVersion serviceVersion = Latest) + public TablesClientOptions(ServiceVersion serviceVersion = Latest) { VersionString = serviceVersion switch { diff --git a/sdk/tables/Azure.Data.Tables/src/TablesModelFactory.cs b/sdk/tables/Azure.Data.Tables/src/TablesModelFactory.cs deleted file mode 100644 index b89eddc6f64c..000000000000 --- a/sdk/tables/Azure.Data.Tables/src/TablesModelFactory.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Data.Tables.Models; - -namespace Azure.Data.Tables -{ - /// - /// A factory class which constructs model classes for mocking purposes. - /// - public static class TablesModelFactory - { - /// Initializes a new instance of TableItem. - /// The name of the table. - /// The odata type of the table. - /// The id of the table. - /// The edit link of the table. - public static TableItem TableItem(string tableName, string odataType, string odataId, string odataEditLink) => - new TableItem(tableName, odataType, odataId, odataEditLink); - } -} diff --git a/sdk/tables/Azure.Data.Tables/tests/ExtractFailureContentTests.cs b/sdk/tables/Azure.Data.Tables/tests/ExtractFailureContentTests.cs index 71b0520917cb..5dd7e2e15508 100644 --- a/sdk/tables/Azure.Data.Tables/tests/ExtractFailureContentTests.cs +++ b/sdk/tables/Azure.Data.Tables/tests/ExtractFailureContentTests.cs @@ -20,7 +20,7 @@ public class ExtractFailureContentTests private static string TableBeingDeleted = "{\"odata.error\":{\"code\":\"TableBeingDeleted\",\"message\":{\"lang\":\"en-US\",\"value\":\"" + messageValue + "\"}}}"; private static string BatchError = "{\"odata.error\":{\"code\":\"EntityAlreadyExists\",\"message\":{\"lang\":\"en-us\",\"value\":\"" + failedEntityIndex + batchMessage + "\"}}}"; - private static TablesClientDiagnostics diagnostic = new(new TableClientOptions()); + private static TablesClientDiagnostics diagnostic = new(new TablesClientOptions()); // Incoming Exception, Expected Exception, Expected TableErrorCode public static IEnumerable OdataErrorTestInputs() diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtag.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtag.json index 175a0fecb7b2..22c286860422 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtag.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtag.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-2903f87d4ce7af4eb93c04f70494d5fd-6114e0924558ba4b-00", + "traceparent": "00-d553a76efa869545b05f307ff4eba33b-a4c14feb9a898148-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "b903f1d10763767cecfc37dd34b1e596", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:38 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -25,20 +25,20 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.3706888Z\u0027\u0022", - "Location": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtablexzo4cb8p\u0027)", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A38.7054088Z\u0027\u0022", + "Location": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtablexzo4cb8p\u0027)", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "b903f1d1-0763-767c-ecfc-37dd34b1e596" }, "ResponseBody": { "TableName": "testtablexzo4cb8p", - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables/@Element" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables/@Element" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -46,13 +46,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-13c885e661168e40b8c867596ab8070b-64017f1674fc3048-00", + "traceparent": "00-23f2a0f532a83b4f9a996da93877ea54-d9f9120ba9fc3a4c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "7416c8b1f3dad0d0737c01940e37146a", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:39 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -65,27 +65,27 @@ "ResponseHeaders": { "Content-Length": "0", "Content-Type": "application/json", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.7562248Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A39.3648648Z\u0027\u0022", "Server": "Microsoft-HTTPAPI/2.0", "x-ms-request-id": "7416c8b1-f3da-d0d0-737c-01940e37146a" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-6a53b2f9bf09b943b35f21b79e6c959b-b760676c256fd54e-00", + "traceparent": "00-769725c381e75144af5bc08a37a67e70-a3314e40fccf8b41-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "1cdccd32c06b8de3bf7d292604e98a4d", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:39 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -93,7 +93,7 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "1cdccd32-c06b-8de3-bf7d-292604e98a4d" @@ -101,31 +101,31 @@ "ResponseBody": { "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.7562248Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A39.3648648Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", "SomeStringProperty": "This is the original", - "Timestamp": "2021-03-23T18:28:24.7562248Z" + "Timestamp": "2021-04-30T18:07:39.3648648Z" } ], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", "If-Match": "*", - "traceparent": "00-dc3c848abb7087449f03d1c0afb1a116-1158d926e6239241-00", + "traceparent": "00-c7a2c21fa0c6fb4f985b2f93a03be857-33f83a2ccbc9ff41-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "0f0afe0fcf80fef732e8f08b7ae1dec5", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:39 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -133,26 +133,57 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", "x-ms-request-id": "0f0afe0f-cf80-fef7-32e8-f08b7ae1dec5" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", - "RequestMethod": "GET", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-b621690d10a54040aac9517ec7ce906c-35f662e4ec3df245-00", + "If-Match": "*", + "traceparent": "00-145fc9ed3aa84f48800508640fed0c52-7a09a15eaac06e43-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "e40173227909f05fe489b45cc9a9cc89", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Type": "application/json; odata=fullmetadata", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Transfer-Encoding": "chunked", + "x-ms-request-id": "e4017322-7909-f05f-e489-b45cc9a9cc89" + }, + "ResponseBody": [ + "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022ResourceNotFound\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The specified resource does not exist.\\nRequestID:e4017322-7909-f05f-e489-b45cc9a9cc89\\n\u0022}}}\r\n" + ] + }, + { + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json; odata=minimalmetadata", + "Authorization": "Sanitized", + "DataServiceVersion": "3.0", + "traceparent": "00-34bd32fdea41ac408c748d698a5b8bcd-831a79b8c362bd4d-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "1085b3f1052c63ead5dde983cf5812de", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -160,18 +191,18 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "e4017322-7909-f05f-e489-b45cc9a9cc89" + "x-ms-request-id": "1085b3f1-052c-63ea-d5dd-e983cf5812de" }, "ResponseBody": { "value": [], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -179,13 +210,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-0ef47e0b55c1de42aebce2adcf2ca4c3-44ddfc7d55d48d45-00", + "traceparent": "00-2c9cdd25bd51434581db6f9a23324534-9678078179d5bd4d-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "1085b3f1052c63ead5dde983cf5812de", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-client-request-id": "9104649fa6e795449e1a2af61a9a3588", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -198,27 +229,27 @@ "ResponseHeaders": { "Content-Length": "0", "Content-Type": "application/json", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.8676360Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A39.8097928Z\u0027\u0022", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "1085b3f1-052c-63ea-d5dd-e983cf5812de" + "x-ms-request-id": "9104649f-a6e7-9544-9e1a-2af61a9a3588" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-9774787fb2b1514c9d2fa0a5fcb714b8-36c3fef971d41e4d-00", + "traceparent": "00-06421fc482b1934a9c72fb05658794d4-f29ef5455dc47d4d-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "9104649fa6e795449e1a2af61a9a3588", - "x-ms-date": "Tue, 23 Mar 2021 18:28:21 GMT", + "x-ms-client-request-id": "c799671ccd5b1d98899e0e2b8fdc208c", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -226,39 +257,39 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "9104649f-a6e7-9544-9e1a-2af61a9a3588" + "x-ms-request-id": "c799671c-cd5b-1d98-899e-0e2b8fdc208c" }, "ResponseBody": { "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.8676360Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A39.8097928Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", "SomeStringProperty": "This is the original", - "Timestamp": "2021-03-23T18:28:24.8676360Z" + "Timestamp": "2021-04-30T18:07:39.8097928Z" } ], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.7562248Z\u0027\u0022", - "traceparent": "00-e31382e3a0fe5c47a4915bf3671efe52-d118ba542a229848-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A39.3648648Z\u0027\u0022", + "traceparent": "00-5aa6b47c235eba49aacd7ae47444963a-3b7d362bba4e8d4f-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "c799671ccd5b1d98899e0e2b8fdc208c", - "x-ms-date": "Tue, 23 Mar 2021 18:28:22 GMT", + "x-ms-client-request-id": "64bdd6773ba54aa16ff07112daf3483b", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -266,30 +297,30 @@ "StatusCode": 412, "ResponseHeaders": { "Content-Type": "application/json; odata=fullmetadata", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "c799671c-cd5b-1d98-899e-0e2b8fdc208c" + "x-ms-request-id": "64bdd677-3ba5-4aa1-6ff0-7112daf3483b" }, "ResponseBody": [ - "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022UpdateConditionNotSatisfied\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The update condition specified in the request was not satisfied.\\nRequestID:c799671c-cd5b-1d98-899e-0e2b8fdc208c\\n\u0022}}}\r\n" + "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022UpdateConditionNotSatisfied\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The update condition specified in the request was not satisfied.\\nRequestID:64bdd677-3ba5-4aa1-6ff0-7112daf3483b\\n\u0022}}}\r\n" ] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A28%3A24.8676360Z\u0027\u0022", - "traceparent": "00-74303356a13df348acc9ba2ae7455aab-a8bc7f3f693a414c-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A39.8097928Z\u0027\u0022", + "traceparent": "00-6379b2eeef20ba4fbb0a7484615b88f0-267798dfac84284c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "64bdd6773ba54aa16ff07112daf3483b", - "x-ms-date": "Tue, 23 Mar 2021 18:28:22 GMT", + "x-ms-client-request-id": "686760a84bbed182cbe70749971805c2", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -297,26 +328,26 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "64bdd677-3ba5-4aa1-6ff0-7112daf3483b" + "x-ms-request-id": "686760a8-4bbe-d182-cbe7-0749971805c2" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtablexzo4cb8p()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-6832c00046a1db49a6ddfaaea564c4e5-9538e56b85f46743-00", + "traceparent": "00-161770786178184c94ff7036d035454a-66a9094ff312fd44-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "686760a84bbed182cbe70749971805c2", - "x-ms-date": "Tue, 23 Mar 2021 18:28:22 GMT", + "x-ms-client-request-id": "447f9ef9d0dde0e3c54f576b5b864295", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -324,29 +355,29 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:24 GMT", + "Date": "Fri, 30 Apr 2021 18:07:39 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "686760a8-4bbe-d182-cbe7-0749971805c2" + "x-ms-request-id": "447f9ef9-d0dd-e0e3-c54f-576b5b864295" }, "ResponseBody": { "value": [], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtablexzo4cb8p" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtablexzo4cb8p\u0027)", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtablexzo4cb8p\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-be50c8d0913e8f489dd5ff0de7738561-e09f27eff9ecb543-00", + "traceparent": "00-6b5d73bfebb17b42874bb9e7ce521574-8eacfdfb4ce1f347-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "447f9ef9d0dde0e3c54f576b5b864295", - "x-ms-date": "Tue, 23 Mar 2021 18:28:22 GMT", + "x-ms-client-request-id": "2f83d355b8752bce54eb99be3358b357", + "x-ms-date": "Fri, 30 Apr 2021 18:07:40 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -354,9 +385,9 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:25 GMT", + "Date": "Fri, 30 Apr 2021 18:07:40 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "447f9ef9-d0dd-e0e3-c54f-576b5b864295" + "x-ms-request-id": "2f83d355-b875-2bce-54eb-99be3358b357" }, "ResponseBody": [] } @@ -364,7 +395,7 @@ "Variables": { "COSMOS_TABLES_ENDPOINT_SUFFIX": null, "RandomSeed": "1822279371", - "TABLES_COSMOS_ACCOUNT_NAME": "jverazsdkprim", + "TABLES_COSMOS_ACCOUNT_NAME": "chrisstablesprim", "TABLES_PRIMARY_COSMOS_ACCOUNT_KEY": "Kg==" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtagAsync.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtagAsync.json index 80374c5a9e9a..44bf87f55559 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtagAsync.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/EntityDeleteRespectsEtagAsync.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-e8f14350d47d2248a21376fd4ffc6fba-c62a2b1d7388314a-00", + "traceparent": "00-20cb21dcf71dec4bba932193371804f1-de9b959302c45349-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "276a499b4e745dc89fb5d6977332608e", - "x-ms-date": "Tue, 23 Mar 2021 18:28:57 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -25,20 +25,20 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A00.5217800Z\u0027\u0022", - "Location": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtable33jki576\u0027)", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A42.1018120Z\u0027\u0022", + "Location": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable33jki576\u0027)", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "276a499b-4e74-5dc8-9fb5-d6977332608e" }, "ResponseBody": { "TableName": "testtable33jki576", - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables/@Element" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables/@Element" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -46,13 +46,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-057c8fba937c8a4fb7aef77d8f2ea857-0d4b063387773f46-00", + "traceparent": "00-f59dd1b16d25434caa0f16115c09faaf-b35662b496cf0b48-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "95d4420bcf4413848438045e3094ec25", - "x-ms-date": "Tue, 23 Mar 2021 18:28:57 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -65,27 +65,27 @@ "ResponseHeaders": { "Content-Length": "0", "Content-Type": "application/json", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A00.8978952Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A42.6386952Z\u0027\u0022", "Server": "Microsoft-HTTPAPI/2.0", "x-ms-request-id": "95d4420b-cf44-1384-8438-045e3094ec25" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-afce9265fe75334d97705327019d80ca-92c81617d3eb0e4c-00", + "traceparent": "00-c481c712d0f263408038cc7edb9ae103-b9a41bc2c4e92740-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "1bd91dba6b51018cc23c79d4d4161f70", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -93,7 +93,7 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "1bd91dba-6b51-018c-c23c-79d4d4161f70" @@ -101,31 +101,31 @@ "ResponseBody": { "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A00.8978952Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A42.6386952Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", "SomeStringProperty": "This is the original", - "Timestamp": "2021-03-23T18:29:00.8978952Z" + "Timestamp": "2021-04-30T18:07:42.6386952Z" } ], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtable33jki576" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtable33jki576" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", "If-Match": "*", - "traceparent": "00-323f1d24a94b384cb4ba768ae2ceeb92-7051c713c4b58a42-00", + "traceparent": "00-5f1054881d8eaa4ea183615ef2aa4584-500d5f2d3cea0946-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "4a6367241cd17a56e514ef16c3fe6f20", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -133,26 +133,57 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "x-ms-request-id": "4a636724-1cd1-7a56-e514-ef16c3fe6f20" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", - "RequestMethod": "GET", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-5be3a1087f8237429bc0bf33ead036ce-9a630996470c5b4d-00", + "If-Match": "*", + "traceparent": "00-08718470436e3a40a2c2e25649c9b23d-91db0586ab79064e-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "15b872ea7286a048b5d3d20755af3e6d", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Type": "application/json; odata=fullmetadata", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Transfer-Encoding": "chunked", + "x-ms-request-id": "15b872ea-7286-a048-b5d3-d20755af3e6d" + }, + "ResponseBody": [ + "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022ResourceNotFound\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The specified resource does not exist.\\nRequestID:15b872ea-7286-a048-b5d3-d20755af3e6d\\n\u0022}}}\r\n" + ] + }, + { + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json; odata=minimalmetadata", + "Authorization": "Sanitized", + "DataServiceVersion": "3.0", + "traceparent": "00-4d25d8fb6a18eb4fb6060a5d5aefd46d-025c608fe5123645-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "c93a9418a1319d54c65f353c7b763ec3", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -160,18 +191,18 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "15b872ea-7286-a048-b5d3-d20755af3e6d" + "x-ms-request-id": "c93a9418-a131-9d54-c65f-353c7b763ec3" }, "ResponseBody": { "value": [], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtable33jki576" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtable33jki576" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -179,13 +210,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-8c6c89abdb900e40b47f8a630413888e-041ac4e54789134c-00", + "traceparent": "00-bf3374e01d42bd4796f2876512bf0323-e5b8f2f0db898c4a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "c93a9418a1319d54c65f353c7b763ec3", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-client-request-id": "61ea58cd0a5db1e91fc394fd494f2435", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -198,27 +229,27 @@ "ResponseHeaders": { "Content-Length": "0", "Content-Type": "application/json", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A01.0068488Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A43.0705160Z\u0027\u0022", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "c93a9418-a131-9d54-c65f-353c7b763ec3" + "x-ms-request-id": "61ea58cd-0a5d-b1e9-1fc3-94fd494f2435" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-268fd0fe8e4e4947a087869f2d8c91c0-8295581055aa6346-00", + "traceparent": "00-973808fdb828dd429bd10f42d724d335-061a32ed0104d04f-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "61ea58cd0a5db1e91fc394fd494f2435", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-client-request-id": "2ffd82d5a6c348ef1d1b4f273c0b243f", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -226,39 +257,39 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "61ea58cd-0a5d-b1e9-1fc3-94fd494f2435" + "x-ms-request-id": "2ffd82d5-a6c3-48ef-1d1b-4f273c0b243f" }, "ResponseBody": { "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A01.0068488Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A43.0705160Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", "SomeStringProperty": "This is the original", - "Timestamp": "2021-03-23T18:29:01.0068488Z" + "Timestamp": "2021-04-30T18:07:43.0705160Z" } ], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtable33jki576" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtable33jki576" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A29%3A00.8978952Z\u0027\u0022", - "traceparent": "00-f798256e4de08c49831698f9e611228a-e5ec43e056b75949-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A42.6386952Z\u0027\u0022", + "traceparent": "00-7f65d52b6d43414bb8673d1a934d0857-cdc6ac48d9b17d45-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "2ffd82d5a6c348ef1d1b4f273c0b243f", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-client-request-id": "fc390f95ddc50e0fab89aa6d0d565476", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -266,30 +297,30 @@ "StatusCode": 412, "ResponseHeaders": { "Content-Type": "application/json; odata=fullmetadata", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "2ffd82d5-a6c3-48ef-1d1b-4f273c0b243f" + "x-ms-request-id": "fc390f95-ddc5-0e0f-ab89-aa6d0d565476" }, "ResponseBody": [ - "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022UpdateConditionNotSatisfied\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The update condition specified in the request was not satisfied.\\nRequestID:2ffd82d5-a6c3-48ef-1d1b-4f273c0b243f\\n\u0022}}}\r\n" + "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022UpdateConditionNotSatisfied\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The update condition specified in the request was not satisfied.\\nRequestID:fc390f95-ddc5-0e0f-ab89-aa6d0d565476\\n\u0022}}}\r\n" ] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A29%3A01.0068488Z\u0027\u0022", - "traceparent": "00-898e79aa0cfc3140877b5e958ef3e8b8-db735c128780f242-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A43.0705160Z\u0027\u0022", + "traceparent": "00-d79b04b93a749c42a11d835d49f39734-5d2746d7d5f1c24e-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "fc390f95ddc50e0fab89aa6d0d565476", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-client-request-id": "f967003a0e78270069a14442bac17513", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -297,26 +328,26 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "fc390f95-ddc5-0e0f-ab89-aa6d0d565476" + "x-ms-request-id": "f967003a-0e78-2700-69a1-4442bac17513" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/testtable33jki576()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-a754b581af9d1548987ddfbc8ce50c55-2032da34c8198d48-00", + "traceparent": "00-7e0cb199375e604dbedcd608a1eb6ca3-4e8c2268e7c6f040-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "f967003a0e78270069a14442bac17513", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-client-request-id": "3a68549f2815f87072ee833afb823bc7", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -324,29 +355,29 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "f967003a-0e78-2700-69a1-4442bac17513" + "x-ms-request-id": "3a68549f-2815-f870-72ee-833afb823bc7" }, "ResponseBody": { "value": [], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#testtable33jki576" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#testtable33jki576" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtable33jki576\u0027)", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable33jki576\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-e96777291bf8984d88c4fb60c1edc295-6c5e75e9b2401b48-00", + "traceparent": "00-ffc9372816bcf046b0836d08a209a587-5e767d86eb796847-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "3a68549f2815f87072ee833afb823bc7", - "x-ms-date": "Tue, 23 Mar 2021 18:28:58 GMT", + "x-ms-client-request-id": "3cecd8c72ba386c60e12932398cc54e9", + "x-ms-date": "Fri, 30 Apr 2021 18:07:43 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -354,9 +385,9 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:00 GMT", + "Date": "Fri, 30 Apr 2021 18:07:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "3a68549f-2815-f870-72ee-833afb823bc7" + "x-ms-request-id": "3cecd8c7-2ba3-86c6-0e12-932398cc54e9" }, "ResponseBody": [] } @@ -364,7 +395,7 @@ "Variables": { "COSMOS_TABLES_ENDPOINT_SUFFIX": null, "RandomSeed": "1349879286", - "TABLES_COSMOS_ACCOUNT_NAME": "jverazsdkprim", + "TABLES_COSMOS_ACCOUNT_NAME": "chrisstablesprim", "TABLES_PRIMARY_COSMOS_ACCOUNT_KEY": "Kg==" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTable.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTable.json index f58e6e855c4f..c170cba1ce65 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTable.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTable.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-5466a88f56b39e40b9ce14502f6a0430-0fd10dd273bd7748-00", + "traceparent": "00-575c2f36d0cce142bbfadc5fd6ba6860-36619d78ebae5743-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "97be5703eb9b5d718c388d9fff01a6a9", - "x-ms-date": "Tue, 23 Mar 2021 18:28:25 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:08 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -25,20 +25,20 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:28 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A28.5082632Z\u0027\u0022", - "Location": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtable60o6a6ja\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:09 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T17%3A40%3A09.2716040Z\u0027\u0022", + "Location": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable60o6a6ja\u0027)", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "97be5703-eb9b-5d71-8c38-8d9fff01a6a9" }, "ResponseBody": { "TableName": "testtable60o6a6ja", - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables/@Element" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables/@Element" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -46,13 +46,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-353297d0c3fdec43beb08e40ea29dd9b-bf6bb027a1f80b42-00", + "traceparent": "00-8a905c6caec43043b10e0cb14b782401-56d1ef7ffb0c4243-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "32ceb62caef939be59d18d2cba1cd21f", - "x-ms-date": "Tue, 23 Mar 2021 18:28:25 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:10 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -62,32 +62,32 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:28 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A28.8949256Z\u0027\u0022", - "Location": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtable85eaw38n\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:09 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T17%3A40%3A09.7530888Z\u0027\u0022", + "Location": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable85eaw38n\u0027)", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "32ceb62c-aef9-39be-59d1-8d2cba1cd21f" }, "ResponseBody": { "TableName": "testtable85eaw38n", - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables/@Element" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables/@Element" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtable85eaw38n%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtable85eaw38n%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-31c49b074fed654dac08ca5b3aad6c3e-e84763254d91a24a-00", + "traceparent": "00-4740379ffa3f1e458ab0cca81aeb7152-78e319cf8e1e444e-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "b517f0864af2418e49f581bd53e0c232", - "x-ms-date": "Tue, 23 Mar 2021 18:28:26 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:10 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -95,7 +95,7 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:28 GMT", + "Date": "Fri, 30 Apr 2021 17:40:09 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "b517f086-4af2-418e-49f5-81bd53e0c232" @@ -106,22 +106,22 @@ "TableName": "testtable85eaw38n" } ], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtable85eaw38n\u0027)", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable85eaw38n\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-185b4ec068509645971f832effee91d2-ec61f09d5a8af448-00", + "traceparent": "00-23742c2f5b371345b1c273f9b0fe89da-222af771c66d794a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "e56b14283f1cde647a54462e7379efc6", - "x-ms-date": "Tue, 23 Mar 2021 18:28:26 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:10 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -129,26 +129,55 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:28 GMT", + "Date": "Fri, 30 Apr 2021 17:40:09 GMT", "Server": "Microsoft-HTTPAPI/2.0", "x-ms-request-id": "e56b1428-3f1c-de64-7a54-462e7379efc6" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtable85eaw38n%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable85eaw38n\u0027)", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-eb32f20f6950df4ea7611dd27fd06519-0f2457b3afbd2342-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "764dea2c79b9e1b6288de9042c00e578", + "x-ms-date": "Fri, 30 Apr 2021 17:40:10 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Type": "application/json; odata=fullmetadata", + "Date": "Fri, 30 Apr 2021 17:40:09 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Transfer-Encoding": "chunked", + "x-ms-request-id": "764dea2c-79b9-e1b6-288d-e9042c00e578" + }, + "ResponseBody": [ + "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022ResourceNotFound\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The specified resource does not exist.\\nRequestID:764dea2c-79b9-e1b6-288d-e9042c00e578\\n\u0022}}}\r\n" + ] + }, + { + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtable85eaw38n%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-4698e20382d31d4a864c59c6ee07e181-528d1a753d9fc742-00", + "traceparent": "00-7d66a5b3e26cf642a0088c407195c05d-8dc80ddd9a2de845-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "764dea2c79b9e1b6288de9042c00e578", - "x-ms-date": "Tue, 23 Mar 2021 18:28:26 GMT", + "x-ms-client-request-id": "a5035a0fedb147038c383b9e045fcdd0", + "x-ms-date": "Fri, 30 Apr 2021 17:40:11 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -156,29 +185,29 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:28:28 GMT", + "Date": "Fri, 30 Apr 2021 17:40:09 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "764dea2c-79b9-e1b6-288d-e9042c00e578" + "x-ms-request-id": "a5035a0f-edb1-4703-8c38-3b9e045fcdd0" }, "ResponseBody": { "value": [], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtable60o6a6ja\u0027)", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtable60o6a6ja\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-19d5695a0c4e074db60dd72f7c951c41-369587cf63bb984b-00", + "traceparent": "00-74c358f1f0ebbe419e63520183cf918a-7a72b5c157342942-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "a5035a0fedb147038c383b9e045fcdd0", - "x-ms-date": "Tue, 23 Mar 2021 18:28:26 GMT", + "x-ms-client-request-id": "6891bb054b92af785e89bd8e555fb279", + "x-ms-date": "Fri, 30 Apr 2021 17:40:11 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -186,9 +215,9 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:28 GMT", + "Date": "Fri, 30 Apr 2021 17:40:10 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "a5035a0f-edb1-4703-8c38-3b9e045fcdd0" + "x-ms-request-id": "6891bb05-4b92-af78-5e89-bd8e555fb279" }, "ResponseBody": [] } @@ -196,7 +225,7 @@ "Variables": { "COSMOS_TABLES_ENDPOINT_SUFFIX": null, "RandomSeed": "1769529552", - "TABLES_COSMOS_ACCOUNT_NAME": "jverazsdkprim", + "TABLES_COSMOS_ACCOUNT_NAME": "chrisstablesprim", "TABLES_PRIMARY_COSMOS_ACCOUNT_KEY": "Kg==" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTableAsync.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTableAsync.json index babcfce9c3bd..0bd6a5bc3a0b 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTableAsync.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/ValidateCreateDeleteTableAsync.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-67017cb7116ae447b6ba2e82a699278a-a065b5da3018e740-00", + "traceparent": "00-38f19af968de9e4eb17e974fcb474b31-9be3fbe5c7c0184c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "48e9fb32236c06fcf83fa42a1a490b17", - "x-ms-date": "Tue, 23 Mar 2021 18:29:01 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -25,20 +25,20 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:04 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A04.7424008Z\u0027\u0022", - "Location": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtablezfarwh1l\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:12 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T17%3A40%3A12.2625032Z\u0027\u0022", + "Location": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtablezfarwh1l\u0027)", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "48e9fb32-236c-06fc-f83f-a42a1a490b17" }, "ResponseBody": { "TableName": "testtablezfarwh1l", - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables/@Element" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables/@Element" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -46,13 +46,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-25b0cfc9ef7b8245aadb39a900fc6dac-6085500445ac6f45-00", + "traceparent": "00-5d97ebb07896c4418af7f88704d3b574-fad714669f817c45-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "515aa3afa30f48d9ed1ad44aae06e537", - "x-ms-date": "Tue, 23 Mar 2021 18:29:02 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:13 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -62,32 +62,32 @@ "StatusCode": 201, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:04 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A05.1621384Z\u0027\u0022", - "Location": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtableqmmjal2e\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:12 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T17%3A40%3A12.7102984Z\u0027\u0022", + "Location": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtableqmmjal2e\u0027)", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "515aa3af-a30f-48d9-ed1a-d44aae06e537" }, "ResponseBody": { "TableName": "testtableqmmjal2e", - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables/@Element" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables/@Element" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtableqmmjal2e%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtableqmmjal2e%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-9b41f22382f0184481316def8a2dd14e-51609923f34d034d-00", + "traceparent": "00-f88bc0b639186a4eadfbf817c8455f59-fd7b195dc4ce3049-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "3672a31274a78a1c7e4357dc2d7b95c6", - "x-ms-date": "Tue, 23 Mar 2021 18:29:02 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:13 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -95,7 +95,7 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:04 GMT", + "Date": "Fri, 30 Apr 2021 17:40:12 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", "x-ms-request-id": "3672a312-74a7-8a1c-7e43-57dc2d7b95c6" @@ -106,22 +106,22 @@ "TableName": "testtableqmmjal2e" } ], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtableqmmjal2e\u0027)", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtableqmmjal2e\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-54c41a5c0b916e478e01bc09d1ef6c62-d6edff7b51fc3949-00", + "traceparent": "00-b4b4383387d3d74fa6b6539467c73392-88bc5dc46ac24845-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "c998d84eaac854f6655c3cff75c069fe", - "x-ms-date": "Tue, 23 Mar 2021 18:29:02 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:13 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -129,26 +129,55 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:04 GMT", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", "Server": "Microsoft-HTTPAPI/2.0", "x-ms-request-id": "c998d84e-aac8-54f6-655c-3cff75c069fe" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtableqmmjal2e%27", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtableqmmjal2e\u0027)", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-9a97f2f0dc7de04f82ba3f7ef6f6fbee-7ef9f3e10346ed4f-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "83d52d6075f83a6986d0d2cc4cfd1a72", + "x-ms-date": "Fri, 30 Apr 2021 17:40:13 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Type": "application/json; odata=fullmetadata", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Transfer-Encoding": "chunked", + "x-ms-request-id": "83d52d60-75f8-3a69-86d0-d2cc4cfd1a72" + }, + "ResponseBody": [ + "{\u0022odata.error\u0022:{\u0022code\u0022:\u0022ResourceNotFound\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-us\u0022,\u0022value\u0022:\u0022The specified resource does not exist.\\nRequestID:83d52d60-75f8-3a69-86d0-d2cc4cfd1a72\\n\u0022}}}\r\n" + ] + }, + { + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtableqmmjal2e%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-b7b977f6ac43df41a48b5f8a83c6ec50-1d25687e6ddb1941-00", + "traceparent": "00-49d22fd167a7964786c1047e071b67ce-642b0f56adb1ae47-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "83d52d6075f83a6986d0d2cc4cfd1a72", - "x-ms-date": "Tue, 23 Mar 2021 18:29:02 GMT", + "x-ms-client-request-id": "d5fc0d851b6d686eac1ed14b381c15be", + "x-ms-date": "Fri, 30 Apr 2021 17:40:13 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -156,29 +185,29 @@ "StatusCode": 200, "ResponseHeaders": { "Content-Type": "application/json; odata=minimalmetadata", - "Date": "Tue, 23 Mar 2021 18:29:04 GMT", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Transfer-Encoding": "chunked", - "x-ms-request-id": "83d52d60-75f8-3a69-86d0-d2cc4cfd1a72" + "x-ms-request-id": "d5fc0d85-1b6d-686e-ac1e-d14b381c15be" }, "ResponseBody": { "value": [], - "odata.metadata": "https://jverazsdkprim.table.cosmos.azure.com/$metadata#Tables" + "odata.metadata": "https://chrisstablesprim.table.cosmos.azure.com/$metadata#Tables" } }, { - "RequestUri": "https://jverazsdkprim.table.cosmos.azure.com/Tables(\u0027testtablezfarwh1l\u0027)", + "RequestUri": "https://chrisstablesprim.table.cosmos.azure.com/Tables(\u0027testtablezfarwh1l\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-1cf7862408042e4c8426d4ee4e5ad0ce-9588c6e352df9345-00", + "traceparent": "00-c7facb63475a5348ad18200512f62678-8fbbad7933f4994a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "d5fc0d851b6d686eac1ed14b381c15be", - "x-ms-date": "Tue, 23 Mar 2021 18:29:02 GMT", + "x-ms-client-request-id": "007c58d912a6d8ce6e5e42f8d82a0767", + "x-ms-date": "Fri, 30 Apr 2021 17:40:14 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -186,9 +215,9 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:06 GMT", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-request-id": "d5fc0d85-1b6d-686e-ac1e-d14b381c15be" + "x-ms-request-id": "007c58d9-12a6-d8ce-6e5e-42f8d82a0767" }, "ResponseBody": [] } @@ -196,7 +225,7 @@ "Variables": { "COSMOS_TABLES_ENDPOINT_SUFFIX": null, "RandomSeed": "1413939319", - "TABLES_COSMOS_ACCOUNT_NAME": "jverazsdkprim", + "TABLES_COSMOS_ACCOUNT_NAME": "chrisstablesprim", "TABLES_PRIMARY_COSMOS_ACCOUNT_KEY": "Kg==" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtag.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtag.json index 2fc421e09816..2dcf56b97c9b 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtag.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtag.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-d4d32ae3e5ffcd44909dde0f393c10cb-5d920ac31bfdad4f-00", + "traceparent": "00-ffd39cbf5c37bf46b6d78d80ce9dec1f-90f5028398215445-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "9733354053f402bd7ccf860ebf7fa3b3", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -26,8 +26,8 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", - "Location": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablexuh14aqc\u0027)", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "Location": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablexuh14aqc\u0027)", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -35,16 +35,16 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "9733354053f402bd7ccf860ebf7fa3b3", - "x-ms-request-id": "a028741d-e002-0026-7e12-207c0c000000", + "x-ms-request-id": "1054b4a9-d002-0002-06eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables/@Element", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables/@Element", "TableName": "testtablexuh14aqc" } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -52,13 +52,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-335bdc6b6f547448887c7ecc5bb1278a-b45037d9f720564f-00", + "traceparent": "00-33b1a063222d1648a08df2949d01ed02-079601cde488cb40-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "7339ac8a0d3e11e1605d476680c75d24", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -71,33 +71,33 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A38.7392602Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A41.1428776Z\u0027\u0022", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "7339ac8a0d3e11e1605d476680c75d24", - "x-ms-request-id": "a0287425-e002-0026-0512-207c0c000000", + "x-ms-request-id": "1054b4b7-d002-0002-0feb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-61145e74edbf514fa086b4957d5508dd-e9ce67eeb651df42-00", + "traceparent": "00-e388090827c5c34585ba679b2e8db44e-139c86e469e7f24f-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "169f7fe496ea0652890df0f8fb7a0a08", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -106,7 +106,7 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -114,37 +114,37 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "169f7fe496ea0652890df0f8fb7a0a08", - "x-ms-request-id": "a028742c-e002-0026-0c12-207c0c000000", + "x-ms-request-id": "1054b4b9-d002-0002-11eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtablexuh14aqc", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtablexuh14aqc", "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A38.7392602Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A41.1428776Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", - "Timestamp": "2021-03-23T18:28:38.7392602Z", + "Timestamp": "2021-04-30T18:07:41.1428776Z", "SomeStringProperty": "This is the original" } ] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", "If-Match": "*", - "traceparent": "00-247b7db96c83b74c935e32cc3c6889d1-6a6cef9fae972045-00", + "traceparent": "00-d493ae41e601b94b8386b60c4b8f95e1-6c2837157f779048-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "8988c36a12982802528594f6759bfc07", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -153,41 +153,42 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "8988c36a12982802528594f6759bfc07", - "x-ms-request-id": "a0287431-e002-0026-1012-207c0c000000", + "x-ms-request-id": "1054b4ba-d002-0002-12eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", - "RequestMethod": "GET", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-7300f0f172298441a8853065cd9cd582-0ac4de255343ec49-00", + "If-Match": "*", + "traceparent": "00-9be00e93d8633d41bf5477ab0922fc6e-3549b3e0a7afa342-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "00dae9289c04f3235932e9311de816e6", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -195,16 +196,59 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "00dae9289c04f3235932e9311de816e6", - "x-ms-request-id": "a0287439-e002-0026-1812-207c0c000000", + "x-ms-request-id": "1054b4c1-d002-0002-17eb-3d8aac000000", + "x-ms-version": "2019-02-02" + }, + "ResponseBody": { + "odata.error": { + "code": "ResourceNotFound", + "message": { + "lang": "en-US", + "value": "The specified resource does not exist.\nRequestId:1054b4c1-d002-0002-17eb-3d8aac000000\nTime:2021-04-30T18:07:41.3514520Z" + } + } + } + }, + { + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json; odata=minimalmetadata", + "Authorization": "Sanitized", + "DataServiceVersion": "3.0", + "traceparent": "00-0073e33288da3e4080b37a50d3e75870-4081ab801cdf884e-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "bdfc3f53d33fd18c7d77c464025c91ed", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "Server": [ + "Windows-Azure-Table/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bdfc3f53d33fd18c7d77c464025c91ed", + "x-ms-request-id": "1054b4cc-d002-0002-20eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtablexuh14aqc", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtablexuh14aqc", "value": [] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -212,13 +256,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-c4ba3824372ff34f984300fd8de6b7d2-4deb70e3834b8c4b-00", + "traceparent": "00-9f4a9d4c9a5bf1419e2f94829553470c-29627b7cfd2dcc4b-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "bdfc3f53d33fd18c7d77c464025c91ed", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-client-request-id": "12d0e8110a9fce049f952f6629d10a69", + "x-ms-date": "Fri, 30 Apr 2021 18:07:41 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -231,33 +275,33 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A38.8443353Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A41.513137Z\u0027\u0022", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "bdfc3f53d33fd18c7d77c464025c91ed", - "x-ms-request-id": "a0287440-e002-0026-1f12-207c0c000000", + "x-ms-client-request-id": "12d0e8110a9fce049f952f6629d10a69", + "x-ms-request-id": "1054b4ce-d002-0002-22eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-821e080ecd605548bcc0bb8b019ae241-1f5f88b8e666e842-00", + "traceparent": "00-1bec8d7af59d2449b07d30f15f20d401-3b6f339fcdb9bb40-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "12d0e8110a9fce049f952f6629d10a69", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-client-request-id": "36a2ae6f3e9f54c85c09828dd8bef1fd", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -266,45 +310,45 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:37 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "12d0e8110a9fce049f952f6629d10a69", - "x-ms-request-id": "a0287446-e002-0026-2512-207c0c000000", + "x-ms-client-request-id": "36a2ae6f3e9f54c85c09828dd8bef1fd", + "x-ms-request-id": "1054b4d4-d002-0002-28eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtablexuh14aqc", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtablexuh14aqc", "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A28%3A38.8443353Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A41.513137Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", - "Timestamp": "2021-03-23T18:28:38.8443353Z", + "Timestamp": "2021-04-30T18:07:41.513137Z", "SomeStringProperty": "This is the original" } ] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A28%3A38.7392602Z\u0027\u0022", - "traceparent": "00-f51c9a22310c6443971b8e309de5ffcf-5f6b551e02709849-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A41.1428776Z\u0027\u0022", + "traceparent": "00-b677246ff0cdc5468fffce9cc6cc098d-8fa6e6a1309da44a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "36a2ae6f3e9f54c85c09828dd8bef1fd", - "x-ms-date": "Tue, 23 Mar 2021 18:28:35 GMT", + "x-ms-client-request-id": "341ffba0031848463b2e1daaa426a8ac", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -313,15 +357,15 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:38 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "36a2ae6f3e9f54c85c09828dd8bef1fd", - "x-ms-request-id": "a0287450-e002-0026-2f12-207c0c000000", + "x-ms-client-request-id": "341ffba0031848463b2e1daaa426a8ac", + "x-ms-request-id": "1054b4d7-d002-0002-2beb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { @@ -329,26 +373,26 @@ "code": "UpdateConditionNotSatisfied", "message": { "lang": "en-US", - "value": "The update condition specified in the request was not satisfied.\nRequestId:a0287450-e002-0026-2f12-207c0c000000\nTime:2021-03-23T18:28:38.8941154Z" + "value": "The update condition specified in the request was not satisfied.\nRequestId:1054b4d7-d002-0002-2beb-3d8aac000000\nTime:2021-04-30T18:07:41.6526616Z" } } } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A28%3A38.8443353Z\u0027\u0022", - "traceparent": "00-3e9ddc8f73cf3447a80add391b6ca300-c307989a01495c42-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A41.513137Z\u0027\u0022", + "traceparent": "00-c6ac653fa7228a42abc6a78af8dc8d3b-db1dfbd1d4af3143-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "341ffba0031848463b2e1daaa426a8ac", - "x-ms-date": "Tue, 23 Mar 2021 18:28:36 GMT", + "x-ms-client-request-id": "53f55a6c5ab9d24e207bb5968776f5e0", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -357,32 +401,32 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:38 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "341ffba0031848463b2e1daaa426a8ac", - "x-ms-request-id": "a0287458-e002-0026-3712-207c0c000000", + "x-ms-client-request-id": "53f55a6c5ab9d24e207bb5968776f5e0", + "x-ms-request-id": "1054b4dd-d002-0002-30eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtablexuh14aqc()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-63884d4b44eeb54f943641430717270d-e7746cbbd2359547-00", + "traceparent": "00-85a0072f6583e94daead240c87691a23-5c3fd9685e7d804c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "53f55a6c5ab9d24e207bb5968776f5e0", - "x-ms-date": "Tue, 23 Mar 2021 18:28:36 GMT", + "x-ms-client-request-id": "2dc532a3d5b16c51685afb71211eb036", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -391,35 +435,35 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:38 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "53f55a6c5ab9d24e207bb5968776f5e0", - "x-ms-request-id": "a028745c-e002-0026-3a12-207c0c000000", + "x-ms-client-request-id": "2dc532a3d5b16c51685afb71211eb036", + "x-ms-request-id": "1054b4e6-d002-0002-36eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtablexuh14aqc", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtablexuh14aqc", "value": [] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablexuh14aqc\u0027)", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablexuh14aqc\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-ea9bf6bf6f98bd46b73f4d78e83b9e67-492fc0eefefe684f-00", + "traceparent": "00-f773587b06b65a478ebcd34f57e75b55-7efc1b4072bf904a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "2dc532a3d5b16c51685afb71211eb036", - "x-ms-date": "Tue, 23 Mar 2021 18:28:36 GMT", + "x-ms-client-request-id": "7d20d6609ec94644ad4c149c4eb0c1c4", + "x-ms-date": "Fri, 30 Apr 2021 18:07:42 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -428,14 +472,14 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:38 GMT", + "Date": "Fri, 30 Apr 2021 18:07:41 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "2dc532a3d5b16c51685afb71211eb036", - "x-ms-request-id": "a0287460-e002-0026-3e12-207c0c000000", + "x-ms-client-request-id": "7d20d6609ec94644ad4c149c4eb0c1c4", + "x-ms-request-id": "1054b4ed-d002-0002-3deb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] @@ -445,6 +489,6 @@ "RandomSeed": "177049177", "STORAGE_ENDPOINT_SUFFIX": "core.windows.net", "TABLES_PRIMARY_STORAGE_ACCOUNT_KEY": "Kg==", - "TABLES_STORAGE_ACCOUNT_NAME": "jverazsdkprim" + "TABLES_STORAGE_ACCOUNT_NAME": "chrisstablesprim" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtagAsync.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtagAsync.json index 62c482a711ee..9a26eec740e7 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtagAsync.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/EntityDeleteRespectsEtagAsync.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-6f3f2bf10a549a4ea6b434f978a79c6e-6938b054ad76dc4b-00", + "traceparent": "00-49c8988378ed3e418f9ac9fdb32caeaa-56b277d2ca54cd4a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "e6cd5cbf6b63ae666115c193572e0449", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -26,8 +26,8 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", - "Location": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtable15crens9\u0027)", + "Date": "Fri, 30 Apr 2021 18:07:43 GMT", + "Location": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtable15crens9\u0027)", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -35,16 +35,16 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "e6cd5cbf6b63ae666115c193572e0449", - "x-ms-request-id": "a0288818-e002-0026-7f12-207c0c000000", + "x-ms-request-id": "1054b567-d002-0002-1aeb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables/@Element", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables/@Element", "TableName": "testtable15crens9" } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -52,13 +52,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-853f17751bd5b445a961a4681c951027-d101803a3cb27a47-00", + "traceparent": "00-94226168ebb82b4796569e1e9c6b2ec1-ce759c3d74061749-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "5578b029765270f011502de13dc387fb", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -71,33 +71,33 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A14.5936328Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:43 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A43.9478464Z\u0027\u0022", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "5578b029765270f011502de13dc387fb", - "x-ms-request-id": "a028881f-e002-0026-0512-207c0c000000", + "x-ms-request-id": "1054b56b-d002-0002-1deb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-1fe8d9a4d26b8a4483924f2e32894aba-4688e6aed62a8f47-00", + "traceparent": "00-f75dafea95bc714da37bc006aeb4148c-c98b19d59008074d-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "0144b4c647b9197602c7a6862821e18c", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -106,7 +106,7 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:43 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -114,37 +114,37 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "0144b4c647b9197602c7a6862821e18c", - "x-ms-request-id": "a0288826-e002-0026-0c12-207c0c000000", + "x-ms-request-id": "1054b56d-d002-0002-1feb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtable15crens9", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtable15crens9", "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A14.5936328Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A43.9478464Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", - "Timestamp": "2021-03-23T18:29:14.5936328Z", + "Timestamp": "2021-04-30T18:07:43.9478464Z", "SomeStringProperty": "This is the original" } ] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", "If-Match": "*", - "traceparent": "00-5e8a96a2f3b489428c4f054563edba3c-1083c49aa11ef641-00", + "traceparent": "00-0dfa1e820474804284b0e97dfa9dca65-af8b32ab434a774b-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "09dd0bf62fa3e56ddd76521b38cc2352", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -153,41 +153,42 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "09dd0bf62fa3e56ddd76521b38cc2352", - "x-ms-request-id": "a028882c-e002-0026-1212-207c0c000000", + "x-ms-request-id": "1054b573-d002-0002-24eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", - "RequestMethod": "GET", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-e6de7c67bd774d4088e654f09b7e5fdf-7943e7e344621248-00", + "If-Match": "*", + "traceparent": "00-07e7e1fa5513a849bacd568951f1ef62-2ab8f9d7d50ee846-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "7990983947bfe244395f528ad06947ef", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -195,16 +196,59 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "7990983947bfe244395f528ad06947ef", - "x-ms-request-id": "a028882f-e002-0026-1512-207c0c000000", + "x-ms-request-id": "1054b57d-d002-0002-29eb-3d8aac000000", + "x-ms-version": "2019-02-02" + }, + "ResponseBody": { + "odata.error": { + "code": "ResourceNotFound", + "message": { + "lang": "en-US", + "value": "The specified resource does not exist.\nRequestId:1054b57d-d002-0002-29eb-3d8aac000000\nTime:2021-04-30T18:07:44.1654199Z" + } + } + } + }, + { + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json; odata=minimalmetadata", + "Authorization": "Sanitized", + "DataServiceVersion": "3.0", + "traceparent": "00-04934ec6da98834198008075c1659b97-89a0bbd8559c634b-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "32eaa16e7ee69757475f2443f45be036", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", + "Server": [ + "Windows-Azure-Table/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "32eaa16e7ee69757475f2443f45be036", + "x-ms-request-id": "1054b581-d002-0002-2deb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtable15crens9", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtable15crens9", "value": [] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -212,13 +256,13 @@ "Content-Length": "88", "Content-Type": "application/json", "DataServiceVersion": "3.0", - "traceparent": "00-43c6dd55cd561040a4dde6b05909f156-77dbb232687faf4b-00", + "traceparent": "00-92c8c182d36a1842b19e4c04e61e1b5b-443e749200998a4a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "32eaa16e7ee69757475f2443f45be036", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-client-request-id": "8f4c54a36791afcdc6fad044dce21473", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -231,33 +275,33 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", - "ETag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A14.6897007Z\u0027\u0022", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", + "ETag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A44.3091019Z\u0027\u0022", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "32eaa16e7ee69757475f2443f45be036", - "x-ms-request-id": "a0288834-e002-0026-1a12-207c0c000000", + "x-ms-client-request-id": "8f4c54a36791afcdc6fad044dce21473", + "x-ms-request-id": "1054b586-d002-0002-31eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-703d7a7bd03f084bbef96bc4ba00f365-e8ffa08bda23ef41-00", + "traceparent": "00-fab4da8961b95a449673f19787db0038-71f8b3a068b9dc4c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "8f4c54a36791afcdc6fad044dce21473", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-client-request-id": "97ad622ef1e1bb6b41f8325f2201eddd", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -266,45 +310,45 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "8f4c54a36791afcdc6fad044dce21473", - "x-ms-request-id": "a0288837-e002-0026-1c12-207c0c000000", + "x-ms-client-request-id": "97ad622ef1e1bb6b41f8325f2201eddd", + "x-ms-request-id": "1054b589-d002-0002-34eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtable15crens9", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtable15crens9", "value": [ { - "odata.etag": "W/\u0022datetime\u00272021-03-23T18%3A29%3A14.6897007Z\u0027\u0022", + "odata.etag": "W/\u0022datetime\u00272021-04-30T18%3A07%3A44.3091019Z\u0027\u0022", "PartitionKey": "somPartition", "RowKey": "1", - "Timestamp": "2021-03-23T18:29:14.6897007Z", + "Timestamp": "2021-04-30T18:07:44.3091019Z", "SomeStringProperty": "This is the original" } ] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A29%3A14.5936328Z\u0027\u0022", - "traceparent": "00-5faed86e05d0054ca440488206c99a9d-dc3ba29d5781964a-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A43.9478464Z\u0027\u0022", + "traceparent": "00-a7fe245b4c9c924297be713242b4d72c-742c46bdf415b54c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "97ad622ef1e1bb6b41f8325f2201eddd", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-client-request-id": "7ce71c7eb81c065ed43a6bebae13bb64", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -313,15 +357,15 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "97ad622ef1e1bb6b41f8325f2201eddd", - "x-ms-request-id": "a028883c-e002-0026-2112-207c0c000000", + "x-ms-client-request-id": "7ce71c7eb81c065ed43a6bebae13bb64", + "x-ms-request-id": "1054b58d-d002-0002-38eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { @@ -329,26 +373,26 @@ "code": "UpdateConditionNotSatisfied", "message": { "lang": "en-US", - "value": "The update condition specified in the request was not satisfied.\nRequestId:a028883c-e002-0026-2112-207c0c000000\nTime:2021-03-23T18:29:14.7444001Z" + "value": "The update condition specified in the request was not satisfied.\nRequestId:1054b58d-d002-0002-38eb-3d8aac000000\nTime:2021-04-30T18:07:44.4506192Z" } } } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9(PartitionKey=\u0027somPartition\u0027,RowKey=\u00271\u0027)?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "If-Match": "W/\u0022datetime\u00272021-03-23T18%3A29%3A14.6897007Z\u0027\u0022", - "traceparent": "00-916c50a13bce214292ead10a258924a3-9bb500a354eeb047-00", + "If-Match": "W/\u0022datetime\u00272021-04-30T18%3A07%3A44.3091019Z\u0027\u0022", + "traceparent": "00-350667e1dce6d34d82443f3287b65720-02d5ed296818a240-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "7ce71c7eb81c065ed43a6bebae13bb64", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-client-request-id": "9114b14a49aeb154e8914e98356d8dc5", + "x-ms-date": "Fri, 30 Apr 2021 18:07:44 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -357,32 +401,32 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "7ce71c7eb81c065ed43a6bebae13bb64", - "x-ms-request-id": "a028883e-e002-0026-2312-207c0c000000", + "x-ms-client-request-id": "9114b14a49aeb154e8914e98356d8dc5", + "x-ms-request-id": "1054b590-d002-0002-3beb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/testtable15crens9()?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=PartitionKey%20eq%20%27somPartition%27%20and%20RowKey%20eq%20%271%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-6e4e2daa8e855044ab437363926ac931-d54a8d8b03d6c541-00", + "traceparent": "00-a5e3dabdaf1c564a8216a1f69219f73a-e36bdc4736edae4b-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "9114b14a49aeb154e8914e98356d8dc5", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-client-request-id": "bfc5f20d98fa765604a6c2a786800c2e", + "x-ms-date": "Fri, 30 Apr 2021 18:07:45 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -391,35 +435,35 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "9114b14a49aeb154e8914e98356d8dc5", - "x-ms-request-id": "a0288841-e002-0026-2612-207c0c000000", + "x-ms-client-request-id": "bfc5f20d98fa765604a6c2a786800c2e", + "x-ms-request-id": "1054b594-d002-0002-3feb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#testtable15crens9", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#testtable15crens9", "value": [] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtable15crens9\u0027)", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtable15crens9\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-656010bd2f5c444496b0ff31d6f5b779-f87d3b4b454e934d-00", + "traceparent": "00-919b9021452b9c439349fbcf3449da3a-e972273fa461694d-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "bfc5f20d98fa765604a6c2a786800c2e", - "x-ms-date": "Tue, 23 Mar 2021 18:29:11 GMT", + "x-ms-client-request-id": "7115cd3d5cec352fc835948b69c5d067", + "x-ms-date": "Fri, 30 Apr 2021 18:07:45 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -428,14 +472,14 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:13 GMT", + "Date": "Fri, 30 Apr 2021 18:07:44 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "bfc5f20d98fa765604a6c2a786800c2e", - "x-ms-request-id": "a0288844-e002-0026-2912-207c0c000000", + "x-ms-client-request-id": "7115cd3d5cec352fc835948b69c5d067", + "x-ms-request-id": "1054b597-d002-0002-42eb-3d8aac000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] @@ -445,6 +489,6 @@ "RandomSeed": "1636867391", "STORAGE_ENDPOINT_SUFFIX": "core.windows.net", "TABLES_PRIMARY_STORAGE_ACCOUNT_KEY": "Kg==", - "TABLES_STORAGE_ACCOUNT_NAME": "jverazsdkprim" + "TABLES_STORAGE_ACCOUNT_NAME": "chrisstablesprim" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTable.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTable.json index f68dd3d3da12..0378c59b37d4 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTable.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTable.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-9fdd2aa03fa57043a5f49e76e658fc42-78cc6bbc171c6e4b-00", + "traceparent": "00-743eb1b3f5a5b643a4434310c08ddf5d-58486b3530ef6448-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "a571a973dc0f2034a8a623a7f5c83e70", - "x-ms-date": "Tue, 23 Mar 2021 18:28:37 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:11 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -26,8 +26,8 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:39 GMT", - "Location": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablee0w7o5qv\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:10 GMT", + "Location": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablee0w7o5qv\u0027)", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -35,16 +35,16 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "a571a973dc0f2034a8a623a7f5c83e70", - "x-ms-request-id": "a0287539-e002-0026-0812-207c0c000000", + "x-ms-request-id": "885538dc-a002-0045-6ee7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables/@Element", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables/@Element", "TableName": "testtablee0w7o5qv" } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -52,13 +52,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-2237e1a965ea414db1e963ea801c9a66-ce33897745e6d440-00", + "traceparent": "00-7304e2fd5d6a6b4ea2e5aa7b17892e62-2372e7f65a733241-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "62330f13e32c75a64c6c8931c47e4eac", - "x-ms-date": "Tue, 23 Mar 2021 18:28:37 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -69,8 +69,8 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:39 GMT", - "Location": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablefe6l1uob\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:10 GMT", + "Location": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablefe6l1uob\u0027)", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -78,28 +78,28 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "62330f13e32c75a64c6c8931c47e4eac", - "x-ms-request-id": "a028753d-e002-0026-0b12-207c0c000000", + "x-ms-request-id": "885538ee-a002-0045-7ee7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables/@Element", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables/@Element", "TableName": "testtablefe6l1uob" } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablefe6l1uob%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablefe6l1uob%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-bcdb90765ccda049a00a55785fee87fb-742f0592a1e99d46-00", + "traceparent": "00-252c872fdc39f5458fa1741bbcc84fcc-77af30f8dccee34c-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "445369695236f8682f4793a3fc82ec21", - "x-ms-date": "Tue, 23 Mar 2021 18:28:37 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -108,7 +108,7 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:39 GMT", + "Date": "Fri, 30 Apr 2021 17:40:11 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -116,11 +116,11 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "445369695236f8682f4793a3fc82ec21", - "x-ms-request-id": "a0287541-e002-0026-0e12-207c0c000000", + "x-ms-request-id": "885538fb-a002-0045-0ae7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables", "value": [ { "TableName": "testtablefe6l1uob" @@ -129,18 +129,18 @@ } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablefe6l1uob\u0027)", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablefe6l1uob\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-d5976f2d01702c40aa6c820b7ac206ee-86048b55ba9a2344-00", + "traceparent": "00-b76f2e2783c6914086708eafa959bc32-8868c9969ce9a546-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "ff9210d4d1a9c5f4ffad5b893f0cab40", - "x-ms-date": "Tue, 23 Mar 2021 18:28:37 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -149,32 +149,74 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:39 GMT", + "Date": "Fri, 30 Apr 2021 17:40:11 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "ff9210d4d1a9c5f4ffad5b893f0cab40", - "x-ms-request-id": "a0287546-e002-0026-1312-207c0c000000", + "x-ms-request-id": "8855390d-a002-0045-1be7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablefe6l1uob%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablefe6l1uob\u0027)", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-9e8c0fdac9303145b0e25b7ac27ea0d1-0e32c1b066b3d649-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "1732594690fdc02aa73a33e44f0378ca", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "Date": "Fri, 30 Apr 2021 17:40:11 GMT", + "Server": [ + "Windows-Azure-Table/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1732594690fdc02aa73a33e44f0378ca", + "x-ms-request-id": "8855391c-a002-0045-2ae7-3de1f7000000", + "x-ms-version": "2019-02-02" + }, + "ResponseBody": { + "odata.error": { + "code": "ResourceNotFound", + "message": { + "lang": "en-US", + "value": "The specified resource does not exist.\nRequestId:8855391c-a002-0045-2ae7-3de1f7000000\nTime:2021-04-30T17:40:11.8457573Z" + } + } + } + }, + { + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablefe6l1uob%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-f0dfc0dcf6ee2b49a0380952fede135f-4fa0e5abbc163844-00", + "traceparent": "00-6bd1cdadd992d64f809b0e625e3a6792-1a7b3c7947c0a248-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "1732594690fdc02aa73a33e44f0378ca", - "x-ms-date": "Tue, 23 Mar 2021 18:28:37 GMT", + "x-ms-client-request-id": "b45d677f4eeb9703758e4488f7dfb923", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -183,35 +225,35 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:28:39 GMT", + "Date": "Fri, 30 Apr 2021 17:40:11 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "1732594690fdc02aa73a33e44f0378ca", - "x-ms-request-id": "a028754b-e002-0026-1812-207c0c000000", + "x-ms-client-request-id": "b45d677f4eeb9703758e4488f7dfb923", + "x-ms-request-id": "8855392f-a002-0045-3de7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables", "value": [] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablee0w7o5qv\u0027)", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablee0w7o5qv\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-6945171c577f07459ac8255df2284397-e949bb825a22dc43-00", + "traceparent": "00-300055534505bc44aaee735ebdb25752-52f4d365c0bafd43-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "b45d677f4eeb9703758e4488f7dfb923", - "x-ms-date": "Tue, 23 Mar 2021 18:28:37 GMT", + "x-ms-client-request-id": "a35c539bd5504324e6d2586e9e0f75fc", + "x-ms-date": "Fri, 30 Apr 2021 17:40:12 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -220,14 +262,14 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:28:39 GMT", + "Date": "Fri, 30 Apr 2021 17:40:11 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "b45d677f4eeb9703758e4488f7dfb923", - "x-ms-request-id": "a0287552-e002-0026-1d12-207c0c000000", + "x-ms-client-request-id": "a35c539bd5504324e6d2586e9e0f75fc", + "x-ms-request-id": "8855393f-a002-0045-4de7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] @@ -237,6 +279,6 @@ "RandomSeed": "1987403566", "STORAGE_ENDPOINT_SUFFIX": "core.windows.net", "TABLES_PRIMARY_STORAGE_ACCOUNT_KEY": "Kg==", - "TABLES_STORAGE_ACCOUNT_NAME": "jverazsdkprim" + "TABLES_STORAGE_ACCOUNT_NAME": "chrisstablesprim" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTableAsync.json b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTableAsync.json index a1d182e14191..b66cb93fa115 100644 --- a/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTableAsync.json +++ b/sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/ValidateCreateDeleteTableAsync.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -9,13 +9,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-4606ae0ec33d8744bbfbb604e560719d-35015e21821fd64d-00", + "traceparent": "00-666c8417dc53ac47a9edd19c8802cb6a-14d970602cc2354e-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "af35be2a0b4b71cea9b248b34b5077bc", - "x-ms-date": "Tue, 23 Mar 2021 18:29:13 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:14 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -26,8 +26,8 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:15 GMT", - "Location": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtableceee76ve\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", + "Location": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtableceee76ve\u0027)", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -35,16 +35,16 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "af35be2a0b4b71cea9b248b34b5077bc", - "x-ms-request-id": "a028890d-e002-0026-6112-207c0c000000", + "x-ms-request-id": "88553a8a-a002-0045-11e7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables/@Element", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables/@Element", "TableName": "testtableceee76ve" } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", @@ -52,13 +52,13 @@ "Content-Length": "33", "Content-Type": "application/json; odata=nometadata", "DataServiceVersion": "3.0", - "traceparent": "00-2f7d17562023a24e90111635f54892e9-b287d97081dad242-00", + "traceparent": "00-4d80348d5f29844683c84a1adc7aa8e0-cd7a0d60551bff4a-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "d410d0cb7ba03b3f6f68e8ba6699af59", - "x-ms-date": "Tue, 23 Mar 2021 18:29:13 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:14 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -69,8 +69,8 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:15 GMT", - "Location": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablee7z4otrx\u0027)", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", + "Location": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablee7z4otrx\u0027)", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -78,28 +78,28 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "d410d0cb7ba03b3f6f68e8ba6699af59", - "x-ms-request-id": "a0288912-e002-0026-6412-207c0c000000", + "x-ms-request-id": "88553aa0-a002-0045-26e7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables/@Element", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables/@Element", "TableName": "testtablee7z4otrx" } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablee7z4otrx%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablee7z4otrx%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-dce409bf7d8ae74e93daeacd9661840a-45398d4842ab2e48-00", + "traceparent": "00-e1963028b03b444ca27590194b2d9187-bb82c70faf23dd43-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "ebbe30f4a6ea4a3fc870a51e4cee4d59", - "x-ms-date": "Tue, 23 Mar 2021 18:29:13 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:14 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -108,7 +108,7 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:15 GMT", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" @@ -116,11 +116,11 @@ "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "ebbe30f4a6ea4a3fc870a51e4cee4d59", - "x-ms-request-id": "a028891a-e002-0026-6b12-207c0c000000", + "x-ms-request-id": "88553aed-a002-0045-70e7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables", "value": [ { "TableName": "testtablee7z4otrx" @@ -129,18 +129,18 @@ } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtablee7z4otrx\u0027)", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablee7z4otrx\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-0ea97f2e3ff62d419914cbb69008756d-4bc57bccf7157c4b-00", + "traceparent": "00-5b9436449388b641a68d93631c38b61a-82089d9ea5cd8341-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], "x-ms-client-request-id": "7be33475fafa2ed0720d43e367bc56bb", - "x-ms-date": "Tue, 23 Mar 2021 18:29:13 GMT", + "x-ms-date": "Fri, 30 Apr 2021 17:40:14 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -149,32 +149,74 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:15 GMT", + "Date": "Fri, 30 Apr 2021 17:40:13 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", "x-ms-client-request-id": "7be33475fafa2ed0720d43e367bc56bb", - "x-ms-request-id": "a0288924-e002-0026-7512-207c0c000000", + "x-ms-request-id": "88553b14-a002-0045-13e7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablee7z4otrx%27", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtablee7z4otrx\u0027)", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-44279c55bba09e4eb9d283ca6309843e-3a2463083ac69646-00", + "User-Agent": [ + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" + ], + "x-ms-client-request-id": "d7360ff05d12241690c60c30d521ee81", + "x-ms-date": "Fri, 30 Apr 2021 17:40:15 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-02-02" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "Date": "Fri, 30 Apr 2021 17:40:14 GMT", + "Server": [ + "Windows-Azure-Table/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d7360ff05d12241690c60c30d521ee81", + "x-ms-request-id": "88553b34-a002-0045-33e7-3de1f7000000", + "x-ms-version": "2019-02-02" + }, + "ResponseBody": { + "odata.error": { + "code": "ResourceNotFound", + "message": { + "lang": "en-US", + "value": "The specified resource does not exist.\nRequestId:88553b34-a002-0045-33e7-3de1f7000000\nTime:2021-04-30T17:40:14.6457487Z" + } + } + } + }, + { + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables?$format=application%2Fjson%3Bodata%3Dminimalmetadata\u0026$filter=TableName%20eq%20%27testtablee7z4otrx%27", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json; odata=minimalmetadata", "Authorization": "Sanitized", "DataServiceVersion": "3.0", - "traceparent": "00-162fed093079634490043b32b84271ba-f410b088f35ff64a-00", + "traceparent": "00-05196f3f0b8d074fafc78a2b1e68b0a6-ab7eb32a38514247-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "d7360ff05d12241690c60c30d521ee81", - "x-ms-date": "Tue, 23 Mar 2021 18:29:13 GMT", + "x-ms-client-request-id": "32458e1a34b6fa5e5f9079dd635be20b", + "x-ms-date": "Fri, 30 Apr 2021 17:40:15 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -183,35 +225,35 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "Date": "Tue, 23 Mar 2021 18:29:15 GMT", + "Date": "Fri, 30 Apr 2021 17:40:14 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "d7360ff05d12241690c60c30d521ee81", - "x-ms-request-id": "a0288925-e002-0026-7612-207c0c000000", + "x-ms-client-request-id": "32458e1a34b6fa5e5f9079dd635be20b", + "x-ms-request-id": "88553b49-a002-0045-47e7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": { - "odata.metadata": "https://jverazsdkprim.table.core.windows.net/$metadata#Tables", + "odata.metadata": "https://chrisstablesprim.table.core.windows.net/$metadata#Tables", "value": [] } }, { - "RequestUri": "https://jverazsdkprim.table.core.windows.net/Tables(\u0027testtableceee76ve\u0027)", + "RequestUri": "https://chrisstablesprim.table.core.windows.net/Tables(\u0027testtableceee76ve\u0027)", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-310b79ec450cbd498f2e1720715e9d3b-2f88dd4516147241-00", + "traceparent": "00-9aa9af9742749242bcaf1754e9d8aa6b-6c11fb583a304c47-00", "User-Agent": [ - "azsdk-net-Data.Tables/12.0.0-alpha.20210323.1", - "(.NET 5.0.4; Microsoft Windows 10.0.19042)" + "azsdk-net-Data.Tables/12.0.0-alpha.20210430.1", + "(.NET 5.0.5; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "32458e1a34b6fa5e5f9079dd635be20b", - "x-ms-date": "Tue, 23 Mar 2021 18:29:13 GMT", + "x-ms-client-request-id": "3c2dea1a76b817471ebeea33eda05850", + "x-ms-date": "Fri, 30 Apr 2021 17:40:15 GMT", "x-ms-return-client-request-id": "true", "x-ms-version": "2019-02-02" }, @@ -220,14 +262,14 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 23 Mar 2021 18:29:15 GMT", + "Date": "Fri, 30 Apr 2021 17:40:14 GMT", "Server": [ "Windows-Azure-Table/1.0", "Microsoft-HTTPAPI/2.0" ], "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "32458e1a34b6fa5e5f9079dd635be20b", - "x-ms-request-id": "a0288928-e002-0026-7912-207c0c000000", + "x-ms-client-request-id": "3c2dea1a76b817471ebeea33eda05850", + "x-ms-request-id": "88553b56-a002-0045-54e7-3de1f7000000", "x-ms-version": "2019-02-02" }, "ResponseBody": [] @@ -237,6 +279,6 @@ "RandomSeed": "1915310371", "STORAGE_ENDPOINT_SUFFIX": "core.windows.net", "TABLES_PRIMARY_STORAGE_ACCOUNT_KEY": "Kg==", - "TABLES_STORAGE_ACCOUNT_NAME": "jverazsdkprim" + "TABLES_STORAGE_ACCOUNT_NAME": "chrisstablesprim" } } \ No newline at end of file diff --git a/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs b/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs index 1da3a66b49ec..fb10f74e5d36 100644 --- a/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs +++ b/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs @@ -67,7 +67,7 @@ public async Task ValidateCreateDeleteTable() await CosmosThrottleWrapper(async () => await tableClient.CreateAsync().ConfigureAwait(false)); // Check that the table was created. - var tableResponses = (await service.GetTablesAsync(filter: TableOdataFilter.Create($"TableName eq {validTableName}")) + var tableResponses = (await service.QueryAsync(TableOdataFilter.Create($"TableName eq {validTableName}")) .ToEnumerableAsync() .ConfigureAwait(false)).ToList(); Assert.That(() => tableResponses, Is.Not.Empty); @@ -75,8 +75,11 @@ public async Task ValidateCreateDeleteTable() // Delete the table using the TableClient method. await CosmosThrottleWrapper(async () => await tableClient.DeleteAsync().ConfigureAwait(false)); + // Validate that we can call delete again without throwing. + await CosmosThrottleWrapper(async () => await tableClient.DeleteAsync().ConfigureAwait(false)); + // Check that the table was deleted. - tableResponses = (await service.GetTablesAsync(filter: $"TableName eq '{validTableName}'").ToEnumerableAsync().ConfigureAwait(false)).ToList(); + tableResponses = (await service.QueryAsync($"TableName eq '{validTableName}'").ToEnumerableAsync().ConfigureAwait(false)).ToList(); Assert.That(() => tableResponses, Is.Empty); } @@ -102,7 +105,7 @@ public void ValidateSasCredentials() // Create the TableServiceClient using the SAS URI. TableClient sasTableclient = - InstrumentClient(new TableClient(new Uri(ServiceUri), new AzureSasCredential(token), InstrumentClientOptions(new TableClientOptions()))); + InstrumentClient(new TableClient(new Uri(ServiceUri), new AzureSasCredential(token), InstrumentClientOptions(new TablesClientOptions()))); // Validate that we are able to query the table from the service. @@ -150,7 +153,7 @@ public void ValidateSasCredentialsDuplicateTokenInUriAndCred() // Create the TableServiceClient using the SAS URI. // Intentionally add the SAS to the endpoint arg as well as the credential to validate de-duping TableClient sasTableclient = - InstrumentClient(new TableClient(sasUri.Uri, new AzureSasCredential(token), InstrumentClientOptions(new TableClientOptions()))); + InstrumentClient(new TableClient(sasUri.Uri, new AzureSasCredential(token), InstrumentClientOptions(new TablesClientOptions()))); // Validate that we are able to query the table from the service. @@ -203,7 +206,7 @@ public async Task ValidateSasCredentialsWithRowKeyAndPartitionKeyRanges() // Create the TableServiceClient using the SAS URI. var sasAuthedService = - InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(token), InstrumentClientOptions(new TableClientOptions()))); + InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(token), InstrumentClientOptions(new TablesClientOptions()))); var sasTableclient = sasAuthedService.GetTableClient(tableName); // Insert the entities @@ -269,7 +272,7 @@ public async Task CreatedDynamicEntitiesCanBeQueriedWithFilters() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey gt '10'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey gt '10'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -291,7 +294,7 @@ public async Task CreatedEntitiesCanBeQueriedWithFilters() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey gt '10'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey gt '10'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -319,7 +322,7 @@ public async Task EntityCanBeUpserted() // Fetch the created entity from the service. - var entityToUpdate = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var entityToUpdate = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -328,7 +331,7 @@ public async Task EntityCanBeUpserted() // Fetch the updated entity from the service. - var updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -356,7 +359,7 @@ public async Task EntityUpdateRespectsEtag() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); originalEntity[propertyName] = updatedValue; @@ -367,7 +370,7 @@ public async Task EntityUpdateRespectsEtag() // Fetch the updated entity from the service. - var updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -388,7 +391,7 @@ public async Task EntityUpdateRespectsEtag() // Fetch the newly updated entity from the service. - updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -416,7 +419,7 @@ public async Task EntityMergeRespectsEtag() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); originalEntity[propertyName] = updatedValue; @@ -427,7 +430,7 @@ public async Task EntityMergeRespectsEtag() // Fetch the updated entity from the service. - var updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -448,7 +451,7 @@ public async Task EntityMergeRespectsEtag() // Fetch the newly updated entity from the service. - updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -478,7 +481,7 @@ public async Task EntityMergeDoesPartialPropertyUpdates() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -491,7 +494,7 @@ public async Task EntityMergeDoesPartialPropertyUpdates() // Fetch the updated entity from the service. - var mergedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var mergedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -507,7 +510,7 @@ public async Task EntityMergeDoesPartialPropertyUpdates() // Fetch the updated entity from the service. - mergedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + mergedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -523,8 +526,6 @@ public async Task EntityMergeDoesPartialPropertyUpdates() [RecordedTest] public async Task EntityDeleteRespectsEtag() { - string tableName = $"testtable{Recording.GenerateId()}"; - const string rowKeyValue = "1"; const string propertyName = "SomeStringProperty"; const string originalValue = "This is the original"; @@ -536,18 +537,22 @@ public async Task EntityDeleteRespectsEtag() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); + var staleEtag = originalEntity.ETag; // Use a wildcard ETag to delete unconditionally. await client.DeleteEntityAsync(PartitionKeyValue, rowKeyValue).ConfigureAwait(false); + // Ensure that Delete does not throw when the entity does not exist. + await client.DeleteEntityAsync(PartitionKeyValue, rowKeyValue).ConfigureAwait(false); + // Validate that the entity is deleted. - var emptyresult = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var emptyresult = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -559,7 +564,7 @@ public async Task EntityDeleteRespectsEtag() // Fetch the created entity from the service. - originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -576,7 +581,7 @@ public async Task EntityDeleteRespectsEtag() // Validate that the entity is deleted. - emptyresult = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + emptyresult = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -598,7 +603,7 @@ public async Task CreatedEntitiesAreRoundtrippedWithProperOdataAnnoations() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -636,7 +641,7 @@ public async Task UpsertedEntitiesAreRoundtrippedWithProperOdataAnnoations() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -717,7 +722,7 @@ public async Task QueryReturnsEntitiesWithoutOdataAnnoations() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -765,7 +770,7 @@ public async Task CreatedCustomEntitiesCanBeQueriedWithFilters() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey gt '10'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey gt '10'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -793,7 +798,7 @@ public async Task CustomEntityCanBeUpserted() // Fetch the created entity from the service. - var entityToUpdate = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var entityToUpdate = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -802,7 +807,7 @@ public async Task CustomEntityCanBeUpserted() // Fetch the updated entity from the service. - var updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -830,7 +835,7 @@ public async Task CustomEntityUpdateRespectsEtag() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); originalEntity[propertyName] = updatedValue; @@ -841,7 +846,7 @@ public async Task CustomEntityUpdateRespectsEtag() // Fetch the updated entity from the service. - var updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -862,7 +867,7 @@ public async Task CustomEntityUpdateRespectsEtag() // Fetch the newly updated entity from the service. - updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -890,7 +895,7 @@ public async Task CustomEntityMergeRespectsEtag() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); originalEntity[propertyName] = updatedValue; @@ -901,7 +906,7 @@ public async Task CustomEntityMergeRespectsEtag() // Fetch the updated entity from the service. - var updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -922,7 +927,7 @@ public async Task CustomEntityMergeRespectsEtag() // Fetch the newly updated entity from the service. - updatedEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + updatedEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -947,7 +952,7 @@ public async Task CustomEntityDeleteRespectsEtag() // Fetch the created entity from the service. - var originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); var staleEtag = originalEntity.ETag; @@ -958,7 +963,7 @@ public async Task CustomEntityDeleteRespectsEtag() // Validate that the entity is deleted. - var emptyresult = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + var emptyresult = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -970,7 +975,7 @@ public async Task CustomEntityDeleteRespectsEtag() // Fetch the created entity from the service. - originalEntity = (await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + originalEntity = (await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false)).Single(); @@ -988,7 +993,7 @@ public async Task CustomEntityDeleteRespectsEtag() // Validate that the entity is deleted. - emptyresult = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") + emptyresult = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '{rowKeyValue}'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -1013,7 +1018,7 @@ public async Task CreatedCustomEntitiesAreRoundtrippedProprly() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") .ToEnumerableAsync() .ConfigureAwait(false); entityResults.Sort((first, second) => first.IntTypeProperty.CompareTo(second.IntTypeProperty)); @@ -1059,7 +1064,7 @@ public async Task CreatedEnumEntitiesAreRoundtrippedProperly() // Query the entities with a filter specifying that to RowKey value must be greater than or equal to '10'. - entityResults = await client.QueryAsync(filter: $"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") + entityResults = await client.QueryAsync($"PartitionKey eq '{PartitionKeyValue}' and RowKey eq '01'") .ToEnumerableAsync() .ConfigureAwait(false); @@ -1080,9 +1085,9 @@ public async Task GetAccessPoliciesReturnsPolicies() { // Create some policies. - var policyToCreate = new List + var policyToCreate = new List { - new SignedIdentifier( + new TableSignedIdentifier( "MyPolicy", new TableAccessPolicy( new DateTime(2020, 1, 1, 1, 1, 0, DateTimeKind.Utc), @@ -1090,11 +1095,11 @@ public async Task GetAccessPoliciesReturnsPolicies() "r")) }; - await client.SetAccessPolicyAsync(tableAcl: policyToCreate); + await client.SetAccessPolicyAsync(policyToCreate); // Get the created policy. - var policies = await client.GetAccessPolicyAsync(); + var policies = await client.GetAccessPoliciesAsync(); Assert.That(policies.Value[0].Id, Is.EqualTo(policyToCreate[0].Id)); Assert.That(policies.Value[0].AccessPolicy.ExpiresOn, Is.EqualTo(policyToCreate[0].AccessPolicy.ExpiresOn)); diff --git a/sdk/tables/Azure.Data.Tables/tests/TableClientTests.cs b/sdk/tables/Azure.Data.Tables/tests/TableClientTests.cs index f9706edfd4ce..53f4bc5760c8 100644 --- a/sdk/tables/Azure.Data.Tables/tests/TableClientTests.cs +++ b/sdk/tables/Azure.Data.Tables/tests/TableClientTests.cs @@ -31,7 +31,7 @@ public TableClientTests(bool isAsync) : base(isAsync) [SetUp] public void TestSetup() { - var service_Instrumented = InstrumentClient(new TableServiceClient(new Uri("https://example.com"), new AzureSasCredential("sig"), new TableClientOptions())); + var service_Instrumented = InstrumentClient(new TableServiceClient(new Uri("https://example.com"), new AzureSasCredential("sig"), new TablesClientOptions())); client = service_Instrumented.GetTableClient(TableName); } @@ -45,7 +45,7 @@ public void ConstructorValidatesArguments() Assert.That(() => new TableClient(null, TableName, new TableSharedKeyCredential(AccountName, string.Empty)), Throws.InstanceOf(), "The constructor should validate the url."); - Assert.That(() => new TableClient(_url, TableName, new TableSharedKeyCredential(AccountName, string.Empty), new TableClientOptions()), Throws.Nothing, "The constructor should accept valid arguments."); + Assert.That(() => new TableClient(_url, TableName, new TableSharedKeyCredential(AccountName, string.Empty), new TablesClientOptions()), Throws.Nothing, "The constructor should accept valid arguments."); Assert.That(() => new TableClient(_url, TableName, null), Throws.InstanceOf(), "The constructor should validate the TablesSharedKeyCredential."); @@ -72,7 +72,7 @@ public static IEnumerable ValidConnStrings() [TestCaseSource(nameof(ValidConnStrings))] public void AccountNameAndNameForConnStringCtor(string connString) { - var client = new TableClient(connString, TableName, new TableClientOptions()); + var client = new TableClient(connString, TableName, new TablesClientOptions()); Assert.AreEqual(AccountName, client.AccountName); Assert.AreEqual(TableName, client.Name); @@ -81,7 +81,7 @@ public void AccountNameAndNameForConnStringCtor(string connString) [Test] public void AccountNameAndNameForUriCtor() { - var client = new TableClient(_url, TableName, new TableSharedKeyCredential(AccountName, string.Empty), new TableClientOptions()); + var client = new TableClient(_url, TableName, new TableSharedKeyCredential(AccountName, string.Empty), new TablesClientOptions()); Assert.AreEqual(AccountName, client.AccountName); Assert.AreEqual(TableName, client.Name); diff --git a/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs b/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs index 24a16b6b749c..5cfc026968ea 100644 --- a/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs +++ b/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs @@ -67,8 +67,8 @@ public void ValidateAccountSasCredentialsWithPermissions() // Create the TableServiceClients using the SAS URIs. // Intentionally double add the Sas to the endpoint and the cred to validate de-duping - var sasAuthedServiceDelete = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenDelete), InstrumentClientOptions(new TableClientOptions()))); - var sasAuthedServiceWriteDelete = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenWriteDelete), InstrumentClientOptions(new TableClientOptions()))); + var sasAuthedServiceDelete = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenDelete), InstrumentClientOptions(new TablesClientOptions()))); + var sasAuthedServiceWriteDelete = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenWriteDelete), InstrumentClientOptions(new TablesClientOptions()))); // Validate that we are unable to create a table using the SAS URI with only Delete permissions. @@ -117,8 +117,8 @@ public void ValidateAccountSasCredentialsWithPermissionsWithSasDuplicatedInUri() // Create the TableServiceClients using the SAS URIs. // Intentionally double add the Sas to the endpoint and the cred to validate de-duping - var sasAuthedServiceDelete = InstrumentClient(new TableServiceClient(sasUriDelete.Uri, new AzureSasCredential(tokenDelete), InstrumentClientOptions(new TableClientOptions()))); - var sasAuthedServiceWriteDelete = InstrumentClient(new TableServiceClient(sasUriWriteDelete.Uri, new AzureSasCredential(tokenWriteDelete), InstrumentClientOptions(new TableClientOptions()))); + var sasAuthedServiceDelete = InstrumentClient(new TableServiceClient(sasUriDelete.Uri, new AzureSasCredential(tokenDelete), InstrumentClientOptions(new TablesClientOptions()))); + var sasAuthedServiceWriteDelete = InstrumentClient(new TableServiceClient(sasUriWriteDelete.Uri, new AzureSasCredential(tokenWriteDelete), InstrumentClientOptions(new TablesClientOptions()))); // Validate that we are unable to create a table using the SAS URI with only Delete permissions. @@ -167,8 +167,8 @@ public void ValidateAccountSasCredentialsWithResourceTypes() // Create the TableServiceClients using the SAS URIs. - var sasAuthedServiceClientService = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenService), InstrumentClientOptions(new TableClientOptions()))); - var sasAuthedServiceClientServiceContainer = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenServiceContainer), InstrumentClientOptions(new TableClientOptions()))); + var sasAuthedServiceClientService = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenService), InstrumentClientOptions(new TablesClientOptions()))); + var sasAuthedServiceClientServiceContainer = InstrumentClient(new TableServiceClient(new Uri(ServiceUri), new AzureSasCredential(tokenServiceContainer), InstrumentClientOptions(new TablesClientOptions()))); // Validate that we are unable to create a table using the SAS URI with access to Service resource types. @@ -216,7 +216,7 @@ public async Task GetTablesReturnsTablesWithAndWithoutPagination(int? pageCount) // Get the table list. var remainingItems = createdTables.Count; - await foreach (var page in service.GetTablesAsync(/*maxPerPage: pageCount*/).AsPages(pageSizeHint: pageCount)) + await foreach (var page in service.QueryAsync(/*maxPerPage: pageCount*/).AsPages(pageSizeHint: pageCount)) { Assert.That(page.Values, Is.Not.Empty); if (pageCount.HasValue) @@ -262,14 +262,14 @@ public async Task GetTablesReturnsTablesWithFilter() // Query with a filter. - var tableResponses = (await service.GetTablesAsync(filter: $"TableName eq '{tableName}'").ToEnumerableAsync().ConfigureAwait(false)).ToList(); + var tableResponses = (await service.QueryAsync(filter: $"TableName eq '{tableName}'").ToEnumerableAsync().ConfigureAwait(false)).ToList(); Assert.That(() => tableResponses, Is.Not.Empty); Assert.AreEqual(tableName, tableResponses.Select(r => r.Name).SingleOrDefault()); // Query with a filter. - tableResponses = (await service.GetTablesAsync(filter: t => t.Name == tableName).ToEnumerableAsync().ConfigureAwait(false)).ToList(); + tableResponses = (await service.QueryAsync(filter: t => t.Name == tableName).ToEnumerableAsync().ConfigureAwait(false)).ToList(); Assert.That(() => tableResponses, Is.Not.Empty); Assert.AreEqual(tableName, tableResponses.Select(r => r.Name).SingleOrDefault()); diff --git a/sdk/tables/Azure.Data.Tables/tests/TableServiceLiveTestsBase.cs b/sdk/tables/Azure.Data.Tables/tests/TableServiceLiveTestsBase.cs index e1838f553b42..747b7eaf2b93 100644 --- a/sdk/tables/Azure.Data.Tables/tests/TableServiceLiveTestsBase.cs +++ b/sdk/tables/Azure.Data.Tables/tests/TableServiceLiveTestsBase.cs @@ -99,7 +99,7 @@ public async Task TablesTestSetup() service = InstrumentClient(new TableServiceClient( new Uri(ServiceUri), new TableSharedKeyCredential(AccountName, AccountKey), - InstrumentClientOptions(new TableClientOptions()))); + InstrumentClientOptions(new TablesClientOptions()))); tableName = Recording.GenerateAlphaNumericId("testtable", useOnlyLowercase: true); diff --git a/sdk/tables/Azure.Data.Tables/tests/perf/Infrastructure/TablesPerfTest.cs b/sdk/tables/Azure.Data.Tables/tests/perf/Infrastructure/TablesPerfTest.cs index a2c840a1125e..da58d892ac45 100644 --- a/sdk/tables/Azure.Data.Tables/tests/perf/Infrastructure/TablesPerfTest.cs +++ b/sdk/tables/Azure.Data.Tables/tests/perf/Infrastructure/TablesPerfTest.cs @@ -66,7 +66,7 @@ public override async Task GlobalSetupAsync() new Uri(serviceUri), TableName, new TableSharedKeyCredential(accountName, accountKey), - new TableClientOptions()); + new TablesClientOptions()); await Client.CreateIfNotExistsAsync().ConfigureAwait(false); diff --git a/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTables.cs b/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTables.cs index 776fd508477f..0df38879f178 100644 --- a/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTables.cs +++ b/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTables.cs @@ -29,7 +29,7 @@ public void QueryTables() #region Snippet:TablesSample3QueryTables // Use the to query the service. Passing in OData filter strings is optional. - Pageable queryTableResults = serviceClient.GetTables(filter: $"TableName eq '{tableName}'"); + Pageable queryTableResults = serviceClient.Query(filter: $"TableName eq '{tableName}'"); Console.WriteLine("The following are the names of the tables in the query results:"); diff --git a/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTablesAsync.cs b/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTablesAsync.cs index b979ed83888a..182e92fd2c44 100644 --- a/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTablesAsync.cs +++ b/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTablesAsync.cs @@ -29,7 +29,7 @@ public async Task QueryTablesAsync() #region Snippet:TablesSample3QueryTablesAsync // Use the to query the service. Passing in OData filter strings is optional. - AsyncPageable queryTableResults = serviceClient.GetTablesAsync(filter: $"TableName eq '{tableName}'"); + AsyncPageable queryTableResults = serviceClient.QueryAsync(filter: $"TableName eq '{tableName}'"); Console.WriteLine("The following are the names of the tables in the query result:"); // Iterate the in order to access individual queried tables.