/
model_query_lambda.go
45 lines (40 loc) · 1.63 KB
/
model_query_lambda.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* REST API
*
* Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below. All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey <api_key>` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ``` All endpoints are only accessible via https. Build something awesome!
*
* API version: v1
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package rockset
import (
"bytes"
"encoding/json"
"fmt"
)
type QueryLambda struct {
// workspace of this Query Lambda
Workspace string `json:"workspace,omitempty"`
// user that created this Query Lambda
LastUpdatedBy string `json:"last_updated_by,omitempty"`
// ISO-8601 date of when Query Lambda was last updated
LastUpdated string `json:"last_updated,omitempty"`
// Query Lambda name
Name string `json:"name,omitempty"`
// number of Query Lambda versions
VersionCount int32 `json:"version_count,omitempty"`
// collections queried by underlying SQL query
Collections []string `json:"collections,omitempty"`
// Query Lambda version details for most recently created version
LatestVersion *QueryLambdaVersion `json:"latest_version,omitempty"`
}
func (m QueryLambda) PrintResponse() {
r, err := json.Marshal(m)
var out bytes.Buffer
err = json.Indent(&out, []byte(string(r)), "", " ")
if err != nil {
fmt.Println("error parsing string")
return
}
fmt.Println(out.String())
}