diff --git a/sdk/data/aztables/CHANGELOG.md b/sdk/data/aztables/CHANGELOG.md index 3a400ce7a25b..c98fe1ed007d 100644 --- a/sdk/data/aztables/CHANGELOG.md +++ b/sdk/data/aztables/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 0.8.2 (Unreleased) - -### Features Added +## 1.0.0 (2022-05-16) ### Breaking Changes - -### Bugs Fixed - -### Other Changes +* For type `EDMEntity` renamed field `Id` to `ID`, `Etag` to `ETag` ## 0.8.1 (2022-05-12) diff --git a/sdk/data/aztables/entity.go b/sdk/data/aztables/entity.go index 6415045d9b79..29e5f9c5cbfc 100644 --- a/sdk/data/aztables/entity.go +++ b/sdk/data/aztables/entity.go @@ -22,12 +22,12 @@ type Entity struct { // EDMEntity is an entity that embeds the azcore.Entity type and has a Properties map for user defined entity properties type EDMEntity struct { - Metadata string `json:"odata.metadata"` - Id string `json:"odata.id"` - EditLink string `json:"odata.editLink"` - Type string `json:"odata.type"` - Etag string `json:"odata.etag"` Entity + Metadata string `json:"odata.metadata"` + ID string `json:"odata.id"` + EditLink string `json:"odata.editLink"` + Type string `json:"odata.type"` + ETag string `json:"odata.etag"` Properties map[string]interface{} // Type assert the value to one of these: bool, int32, float64, string, EDMDateTime, EDMBinary, EDMGUID, EDMInt64 } @@ -73,13 +73,13 @@ func (e *EDMEntity) UnmarshalJSON(data []byte) (err error) { case "odata.metadata": err = json.Unmarshal(propRawValue, &e.Metadata) case "odata.id": - err = json.Unmarshal(propRawValue, &e.Id) + err = json.Unmarshal(propRawValue, &e.ID) case "odata.editLink": err = json.Unmarshal(propRawValue, &e.EditLink) case "odata.type": err = json.Unmarshal(propRawValue, &e.Type) case "odata.etag": - err = json.Unmarshal(propRawValue, &e.Etag) + err = json.Unmarshal(propRawValue, &e.ETag) case "PartitionKey": err = json.Unmarshal(propRawValue, &e.PartitionKey) case "RowKey": diff --git a/sdk/data/aztables/internal/constants.go b/sdk/data/aztables/internal/constants.go index f4176ab8ac96..66572534ea1e 100644 --- a/sdk/data/aztables/internal/constants.go +++ b/sdk/data/aztables/internal/constants.go @@ -10,7 +10,7 @@ package internal const ( moduleName = "aztables" - moduleVersion = "v0.8.2" + moduleVersion = "v1.0.0" ) type Enum0 string