adminuserrolemgmt

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminRoles

type AdminRoles struct {
	ID              int      `json:"id"`
	Rank            int      `json:"rank,omitempty"`
	Name            string   `json:"name,omitempty"`
	PolicyAccess    string   `json:"policyAccess,omitempty"`
	DashboardAccess string   `json:"dashboardAccess"`
	ReportAccess    string   `json:"reportAccess,omitempty"`
	AnalysisAccess  string   `json:"analysisAccess,omitempty"`
	UsernameAccess  string   `json:"usernameAccess,omitempty"`
	AdminAcctAccess string   `json:"adminAcctAccess,omitempty"`
	IsAuditor       bool     `json:"isAuditor,omitempty"`
	Permissions     []string `json:"permissions,omitempty"`
	IsNonEditable   bool     `json:"isNonEditable,omitempty"`
	LogsLimit       string   `json:"logsLimit,omitempty"`
	RoleType        string   `json:"roleType,omitempty"`
}

type AdminUsers

type AdminUsers struct {
	ID                            int                       `json:"id,omitempty"`
	LoginName                     string                    `json:"loginName,omitempty"`
	UserName                      string                    `json:"userName,omitempty"`
	Email                         string                    `json:"email,omitempty"`
	Comments                      string                    `json:"comments,omitempty"`
	Disabled                      bool                      `json:"disabled,omitempty"`
	Password                      string                    `json:"password,omitempty"`
	PasswordLastModifiedTime      int                       `json:"pwdLastModifiedTime,omitempty"`
	IsNonEditable                 bool                      `json:"isNonEditable,omitempty"`
	IsPasswordLoginAllowed        bool                      `json:"isPasswordLoginAllowed,omitempty"`
	IsPasswordExpired             bool                      `json:"isPasswordExpired,omitempty"`
	IsAuditor                     bool                      `json:"isAuditor,omitempty"`
	IsSecurityReportCommEnabled   bool                      `json:"isSecurityReportCommEnabled,omitempty"`
	IsServiceUpdateCommEnabled    bool                      `json:"isServiceUpdateCommEnabled,omitempty"`
	IsProductUpdateCommEnabled    bool                      `json:"isProductUpdateCommEnabled,omitempty"`
	IsExecMobileAppEnabled        bool                      `json:"isExecMobileAppEnabled,omitempty"`
	AdminScopeGroupMemberEntities []common.IDNameExtensions `json:"adminScopescopeGroupMemberEntities,omitempty"`
	AdminScopeEntities            []common.IDNameExtensions `json:"adminScopeScopeEntities,omitempty"`
	AdminScopeType                string                    `json:"adminScopeType,omitempty"`
	Role                          *Role                     `json:"role,omitempty"`
	ExecMobileAppTokens           []ExecMobileAppTokens     `json:"execMobileAppTokens,omitempty"`
}

type ExecMobileAppTokens

type ExecMobileAppTokens struct {
	Cloud       string `json:"cloud,omitempty"`
	OrgId       int    `json:"orgId,omitempty"`
	Name        string `json:"name,omitempty"`
	TokenId     string `json:"tokenId,omitempty"`
	Token       string `json:"token,omitempty"`
	TokenExpiry int    `json:"tokenExpiry,omitempty"`
	CreateTime  int    `json:"createTime,omitempty"`
	DeviceId    string `json:"deviceId,omitempty"`
	DeviceName  string `json:"deviceName,omitempty"`
}

type Role

type Role struct {
	ID           int                    `json:"id,omitempty"`
	Name         string                 `json:"name,omitempty"`
	IsNameL10Tag bool                   `json:"isNameL10nTag,omitempty"`
	Extensions   map[string]interface{} `json:"extensions,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) CreateAdminUser

func (service *Service) CreateAdminUser(adminUser AdminUsers) (*AdminUsers, error)

func (*Service) DeleteAdminUser

func (service *Service) DeleteAdminUser(adminUserID int) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(adminRoleId int) (*AdminRoles, error)

func (*Service) GetAPIRole added in v0.5.0

func (service *Service) GetAPIRole(apiRole string) (*AdminRoles, error)

func (*Service) GetAdminByUsername

func (service *Service) GetAdminByUsername(adminUsername string) (*AdminUsers, error)

func (*Service) GetAdminUsers

func (service *Service) GetAdminUsers(adminUserId int) (*AdminUsers, error)

func (*Service) GetAdminUsersByLoginName

func (service *Service) GetAdminUsersByLoginName(adminUsersLoginName string) (*AdminUsers, error)

func (*Service) GetAllAdminRoles added in v0.0.4

func (service *Service) GetAllAdminRoles() ([]AdminRoles, error)

func (*Service) GetAllAdminUsers added in v0.0.4

func (service *Service) GetAllAdminUsers() ([]AdminUsers, error)

func (*Service) GetAuditorRole added in v0.5.0

func (service *Service) GetAuditorRole(auditorRole string) (*AdminRoles, error)

func (*Service) GetByName

func (service *Service) GetByName(adminRoleName string) (*AdminRoles, error)

func (*Service) GetPartnerRole added in v0.5.0

func (service *Service) GetPartnerRole(partnerRole string) (*AdminRoles, error)

func (*Service) UpdateAdminUser

func (service *Service) UpdateAdminUser(adminUserID int, adminUser AdminUsers) (*AdminUsers, error)

Jump to

Keyboard shortcuts

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