praapproval

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applications

type Applications struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

The List of application segments

type PrivilegedApproval

type PrivilegedApproval struct {
	// The unique identifier of the privileged approval.
	ID string `json:"id,omitempty"`

	// The email address of the user that you are assigning the privileged approval to.
	EmailIDs []string `json:"emailIds,omitempty"`

	// The start date that the user has access to the privileged approval.
	StartTime string `json:"startTime,omitempty"`

	// StartTime    time.Time      `json:"startTime,omitempty"`
	// EndTime      time.Time      `json:"endTime,omitempty"`
	// The end date that the user no longer has access to the privileged approval.
	EndTime string `json:"endTime,omitempty"`

	// The status of the privileged approval. The supported values are:
	// INVALID: The privileged approval is invalid.
	// ACTIVE: The privileged approval is currently available for the user.
	// FUTURE: The privileged approval is available for a user at a set time in the future.
	// EXPIRED: The privileged approval is no longer available for the user.
	Status string `json:"status,omitempty"`

	// The time the privileged approval is created.
	CreationTime string `json:"creationTime,omitempty"`

	// The unique identifier of the tenant who modified the privileged approval.
	ModifiedBy string `json:"modifiedBy,omitempty"`

	// The time the privileged approval is modified.
	ModifiedTime string `json:"modifiedTime,omitempty"`

	// The unique identifier of the Microtenant for the ZPA tenant.
	// If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant.
	// Pass microtenantId as null to retrieve data from all customers associated with the tenant.
	MicroTenantID string `json:"microtenantId,omitempty"`

	// The name of the Microtenant.
	MicroTenantName string `json:"microtenantName,omitempty"`

	WorkingHours *WorkingHours `json:"workingHours"`
	// The List of application segments
	Applications []Applications `json:"applications"`
}

type Service

type Service struct {
	Client *zpa.Client
	// contains filtered or unexported fields
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (service *Service) Create(privilegedApproval *PrivilegedApproval) (*PrivilegedApproval, *http.Response, error)

func (*Service) Delete

func (service *Service) Delete(approvalID string) (*http.Response, error)

func (*Service) DeleteExpired

func (service *Service) DeleteExpired() (*http.Response, error)

func (*Service) Get

func (service *Service) Get(approvalID string) (*PrivilegedApproval, *http.Response, error)

func (*Service) GetAll

func (service *Service) GetAll() ([]PrivilegedApproval, *http.Response, error)

func (*Service) GetByEmailID

func (service *Service) GetByEmailID(emailID string) (*PrivilegedApproval, *http.Response, error)

func (*Service) Update

func (service *Service) Update(approvalID string, privilegedApproval *PrivilegedApproval) (*http.Response, error)

func (*Service) WithMicroTenant

func (service *Service) WithMicroTenant(microTenantID string) *Service

type WorkingHours

type WorkingHours struct {
	// The days of the week that you want to enable the privileged approval.
	Days []string `json:"days,omitempty"`

	// The start time that the user has access to the privileged approval.
	StartTime string `json:"startTime,omitempty"`

	// The end time that the user no longer has access to the privileged approval.
	EndTime string `json:"endTime,omitempty"`

	//The cron expression provided to configure the privileged approval start time working hours.
	// The standard cron expression format is [Seconds][Minutes][Hours][Day of the Month][Month][Day of the Week][Year].
	// For example, 0 15 10 ? * MON-FRI represents the start time working hours for 10:15 AM every Monday, Tuesday, Wednesday, Thursday and Friday.
	StartTimeCron string `json:"startTimeCron,omitempty"`

	// The cron expression provided to configure the privileged approval end time working hours.
	// The standard cron expression format is [Seconds][Minutes][Hours][Day of the Month][Month][Day of the Week][Year].
	// For example, 0 15 10 ? * MON-FRI represents the end time working hours for 10:15 AM every Monday, Tuesday, Wednesday, Thursday and Friday.
	EndTimeCron string `json:"endTimeCron,omitempty"`

	// The time zone for the time window of a privileged approval.
	TimeZone string `json:"timeZone,omitempty"`
}

Jump to

Keyboard shortcuts

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