-
Notifications
You must be signed in to change notification settings - Fork 13
/
requestconfig.go
37 lines (25 loc) · 1.05 KB
/
requestconfig.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Requestconfig - Defines response components of the Action Request.
type Requestconfig struct {
// RequestUrlTemplate - URL that may include placeholders for requests to 3rd party service
RequestUrlTemplate *string `json:"requestUrlTemplate,omitempty"`
// RequestTemplate - Velocity template to define request body sent to 3rd party service.
RequestTemplate *string `json:"requestTemplate,omitempty"`
// RequestTemplateUri - URI to retrieve requestTemplate
RequestTemplateUri *string `json:"requestTemplateUri,omitempty"`
// RequestType - HTTP method to use for request
RequestType *string `json:"requestType,omitempty"`
// Headers - Headers to include in request in (Header Name, Value) pairs.
Headers *map[string]string `json:"headers,omitempty"`
}
// String returns a JSON representation of the model
func (o *Requestconfig) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}