forked from MyPureCloud/platform-client-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uploadurlrequest.go
33 lines (23 loc) · 1012 Bytes
/
uploadurlrequest.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Uploadurlrequest
type Uploadurlrequest struct {
// FileName - Name of the file to upload. It must not start with a dot and not end with a forward slash. Whitespace and the following characters are not allowed: \\{^}%`]\">[~<#|
FileName *string `json:"fileName,omitempty"`
// ContentMd5 - Content MD-5 of the file to upload
ContentMd5 *string `json:"contentMd5,omitempty"`
// SignedUrlTimeoutSeconds - The number of seconds the presigned URL is valid for (from 1 to 604800 seconds). If none provided, defaults to 600 seconds
SignedUrlTimeoutSeconds *int `json:"signedUrlTimeoutSeconds,omitempty"`
// ServerSideEncryption
ServerSideEncryption *string `json:"serverSideEncryption,omitempty"`
}
// String returns a JSON representation of the model
func (o *Uploadurlrequest) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}