microtenants

package
v3.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

func Update

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

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"`
	PrivilegedApprovalsEnabled bool          `json:"privilegedApprovalsEnabled"`
	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"`
}

func Create

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

func Get

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

func GetAll

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

func GetByName

func GetByName(ctx context.Context, service *zscaler.Service, microTenantName string) (*MicroTenant, *http.Response, error)

type MicroTenantSummary

type MicroTenantSummary struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Roles

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

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