Skip to content

Commit

Permalink
updated dictionary 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 cd9a5e6 commit 6a8a1c6
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions fastly/dictionary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a8a1c6

Please sign in to comment.