zsoap

package module
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

README

gozsoap

This is a Zimbra client library written in Go.

Usage

package main

import "fmt"
import "local/gozsoap"

func main() {
  url := "https://server.domain.tld:7071/service/admin/soap"
  login := "[email protected]"
  pwd := "secret"

  zcs := zsoap.ZAdmin{}
  zcs.Init(url, true)
  zcs.Login(login, pwd)

  byDomain := zsoap.NewByRequest("name", "domain.tld")

  accounts := zcs.GetAllAccounts(nil, &byDomain)
  fmt.Printf("%v", accounts)

  byAccount := zsoap.NewByRequest("name", "[email protected]")
  account := zcs.GetAccount(byAccount, []string{"zimbraMailHost", "zimbraMailTransport"})
  fmt.Printf("%v", account)

  servers := zcs.GetAllServers("")
  fmt.Printf("%v",servers)

  domains := zcs.GetAllDomains()
  fmt.Printf("%v", domains)

  coses := zcs.GetAllCos()
  fmt.Printf("%v", coses)

  qaccounts := zcs.GetQuotaUsage("domain.tld")
  fmt.Printf("%v", qaccounts)
}

Documentation

Index

Constants

View Source
const ID_STR = "id"
View Source
const NAME_STR = "name"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrNameResponse added in v1.1.0

type AttrNameResponse struct {
	Key   string `json:"name,omitempty"`
	Value string `json:"_content,omitempty"`
}

func (*AttrNameResponse) ToAttrResponse added in v1.2.0

func (anr *AttrNameResponse) ToAttrResponse() AttrResponse

type AttrNamesResponse added in v1.1.0

type AttrNamesResponse struct {
	Attrs []AttrNameResponse `json:"attr,omitempty"`
}

func (*AttrNamesResponse) ToAttrsResponse added in v1.2.0

func (anr *AttrNamesResponse) ToAttrsResponse() []AttrResponse

type AttrResponse

type AttrResponse struct {
	Key   string `json:"n,omitempty"`
	Value string `json:"_content,omitempty"`
}

type AuthRequest

type AuthRequest struct {
	Content AuthRequestContent `json:"AuthRequest,omitempty"`
}

func NewAuthRequest

func NewAuthRequest(name string, password string) (*AuthRequest, string)

type AuthRequestContent

type AuthRequestContent struct {
	Name     string `json:"name,attr"`
	Password string `json:"password,attr"`
	Urn      string `json:"_jsns,attr"`
}

type AuthResponse

type AuthResponse struct {
	Content AuthResponseContent `json:"AuthResponse,omitempty"`
}

type AuthResponseContent

type AuthResponseContent struct {
	TOKEN    []AuthResponseToken `json:"authToken"`
	Lifetime int                 `json:"lifetime"`
}

type AuthResponseToken

type AuthResponseToken struct {
	Content string `json:"_content"`
}

type BackupQueryRequest

type BackupQueryRequest struct {
	Content BackupQueryRequestContent `json:"BackupQueryRequest,omitempty"`
}

func NewBackupQueryRequest

func NewBackupQueryRequest() (*BackupQueryRequest, string)

type BackupQueryRequestContent

type BackupQueryRequestContent struct {
	Urn   string            `json:"_jsns,attr"`
	Query map[string]string `json:"query"`
}

type BackupQueryResponse

type BackupQueryResponse struct {
	Content BackupQueryResponseContent `json:"BackupQueryResponse,omitempty"`
}

type BackupQueryResponseContent

type BackupQueryResponseContent struct {
	TotalSpace  int       `json:"totalSpace,omitempty"`
	FreeSpace   int       `json:"freeSpace,omitempty"`
	NameSpace   string    `json:"_jsns,omitempty"`
	Backups     []ZBackup `json:"backup,omitempty"`
	MaxAccounts int
}

type ByRequest

type ByRequest struct {
	By    string `json:"by,omitempty"`
	Value string `json:"_content,omitempty"`
}

func NewByRequest

func NewByRequest(by string, value string) ByRequest

type Client

type Client struct {
	TOKEN   string
	Debug   bool
	Timeout time.Duration
	// contains filtered or unexported fields
}

Client SOAP client

func NewClient

func NewClient(url string, tls bool, header interface{}) *Client

NewClient return SOAP client

func (*Client) Call

func (s *Client) Call(soapAction string, request interface{}, response interface{}) error

Call SOAP client API call

func (*Client) RemoveTargetServer

func (s *Client) RemoveTargetServer()

func (*Client) SetHeader

func (s *Client) SetHeader()

func (*Client) SetTargetServer

func (s *Client) SetTargetServer(serverID string)

func (*Client) SetToken added in v1.2.0

func (s *Client) SetToken(token string)

type Envelope

type Envelope struct {
	Header *Header     `json:",omitempty"`
	Body   interface{} `json:"Body,omitempty"`
}

Envelope envelope

type Fault

type Fault struct {
	Content FaultContent `json:"Fault,omitempty"`
}

Fault fault

func (*Fault) Error

func (f *Fault) Error() string

type FaultContent

type FaultContent struct {
	Code   interface{} `json:"Code,omitempty"`
	Reason FaultReason `json:"Reason,omitempty"`
	Detail interface{} `json:"Detail,omitempty"`
}

type FaultReason

type FaultReason struct {
	Text string `json:"Text,omitempty"`
}

type GenericResponse

type GenericResponse struct {
	Name  string         `json:"name,omitempty"`
	ID    string         `json:"id,omitempty"`
	Attrs []AttrResponse `json:"a,omitempty"`
}

type GetAccountRequest

type GetAccountRequest struct {
	Content GetAccountRequestContent `json:"GetAccountRequest,omitempty"`
}

func NewGetAccountRequest

func NewGetAccountRequest(by ByRequest, attrs []string) (*GetAccountRequest, string)

type GetAccountRequestContent

type GetAccountRequestContent struct {
	Account ByRequest `json:"account,attr"`
	Urn     string    `json:"_jsns,attr"`
	Attrs   string    `json:"attrs,omitempty"`
}

type GetAccountResponse

type GetAccountResponse struct {
	Content GetAccountResponseContent `json:"GetAccountResponse,omitempty"`
}

type GetAccountResponseContent

type GetAccountResponseContent struct {
	Account []GenericResponse `json:"account,omitempty"`
}

type GetAllCosRequest

type GetAllCosRequest struct {
	Content GetAllCosRequestContent `json:"GetAllCosRequest,omitempty"`
}

func NewGetAllCosRequest

func NewGetAllCosRequest() (*GetAllCosRequest, string)

type GetAllCosRequestContent

type GetAllCosRequestContent struct {
	Urn string `json:"_jsns,attr"`
}

type GetAllCosResponse

type GetAllCosResponse struct {
	Content GetAllCosResponseContent `json:"GetAllCosResponse,omitempty"`
}

type GetAllCosResponseContent

type GetAllCosResponseContent struct {
	Cos []GenericResponse `json:"cos,omitempty"`
}

type GetAllDomainsRequest

type GetAllDomainsRequest struct {
	Content GetAllDomainsRequestContent `json:"GetAllDomainsRequest,omitempty"`
}

func NewGetAllDomainsRequest

func NewGetAllDomainsRequest() (*GetAllDomainsRequest, string)

type GetAllDomainsRequestContent

type GetAllDomainsRequestContent struct {
	Urn string `json:"_jsns,attr"`
}

type GetAllDomainsResponse

type GetAllDomainsResponse struct {
	Content GetAllDomainsResponseContent `json:"GetAllDomainsResponse,omitempty"`
}

type GetAllDomainsResponseContent

type GetAllDomainsResponseContent struct {
	Domain []GenericResponse `json:"domain,omitempty"`
}

type GetAllServersRequest

type GetAllServersRequest struct {
	Content GetAllServersRequestContent `json:"GetAllServersRequest,omitempty"`
}

func NewGetAllServersRequest

func NewGetAllServersRequest(service string) (*GetAllServersRequest, string)

type GetAllServersRequestContent

type GetAllServersRequestContent struct {
	Urn     string `json:"_jsns,attr"`
	Service string `json:"service,omitempty"`
}

type GetAllServersResponse

type GetAllServersResponse struct {
	Content GetAllServersResponseContent `json:"GetAllServersResponse,omitempty"`
}

type GetAllServersResponseContent

type GetAllServersResponseContent struct {
	Server []GenericResponse `json:"server,omitempty"`
}

type GetDomainRequest added in v1.3.0

type GetDomainRequest struct {
	Content GetDomainRequestContent `json:"GetDomainRequest,omitempty"`
}

func NewGetDomainRequest added in v1.3.0

func NewGetDomainRequest(by ByRequest, attrs []string) (*GetDomainRequest, string)

type GetDomainRequestContent added in v1.3.0

type GetDomainRequestContent struct {
	Domain ByRequest `json:"domain,attr"`
	Urn    string    `json:"_jsns,attr"`
	Attrs  string    `json:"attrs,omitempty"`
}

type GetDomainResponse added in v1.3.0

type GetDomainResponse struct {
	Content GetDomainResponseContent `json:"GetDomainResponse,omitempty"`
}

type GetDomainResponseContent added in v1.3.0

type GetDomainResponseContent struct {
	Domain []GenericResponse `json:"domain,omitempty"`
}

type GetLicenseRequest added in v1.1.0

type GetLicenseRequest struct {
	Content GetLicenseRequestContent `json:"GetLicenseRequest,omitempty"`
}

func NewLicenseRequest added in v1.1.0

func NewLicenseRequest() (*GetLicenseRequest, string)

type GetLicenseRequestContent added in v1.1.0

type GetLicenseRequestContent struct {
	Urn string `json:"_jsns,attr"`
}

type GetLicenseResponse added in v1.1.0

type GetLicenseResponse struct {
	Content GetLicenseResponseContent `json:"GetLicenseResponse,omitempty"`
}

type GetLicenseResponseContent added in v1.1.0

type GetLicenseResponseContent struct {
	License    []AttrNamesResponse `json:"license,omitempty"`
	Activation []AttrNamesResponse `json:"activation,omitempty"`
	Info       []AttrNamesResponse `json:"info,omitempty"`
}

type GetQuotaUsageRequest

type GetQuotaUsageRequest struct {
	Content GetQuotaUsageRequestContent `json:"GetQuotaUsageRequest,omitempty"`
}

func NewGetQuotaUsageRequest

func NewGetQuotaUsageRequest(domain string, allServers int, limit int, offset int, sortBy string, sortAscending int, refresh int) (*GetQuotaUsageRequest, string)

type GetQuotaUsageRequestContent

type GetQuotaUsageRequestContent struct {
	Urn           string `json:"_jsns,attr"`
	Servers       int    `json:"allServers,omitempty"`
	Domain        string `json:"domain,omitempty"`
	Limit         int    `json:"limit,omitempty"`
	Offset        int    `json:"offset,omitempty"`
	SortBy        string `json:"sortBy,omitempty"`
	SortAscending int    `json:"sortAscending,omitempty"`
	Refresh       int    `json:"refresh,omitempty"`
}

type GetQuotaUsageResponse

type GetQuotaUsageResponse struct {
	Content GetQuotaUsageResponseContent `json:"GetQuotaUsageResponse,omitempty"`
}

type GetQuotaUsageResponseContent

type GetQuotaUsageResponseContent struct {
	Account []QuotaResponse `json:"account,omitempty"`
}

type GetServerRequest added in v1.8.0

type GetServerRequest struct {
	Content GetServerRequestContent `json:"GetServerRequest,omitempty"`
}

func NewGetServerRequest added in v1.8.0

func NewGetServerRequest(by ByRequest, applyConfig int, attrs []string) (*GetServerRequest, string)

type GetServerRequestContent added in v1.8.0

type GetServerRequestContent struct {
	Server      ByRequest `json:"server,attr"`
	Urn         string    `json:"_jsns,attr"`
	ApplyConfig int       `json:"applyConfig,omitempty"`
	Attrs       string    `json:"attrs,omitempty"`
}

type GetServerResponse added in v1.8.0

type GetServerResponse struct {
	Content GetServerResponseContent `json:"GetServerResponse,omitempty"`
}

type GetServerResponseContent added in v1.8.0

type GetServerResponseContent struct {
	Server []GenericResponse `json:"server,omitempty"`
}
type Header struct {
	Content interface{} `json:"context,omitempty"`
}

Header header

type HeaderToken

type HeaderToken struct {
	TOKEN    string `json:"authToken"`
	Urn      string `json:"_jsns,attr"`
	ServerID string `json:"targetServer,omitempty"`
}

type ModifyAccountRequest

type ModifyAccountRequest struct {
	Content ModifyAccountRequestContent `json:"ModifyAccountRequest,omitempty"`
}

func NewModifyAccountRequest

func NewModifyAccountRequest(id string, attrs map[string]string) (*ModifyAccountRequest, string)

type ModifyAccountRequestContent

type ModifyAccountRequestContent struct {
	Urn   string         `json:"_jsns,attr"`
	ID    string         `json:"id,omitempty"`
	Attrs []AttrResponse `json:"a,omitempty"`
}

type ModifyAccountResponse

type ModifyAccountResponse struct {
	Content ModifyAccountResponseContent `json:"ModifyAccountResponse,omitempty"`
}

type ModifyAccountResponseContent

type ModifyAccountResponseContent struct {
	Account []GenericResponse `json:"account,omitempty"`
}

type QuotaResponse

type QuotaResponse struct {
	Name  string `json:"name,omitempty"`
	ID    string `json:"id,omitempty"`
	Used  int    `json:"used,omitempty"`
	Limit int    `json:"limit,omitempty"`
}

type SearchDirectoryParams

type SearchDirectoryParams struct {
	Urn           string `json:"_jsns,attr"`
	Query         string `json:"query,omitempty"`
	MaxResults    int    `json:"maxResults,omitempty"`
	Limit         int    `json:"limit,omitempty"`
	Offset        int    `json:"offset,omitempty"`
	Domain        string `json:"domain,omitempty"`
	ApplyCos      int    `json:"applyCos,omitempty"`
	ApplyConfig   int    `json:"applyConfig,omitempty"`
	SortBy        string `json:"sortBy,omitempty"`
	Types         string `json:"types,omitempty"`
	SortAscending int    `json:"sortAscending,omitempty"`
	CountOnly     int    `json:"countOnly,omitempty"`
	Attrs         string `json:"attrs,omitempty"`
}

type SearchDirectoryRequest

type SearchDirectoryRequest struct {
	Content SearchDirectoryParams `json:"SearchDirectoryRequest,omitempty"`
}

func NewSearchDirectoryRequest

func NewSearchDirectoryRequest(params *SearchDirectoryParams) (*SearchDirectoryRequest, string)

type SearchDirectoryResponse

type SearchDirectoryResponse struct {
	Content SearchDirectoryResponseContent `json:"SearchDirectoryResponse,omitempty"`
}

type SearchDirectoryResponseContent

type SearchDirectoryResponseContent struct {
	Count        int               `json:"num,omitempty"`
	Accounts     []GenericResponse `json:"account,omitempty"`
	Dls          []GenericResponse `json:"dl,omitempty"`
	Domains      []GenericResponse `json:"domain,omitempty"`
	Calresources []GenericResponse `json:"calresource,omitempty"`
	Coses        []GenericResponse `json:"cos,omitempty"`
}

type ZAccount

