payloads

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateScimGroupPayload

type CreateScimGroupPayload struct {
	Schemas     []string `json:"schemas"`
	DisplayName string   `json:"displayName"`
}

func GroupPayloadFromJSON

func GroupPayloadFromJSON(r io.Reader) (*CreateScimGroupPayload, error)

type CreateScimUserPayload

type CreateScimUserPayload struct {
	Schemas           []string          `json:"schemas"`
	Username          string            `json:"userName"`
	ID                string            `json:"id"`
	ExternalID        string            `json:"externalId"`
	Name              map[string]string `json:"name"`
	Emails            []UserEmail       `json:"emails"`
	Nickname          string            `json:"nickName"`
	DisplayName       string            `json:"displayName"`
	Active            bool              `json:"active"`
	PreferredLanguage string            `json:"preferredLanguage"`
	Locale            string            `json:"locale"`
	Title             string            `json:"title"`
	UserType          string            `json:"userType"`
	Timezone          string            `json:"timezone"`
}

func Parse

func Parse(r io.Reader) (*CreateScimUserPayload, error)

type GroupPatch

type GroupPatch struct {
	DisplayName string
}

type GroupPatchOperation

type GroupPatchOperation struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

func (*GroupPatchOperation) GetAddMembersPatch

func (o *GroupPatchOperation) GetAddMembersPatch() ([]uuid.UUID, error)

func (*GroupPatchOperation) GetPatch

func (o *GroupPatchOperation) GetPatch() (GroupPatch, error)

func (*GroupPatchOperation) ParseIDFromPath

func (o *GroupPatchOperation) ParseIDFromPath() (uuid.UUID, error)

type GroupPatchPayload

type GroupPatchPayload struct {
	Schemas    []string               `json:"schemas"`
	Operations []*GroupPatchOperation `json:"Operations"`
}

func GroupPatchPayloadFromJSON

func GroupPatchPayloadFromJSON(r io.Reader) (*GroupPatchPayload, error)

type MemberPatch

type MemberPatch struct {
	Display string
	Value   uuid.UUID
}

type UserEmail

type UserEmail struct {
	Value   string `json:"value"`
	Type    string `json:"type"`
	Primary bool   `json:"primary"`
}

type UserPatch

type UserPatch struct {
	Active bool `json:"active"`
}

type UserPatchOperation

type UserPatchOperation struct {
	Op    string    `json:"op"`
	Path  string    `json:"path"`
	Value UserPatch `json:"value"`
}

type UserPatchPayload

type UserPatchPayload struct {
	Schemas    []string              `json:"schemas"`
	Operations []*UserPatchOperation `json:"Operations"`
}

func UserPatchPayloadFromJSON

func UserPatchPayloadFromJSON(r io.Reader) (*UserPatchPayload, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL