microtenants

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroTenant

type MicroTenant struct {
	ID                      string        `json:"id,omitempty"`
	Name                    string        `json:"name,omitempty"`
	Description             string        `json:"description,omitempty"`
	Enabled                 bool          `json:"enabled"`
	CriteriaAttribute       string        `json:"criteriaAttribute,omitempty"`
	CriteriaAttributeValues []string      `json:"criteriaAttributeValues,omitempty"`
	Operator                string        `json:"operator,omitempty"`
	Priority                string        `json:"priority,omitempty"`
	CreationTime            string        `json:"creationTime,omitempty"`
	ModifiedBy              string        `json:"modifiedBy,omitempty"`
	ModifiedTime            string        `json:"modifiedTime,omitempty"`
	Roles                   []Roles       `json:"roles,omitempty"`
	UserResource            *UserResource `json:"user,omitempty"`
}

type Roles

type Roles struct {
	ID         string `json:"id"`
	Name       string `json:"name,omitempty"`
	CustomRole bool   `json:"customRole,omitempty"`
}

type Service

type Service struct {
	Client *zpa.Client
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (service *Service) Create(microTenant MicroTenant) (*MicroTenant, *http.Response, error)

func (*Service) Delete

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

func (*Service) Get

func (service *Service) Get(id string) (*MicroTenant, *http.Response, error)

func (*Service) GetAll

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

func (*Service) GetByName

func (service *Service) GetByName(microTenantName string) (*MicroTenant, *http.Response, error)

func (*Service) Update

func (service *Service) Update(microTenantID string, microTenant *MicroTenant) (*http.Response, error)

type UserResource

type UserResource struct {
	ID                 string   `json:"id"`
	Name               string   `json:"name,omitempty"`
	Description        string   `json:"description,omitempty"`
	Enabled            bool     `json:"enabled,omitempty"`
	Comments           string   `json:"comments,omitempty"`
	CustomerID         string   `json:"customerId,omitempty"`
	DeliveryTag        string   `json:"deliveryTag,omitempty"`
	DisplayName        string   `json:"displayName,omitempty"`
	Email              string   `json:"email,omitempty"`
	Eula               string   `json:"eula,omitempty"`
	ForcePwdChange     bool     `json:"forcePwdChange,omitempty"`
	GroupIDs           []string `json:"groupIds,omitempty"`
	IAMUserID          string   `json:"iamUserId,omitempty"`
	IsEnabled          bool     `json:"isEnabled,omitempty"`
	IsLocked           bool     `json:"isLocked,omitempty"`
	LanguageCode       string   `json:"languageCode,omitempty"`
	LocalLoginDisabled bool     `json:"localLoginDisabled,omitempty"`
	OneIdentityUser    bool     `json:"oneIdentityUser,omitempty"`
	OperationType      string   `json:"operationType,omitempty"`
	Password           string   `json:"password,omitempty"`
	PhoneNumber        string   `json:"phoneNumber,omitempty"`
	PinSession         bool     `json:"pinSession,omitempty"`
	RoleID             string   `json:"roleId,omitempty"`
	MicrotenantID      string   `json:"microtenantId,omitempty"`
	MicrotenantName    string   `json:"microtenantName,omitempty"`
	SyncVersion        string   `json:"syncVersion,omitempty"`
	Timezone           string   `json:"timezone,omitempty"`
	TmpPassword        string   `json:"tmpPassword,omitempty"`

	// This field is mandatory if twoFactorAuthEnabled is set.
	TokenID string `json:"tokenId,omitempty"`

	TwoFactorAuthEnabled bool `json:"twoFactorAuthEnabled,omitempty"`

	// This field is mandatory if twoFactorAuthEnabled is set. Accepted values: YUBIKEY/TOTP
	TwoFactorAuthType string `json:"twoFactorAuthType,omitempty"`

	// Mandatory only for POST. Not mandatory for PUT/DELETE requests.
	Username string `json:"username,omitempty"`

	// Only applicable for a GET request. Ignored in PUT/POST/DELETE requests.
	CreationTime string `json:"creationTime,omitempty"`

	// Only applicable for a GET request. Ignored in PUT/POST/DELETE requests.
	ModifiedBy string `json:"modifiedBy,omitempty"`

	// Only applicable for a GET request. Ignored in PUT/POST/DELETE requests.
	ModifiedTime string `json:"modifiedTime,omitempty"`
}

Jump to

Keyboard shortcuts

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