type ZAccount struct {
	Client                              *Client
	ID                                  string
	Name                                string
	Used                                int
	Limit                               int
	ZimbraMailHost                      string
	ZimbraMailTransport                 string
	ZimbraCOSId                         string
	ZimbraMailStatus                    string
	ZimbraMailQuota                     string
	ZimbraAccountStatus                 string
	ZimbraFeatureMobileSyncEnabled      bool
	ZimbraFeatureMAPIConnectorEnabled   bool
	ZimbraLastLogonTimestamp            string
	ZimbraPrefMailForwardingAddress     []string
	ZimbraMailForwardingAddress         []string
	ZimbraPrefMailLocalDeliveryDisabled bool
}

func NewAccount

func NewAccount(resp GenericResponse, client *Client) *ZAccount

func NewAccountQuota

func NewAccountQuota(resp QuotaResponse, client *Client) *ZAccount

func (*ZAccount) DomainName

func (a *ZAccount) DomainName() string

func (*ZAccount) LastLogon added in v1.8.0

func (a *ZAccount) LastLogon() (time.Time, error)

func (*ZAccount) Modify

func (a *ZAccount) Modify(attrs map[string]string) error

type ZAdmin

type ZAdmin struct {
	AuthToken            string
	Client               *Client
	RetryWaitingDuration time.Duration
}

func (*ZAdmin) Debug added in v1.1.0

func (s *ZAdmin) Debug()

func (*ZAdmin) GetAccount

func (s *ZAdmin) GetAccount(byAccount ByRequest, attrs []string) (*ZAccount, error)

func (*ZAdmin) GetAccountById added in v1.2.0

func (s *ZAdmin) GetAccountById(id string, attrs []string) (*ZAccount, error)

func (*ZAdmin) GetAccountByName added in v1.2.0

func (s *ZAdmin) GetAccountByName(name string, attrs []string) (*ZAccount, error)

func (*ZAdmin) GetAllBackups

func (s *ZAdmin) GetAllBackups() ([]ZBackup, error)

func (*ZAdmin) GetAllCos

func (s *ZAdmin) GetAllCos() ([]ZCos, error)

func (*ZAdmin) GetAllDomains

func (s *ZAdmin) GetAllDomains() ([]ZDomain, error)

func (*ZAdmin) GetAllServers

func (s *ZAdmin) GetAllServers(service string) ([]ZServer, error)

func (*ZAdmin) GetDomain added in v1.3.0

func (s *ZAdmin) GetDomain(by ByRequest, attrs []string) (*ZDomain, error)

func (*ZAdmin) GetDomainById added in v1.3.0

func (s *ZAdmin) GetDomainById(id string, attrs []string) (*ZDomain, error)

func (*ZAdmin) GetDomainByName added in v1.3.0

func (s *ZAdmin) GetDomainByName(name string, attrs []string) (*ZDomain, error)

func (*ZAdmin) GetLicense added in v1.1.0

func (s *ZAdmin) GetLicense() (*ZLicense, error)

func (*ZAdmin) GetQuotaUsage

func (s *ZAdmin) GetQuotaUsage(serverId string, domain string, isAllServers bool) ([]ZAccount, error)

func (*ZAdmin) GetServer added in v1.8.0

func (s *ZAdmin) GetServer(by ByRequest, applyConfig int, attrs []string) (*ZServer, error)

func (*ZAdmin) GetServerById added in v1.8.0

func (s *ZAdmin) GetServerById(id string, applyConfig int, attrs []string) (*ZServer, error)

func (*ZAdmin) GetServerByName added in v1.8.0

func (s *ZAdmin) GetServerByName(name string, applyConfig int, attrs []string) (*ZServer, error)

func (*ZAdmin) Init

func (s *ZAdmin) Init(url string, isTLS bool)

func (*ZAdmin) Login

func (s *ZAdmin) Login(name string, password string) error

func (*ZAdmin) SearchDirectory added in v1.6.0

func (s *ZAdmin) SearchDirectory(query string, maxResults int, limit int, offset int, domain string, applyCos int, applyConfig int, sortBy string, types string, sortAscending int, attrs string) ([]ZAccount, []ZDistributionList, []ZDomain, []ZCos, error)

