Skip to content

Commit

Permalink
updated dictionary item object to match what is returned from fastly api
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Reeves authored and sethvargo committed Jul 9, 2018
1 parent 6a8a1c6 commit 7d31c4a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions fastly/dictionary_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,26 @@ import (

// DictionaryItem represents a dictionary item response from the Fastly API.
type DictionaryItem struct {
ServiceID string `mapstructure:"service_id"`
// DictionaryID is the alphanumeric string identifying the dictionary for this Item.
DictionaryID string `mapstructure:"dictionary_id"`

ItemKey string `mapstructure:"item_key"`
// ServiceID is the service the Dictionary belongs to.
ServiceID string `mapstructure:"service_id"`

// ItemKey is the value for the DictionaryKey.
ItemKey string `mapstructure:"item_key"`

// ItemValue is the value for the DictionaryItem.
ItemValue string `mapstructure:"item_value"`

// CreatedAt is the Time-stamp (GMT) when the dictionary was created.
CreatedAt string `mapstructure:"created_at"`

// DeletedAt is the Time-stamp (GMT) when the dictionary was deleted.
DeletedAt string `mapstructure:"deleted_at"`

// UpdatedAt is the Time-stamp (GMT) when the dictionary was updated.
UpdatedAt string `mapstructure:"updated_at"`
}

// dictionaryItemsByKey is a sortable list of dictionary items.
Expand Down

0 comments on commit 7d31c4a

Please sign in to comment.