forked from MyPureCloud/platform-client-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scimmetadata.go
34 lines (24 loc) · 1.01 KB
/
scimmetadata.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
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Scimmetadata - Defines the SCIM metadata.
type Scimmetadata struct {
// ResourceType - The type of SCIM resource.
ResourceType *string `json:"resourceType,omitempty"`
// LastModified - The last time that the resource was modified. Date time is represented as an \"ISO-8601 string\", for example, yyyy-MM-ddTHH:mm:ss.SSSZ. Not included with \"Schema\" and \"ResourceType\" resources.
LastModified *time.Time `json:"lastModified,omitempty"`
// Location - The URI of the resource.
Location *string `json:"location,omitempty"`
// Version - The version of the resource. Matches the ETag HTTP response header. Not included with \"Schema\" and \"ResourceType\" resources.
Version *string `json:"version,omitempty"`
}
// String returns a JSON representation of the model
func (o *Scimmetadata) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}