func (*ZAdmin) SearchDirectoryAll added in v1.6.0

func (s *ZAdmin) SearchDirectoryAll(query string, domain string, applyCos int, applyConfig int, sortBy string, types string, sortAscending int, attrs string) ([]ZAccount, []ZDistributionList, []ZDomain, []ZCos, error)

func (*ZAdmin) SearchDirectoryCount added in v1.6.0

func (s *ZAdmin) SearchDirectoryCount(query string, domain string, types string) (int, error)

type ZBackup

type ZBackup struct {
	Label      string           `json:"label,omitempty"`
	Type       string           `json:"type,omitempty"`
	Aborted    bool             `json:"aborted,omitempty"`
	Start      int              `json:"start,omitempty"`
	End        int              `json:"end,omitempty"`
	MinRedoSeq int              `json:"minRedoSeq,omitempty"`
	MaxRedoSeq int              `json:"maxRedoSeq,omitempty"`
	Live       bool             `json:"live,omitempty"`
	Accounts   []ZBackupAccount `json:"accounts,omitempty"`
}

func (*ZBackup) Account

func (b *ZBackup) Account() *ZBackupAccount

func (*ZBackup) Date

func (b *ZBackup) Date() string

type ZBackupAccount

type ZBackupAccount struct {
	Total           int `json:"total,omitempty"`
	CompletionCount int `json:"completionCount,omitempty"`
}

func (*ZBackupAccount) DiffTotalCompletionCount

func (a *ZBackupAccount) DiffTotalCompletionCount() int

type ZCos

type ZCos struct {
	Client                            *Client
	ID                                string
	Name                              string
	Description                       string
	ZimbraMailQuota                   int
	ZimbraFeatureMobileSyncEnabled    bool
	ZimbraFeatureMAPIConnectorEnabled bool
}

func NewCos

func NewCos(resp GenericResponse, client *Client) *ZCos

type ZDistributionList added in v1.8.0

type ZDistributionList struct {
	Client                                             *Client
	ID                                                 string
	Name                                               string
	ZimbraACE                                          []string
	ZimbraCreateTimestamp                              string
	ZimbraMailStatus                                   string
	ZimbraDistributionListSendShareMessageToNewMembers bool
	ZimbraMailHost                                     string
	ZimbraMailForwardingAddress                        []string
	ZimbraMailAlias                                    []string
	ZimbraHideInGal                                    bool
}

func NewDistributionList added in v1.8.0

func NewDistributionList(resp GenericResponse, client *Client) *ZDistributionList

func (*ZDistributionList) DomainName added in v1.8.0

func (a *ZDistributionList) DomainName() string

type ZDomain

