forked from Camb-ai/cambai-go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeprecated_streaming.go
More file actions
34 lines (27 loc) · 872 Bytes
/
Copy pathdeprecated_streaming.go
File metadata and controls
34 lines (27 loc) · 872 Bytes
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
// This file was auto-generated by Fern from our API Definition.
package cambai
import (
json "encoding/json"
)
type GetProbeStreamV1StreamProbePostRequest struct {
Traceparent *string `json:"-" url:"-"`
RunID *int `json:"-" url:"run_id,omitempty"`
Body *GetProbeStreamIn `json:"-" url:"-"`
}
func (g *GetProbeStreamV1StreamProbePostRequest) UnmarshalJSON(data []byte) error {
body := new(GetProbeStreamIn)
if err := json.Unmarshal(data, &body); err != nil {
return err
}
g.Body = body
return nil
}
func (g *GetProbeStreamV1StreamProbePostRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(g.Body)
}
type GetStreamResultV1StreamStreamIDGetRequest struct {
RunID *int `json:"-" url:"run_id,omitempty"`
}
type StopStreamV1StreamStreamIDStopGetRequest struct {
RunID *int `json:"-" url:"run_id,omitempty"`
}