-
Notifications
You must be signed in to change notification settings - Fork 13
/
scimv2user.go
77 lines (45 loc) · 2.63 KB
/
scimv2user.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Scimv2user - Defines a SCIM user.
type Scimv2user struct {
// Id - The ID of the SCIM resource. Set by the service provider. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readOnly\". \"returned\" is set to \"always\".
Id *string `json:"id,omitempty"`
// Schemas - The list of supported schemas.
Schemas *[]string `json:"schemas,omitempty"`
// Active - Indicates whether the user's administrative status is active.
Active *bool `json:"active,omitempty"`
// UserName - The user's Genesys Cloud email address. Must be unique.
UserName *string `json:"userName,omitempty"`
// DisplayName - The display name of the user.
DisplayName *string `json:"displayName,omitempty"`
// Password - The new password for the Genesys Cloud user. Does not return an existing password. When creating a user, if a password is not supplied, then a password will be randomly generated that is 40 characters in length and contains five characters from each of the password policy groups.
Password *string `json:"password,omitempty"`
// Title - The user's title.
Title *string `json:"title,omitempty"`
// PhoneNumbers - The list of the user's phone numbers.
PhoneNumbers *[]Scimphonenumber `json:"phoneNumbers,omitempty"`
// Emails - The list of the user's email addresses.
Emails *[]Scimemail `json:"emails,omitempty"`
// ExternalId - The external ID of the user. Set by the provisioning client. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readWrite\".
ExternalId *string `json:"externalId,omitempty"`
// Groups - The list of groups that the user is a member of.
Groups *[]Scimv2groupreference `json:"groups,omitempty"`
// Roles - The list of roles assigned to the user.
Roles *[]Scimuserrole `json:"roles,omitempty"`
// UrnIetfParamsScimSchemasExtensionEnterprise20User - The URI of the schema for the enterprise user.
UrnIetfParamsScimSchemasExtensionEnterprise20User *Scimv2enterpriseuser `json:"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User,omitempty"`
// UrnIetfParamsScimSchemasExtensionGenesysPurecloud20User - The URI of the schema for the Genesys Cloud user.
UrnIetfParamsScimSchemasExtensionGenesysPurecloud20User *Scimuserextensions `json:"urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User,omitempty"`
// Meta - The metadata of the SCIM resource.
Meta *Scimmetadata `json:"meta,omitempty"`
}
// String returns a JSON representation of the model
func (o *Scimv2user) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}