From 6a8a1c62e61097da752bae838375cb139f4e9cc3 Mon Sep 17 00:00:00 2001 From: Jason Reeves Date: Fri, 6 Jul 2018 14:06:37 -0500 Subject: [PATCH] updated dictionary object to match what is returned from fastly api --- fastly/dictionary.go | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/fastly/dictionary.go b/fastly/dictionary.go index 2a1ae2518..91b485eaf 100644 --- a/fastly/dictionary.go +++ b/fastly/dictionary.go @@ -7,12 +7,29 @@ import ( // Dictionary represents a dictionary response from the Fastly API. type Dictionary struct { + // 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"` + + // ID is the alphanumeric string identifying a dictionary. + ID string `mapstructure:"id"` + + // Name is the name for the Dictionary. + Name string `mapstructure:"name"` + + // ServiceID is the alphanumeric string identifying a service. ServiceID string `mapstructure:"service_id"` - Version int `mapstructure:"version"` - ID string `mapstructure:"id"` - Name string `mapstructure:"name"` - Address string `mapstructure:"address"` + // UpdatedAt is the Time-stamp (GMT) when the dictionary was updated. + UpdatedAt string `mapstructure:"updated_at"` + + // Version is the current version of the service. + Version int `mapstructure:"version"` + + // WriteOnly Determines if items in the dictionary are readable or not. + WriteOnly bool `mapstructure:"write_only"` } // dictionariesByName is a sortable list of dictionaries.