emergencyaccess

package
v3.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate

func Activate(ctx context.Context, service *zscaler.Service, userID string) (*http.Response, error)

PUT - /mgmtconfig/v1/admin/customers/{customerId}/emergencyAccess/user/{userId}/activate

func Deactivate

func Deactivate(ctx context.Context, service *zscaler.Service, userID string) (*http.Response, error)

PUT - /mgmtconfig/v1/admin/customers/{customerId}/emergencyAccess/user/{userId}/deactivate

func Update

func Update(ctx context.Context, service *zscaler.Service, userID string, emergencyAccess *EmergencyAccess) (*http.Response, error)

Types

type EmergencyAccess

type EmergencyAccess struct {
	ActivatedOn       string `json:"activatedOn,omitempty"`
	AllowedActivate   bool   `json:"allowedActivate"`
	AllowedDeactivate bool   `json:"allowedDeactivate"`
	EmailID           string `json:"emailId,omitempty"`
	FirstName         string `json:"firstName,omitempty"`
	LastLoginTime     string `json:"lastLoginTime,omitempty"`
	LastName          string `json:"lastName,omitempty"`
	UpdateEnabled     bool   `json:"updateEnabled"`
	UserID            string `json:"userId,omitempty"`
	UserStatus        string `json:"userStatus,omitempty"`
	ActivateNow       bool   `json:"activateNow,omitempty" url:"activateNow,omitempty"`
}

func Create

func Create(ctx context.Context, service *zscaler.Service, emergencyAccess *EmergencyAccess) (*EmergencyAccess, *http.Response, error)

func Get

func Get(ctx context.Context, service *zscaler.Service, userID string) (*EmergencyAccess, *http.Response, error)

func GetAll

func GetAll(ctx context.Context, service *zscaler.Service) ([]EmergencyAccess, *http.Response, error)

func GetAllEmergencyAccessUsers

func GetAllEmergencyAccessUsers(ctx context.Context, service *zscaler.Service, baseRelativeURL string, pageSize int, initialPageId string) ([]EmergencyAccess, *http.Response, error)

func GetByEmailID

func GetByEmailID(ctx context.Context, service *zscaler.Service, emailID string) (*EmergencyAccess, *http.Response, error)

Jump to

Keyboard shortcuts

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