| "github.com/gophercloud/gophercloud" |
| // GetResult represents the result of a Get operation. |
| // Extract returns the JSON template and is called after a Get operation. |
| func (r GetResult) Extract() ([]byte, error) { |
| template, err := json.MarshalIndent(r.Body, "", " ") |
| // ValidatedTemplate represents the parsed object returned from a Validate request. |
| type ValidatedTemplate struct { |
| Description string `json:"Description"` |
| Parameters map[string]interface{} `json:"Parameters"` |
| ParameterGroups map[string]interface{} `json:"ParameterGroups"` |
| // ValidateResult represents the result of a Validate operation. |
| type ValidateResult struct { |
| // Extract returns a pointer to a ValidatedTemplate object and is called after a |
| func (r ValidateResult) Extract() (*ValidatedTemplate, error) { |