From 7d31c4aa34ef904f4426ef8af4be915c2c373e70 Mon Sep 17 00:00:00 2001 From: Jason Reeves Date: Fri, 6 Jul 2018 14:22:59 -0500 Subject: [PATCH] updated dictionary item object to match what is returned from fastly api --- fastly/dictionary_item.go | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/fastly/dictionary_item.go b/fastly/dictionary_item.go index f65bbfbbf..4ad0fe6af 100644 --- a/fastly/dictionary_item.go +++ b/fastly/dictionary_item.go @@ -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.