brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
282 stars 105 forks source link

Support `validMasterVersions` in ServerConfig #84

Closed matthew-piziak closed 7 years ago

matthew-piziak commented 7 years ago

Currently the ServerConfig looks like this:

data ServerConfig = ServerConfig'
    { _scValidNodeVersions     :: !(Maybe [Text])
    , _scDefaultImageFamily    :: !(Maybe Text)
    , _scValidImageFamilies    :: !(Maybe [Text])
    , _scDefaultClusterVersion :: !(Maybe Text)
    } deriving (Eq,Show,Data,Typeable,Generic)

Hitting gcloud container get-server-config --log-http returns a result like this:

{
  "defaultClusterVersion": …,
  "validNodeVersions": […],
  "defaultImageType": …,
  "validImageTypes": [...],
  "validMasterVersions": [...]
}

Can we get _scValidMasterVersions in the datatype? Thanks!

matthew-piziak commented 7 years ago

Never mind, I'm looking at an old version. Thanks!