type ZDomain struct {
	Client                                                     *Client
	ID                                                         string
	Name                                                       string
	ZimbraAdminConsoleCatchAllAddressEnabled                   bool
	ZimbraAdminConsoleDNSCheckEnabled                          bool
	ZimbraAdminConsoleLDAPAuthEnabled                          bool
	ZimbraAdminConsoleSkinEnabled                              bool
	ZimbraAggregateQuotaLastUsage                              int
	ZimbraAutoProvBatchSize                                    int
	ZimbraAutoProvNotificationBody                             string
	ZimbraAutoProvNotificationSubject                          string
	ZimbraBasicAuthRealm                                       string
	ZimbraChatConversationAuditEnabled                         bool
	ZimbraCommunityHomeURL                                     string
	ZimbraCommunityUsernameMapping                             string
	ZimbraCreateTimestamp                                      string
	ZimbraDomainAggregateQuota                                 int
	ZimbraDomainAggregateQuotaPolicy                           string
	ZimbraDomainAggregateQuotaWarnPercent                      int
	ZimbraDomainDefaultCOSId                                   string
	ZimbraDomainMandatoryMailSignatureEnabled                  bool
	ZimbraDomainName                                           string
	ZimbraDomainStatus                                         string
	ZimbraDomainType                                           string
	ZimbraExportMaxDays                                        int
	ZimbraExternalShareInvitationUrlExpiration                 int
	ZimbraFileUploadMaxSizePerFile                             int
	ZimbraFreebusyExchangeCachedInterval                       string
	ZimbraFreebusyExchangeCachedIntervalStart                  string
	ZimbraFreebusyExchangeServerType                           string
	ZimbraGalAccountId                                         string
	ZimbraGalAlwaysIncludeLocalCalendarResources               bool
	ZimbraGalAutoCompleteLdapFilter                            string
	ZimbraGalGroupIndicatorEnabled                             bool
	ZimbraGalInternalSearchBase                                string
	ZimbraGalLdapAttrMap                                       []string
	ZimbraGalLdapPageSize                                      int
	ZimbraGalLdapValueMap                                      []string
	ZimbraGalMaxResults                                        int
	ZimbraGalSyncLdapPageSize                                  int
	ZimbraGalSyncMaxConcurrentClients                          int
	ZimbraGalSyncSizeLimit                                     int
	ZimbraGalSyncTimestampFormat                               string
	ZimbraGalTokenizeAutoCompleteKey                           string
	ZimbraGalTokenizeSearchKey                                 string
	ZimbraId                                                   string
	ZimbraInternalSharingCrossDomainEnabled                    bool
	ZimbraLdapGalSyncDisabled                                  bool
	ZimbraMailDomainQuota                                      int
	ZimbraMailSSLClientCertPrincipalMap                        string
	ZimbraMailStatus                                           string
	ZimbraMobileMetadataMaxSizeEnabled                         bool
	ZimbraReverseProxyClientCertMode                           string
	ZimbraReverseProxyExternalRouteIncludeOriginalAuthusername bool
	ZimbraSkinLogoURL                                          string
	ZimbraWebClientMaxInputBufferLength                        int
	ZimbraWebClientStaySignedInDisabled                        bool
	ZimbraWebClientSupportedHelps                              []string
	ZimbraZimletDataSensitiveInMixedModeDisabled               bool
}

func NewDomain

func NewDomain(resp GenericResponse, client *Client) *ZDomain

type ZLicense added in v1.1.0

type ZLicense struct {
	AccountsLimit                        int
	ArchivingAccountsLimit               int
	AttachmentConversionEnabled          bool
	AttachmentIndexingAccountsLimit      int
	BackupEnabled                        bool
	CrossMailboxSearchEnabled            bool
	EwsAccountsLimit                     int
	HierarchicalStorageManagementEnabled bool
	ISyncAccountsLimit                   int
	InstallType                          string
	IssuedOn                             string
	IssuedToEmail                        string
	IssuedToName                         string
	LicenseId                            string
	MAPIConnectorAccountsLimit           int
	MobileSyncAccountsLimit              int
	MobileSyncEnabled                    bool
	ResellerName                         string
	SMIMEAccountsLimit                   int
	TouchClientsAccountsLimit            int
	TwoFactorAuthAccountsLimit           int
	ValidFrom                            string
	ValidUntil                           string
	VoiceAccountsLimit                   int
	ZSSAccountsLimit                     int
	ZTalkAccountsLimit                   int
	ZXAccountsLimit                      int
	ZXDesktopAccountsLimit               int
	ZXWebAccountsLimit                   int
	ActivationId                         string
	Fingerprint                          string
	LastUpdate                           string
	Version                              string
	Status                               string
	TotalAccounts                        int
	ArchivingAccounts                    int
	ServerTime                           int
}

func NewLicense added in v1.1.0

func NewLicense(resp GetLicenseResponseContent) *ZLicense

type ZServer

type ZServer struct {
	Client                *Client
	ID                    string
	Name                  string
	ZimbraCreateTimestamp string
	ZimbraServiceEnabled  []string
	ZimbraSmtpHostname    []string
	ZimbraSmtpPort        int
}

func NewServer

func NewServer(resp GenericResponse, client *Client) *ZServer

func (*ZServer) CreatedAt

func (server *ZServer) CreatedAt() int

Jump to

Keyboard shortcuts

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