Skip to content

Commit

Permalink
Prep aztables for release (#17981)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT authored May 16, 2022
1 parent f83bedc commit ccda9e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
9 changes: 2 additions & 7 deletions sdk/data/aztables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
14 changes: 7 additions & 7 deletions sdk/data/aztables/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion sdk/data/aztables/internal/constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ccda9e6

Please sign in to comment.