user

package
v0.0.0-...-8fb766c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 0 Imported by: 32

Documentation

Overview

Package user provides requests and response structures to achieve User API actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	To     string `json:"to,omitempty"`
	Method string `json:"method,omitempty"`
}

Participant

type CreateUserRequest

type CreateUserRequest struct {
	APIKey        string `json:"apiKey,omitempty"`
	Username      string `json:"username,omitempty"`
	Fullname      string `json:"fullname,omitempty"`
	Role          string `json:"role,omitempty"`
	Locale        string `json:"locale,omitempty"`
	SkypeUsername string `json:"skypeUsername,omitempty"`
	Timezone      string `json:"timezone,omitempty"`
}

CreateUserRequest provides necessary parameter structure for creating User

type CreateUserResponse

type CreateUserResponse struct {
	Id     string `json:"id"`
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Create user response structure

type DeleteUserRequest

type DeleteUserRequest struct {
	APIKey   string `url:"apiKey,omitempty"`
	Id       string `url:"id,omitempty"`
	Username string `url:"username,omitempty"`
}

DeleteUserRequest provides necessary parameter structure for deleting an User

type DeleteUserResponse

type DeleteUserResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Delete user response structure

type GetUserRequest

type GetUserRequest struct {
	APIKey   string `url:"apiKey,omitempty"`
	Id       string `url:"id,omitempty"`
	Username string `url:"username,omitempty"`
}

GetUserRequest provides necessary parameter structure for requesting User information

type GetUserResponse

type GetUserResponse struct {
	Id            string    `json:"id,omitempty"`
	Username      string    `json:"username,omitempty"`
	Fullname      string    `json:"fullname,omitempty"`
	SkypeUsername string    `json:"skypeUsername,omitempty"`
	Timezone      string    `json:"timezone,omitempty"`
	Locale        string    `json:"locale,omitempty"`
	State         string    `json:"state,omitempty"`
	Escalations   []string  `json:"escalations,omitempty"`
	Schedules     []string  `json:"schedules,omitempty"`
	Role          string    `json:"role,omitempty"`
	Groups        []string  `json:"groups,omitempty"`
	Contacts      []Contact `json:"contacts,omitempty"`
}

Get user structure

type ListUsersRequest

type ListUsersRequest struct {
	APIKey string `url:"apiKey,omitempty"`
}

ListUserRequest provides necessary parameter structure for listing Users

type ListUsersResponse

type ListUsersResponse struct {
	Users []GetUserResponse `json:"users,omitempty"`
}

List user response structure

type UpdateUserRequest

type UpdateUserRequest struct {
	Id            string `json:"id,omitempty"`
	APIKey        string `json:"apiKey,omitempty"`
	Fullname      string `json:"fullname,omitempty"`
	Role          string `json:"role,omitempty"`
	Locale        string `json:"locale,omitempty"`
	SkypeUsername string `json:"skypeUsername,omitempty"`
	Timezone      string `json:"timezone,omitempty"`
}

UpdateUserRequest provides necessary parameter structure for updating an User

type UpdateUserResponse

type UpdateUserResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Update user response structure

Jump to

Keyboard shortcuts

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