responses

package
v0.1.7-beta Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUser

type AddUser struct {
	EnableUser              bool            `json:"enableUser"`
	ChangePassOnNextLogon   bool            `json:"changePassOnNextLogon"`
	ExpiryDate              int             `json:"expiryDate"`
	Suspended               bool            `json:"suspended"`
	LastSuccessfulLoginDate int             `json:"lastSuccessfulLoginDate"`
	UnAuthorizedInterfaces  []string        `json:"unAuthorizedInterfaces"`
	AuthenticationMethod    []string        `json:"authenticationMethod"`
	PasswordNeverExpires    bool            `json:"passwordNeverExpires"`
	DistinguishedName       string          `json:"distinguishedName"`
	Description             string          `json:"description"`
	BusinessAddress         BusinessAddress `json:"businessAddress,omitempty"`
	Internet                Internet        `json:"internet,omitempty"`
	Phones                  Phones          `json:"phones,omitempty"`
	PersonalDetails         PersonalDetails `json:"personalDetails,omitempty"`
	ID                      int             `json:"id"`
	Username                string          `json:"username"`
	Source                  string          `json:"source"`
	UserType                string          `json:"userType"`
	ComponentUser           bool            `json:"componentUser"`
	VaultAuthorization      []string        `json:"vaultAuthorization"`
	Location                string          `json:"location"`
}

AddUser response

type AuthenticationMethods

type AuthenticationMethods struct {
	Enabled bool   `json:"Enabled"`
	ID      string `json:"Id"`
}

AuthenticationMethods feeds into ServerVerify

type BusinessAddress

type BusinessAddress struct {
	WorkStreet  string `json:"workStreet"`
	WorkCity    string `json:"workCity"`
	WorkState   string `json:"workState"`
	WorkZip     string `json:"workZip"`
	WorkCountry string `json:"workCountry"`
}

BusinessAddress of user

type GetAccount

type GetAccount struct {
	CategoryModificationTime  int                     `json:"categoryModificationTime"`
	ID                        string                  `json:"id"`
	Name                      string                  `json:"name"`
	Address                   string                  `json:"address"`
	UserName                  string                  `json:"userName"`
	PlatformID                string                  `json:"platformId"`
	SafeName                  string                  `json:"safeName"`
	SecretType                string                  `json:"secretType"`
	PlatformAccountProperties map[string]string       `json:"platformAccountProperties"`
	SecretManagement          shared.SecretManagement `json:"secretManagement"`
	CreatedTime               int                     `json:"createdTime"`
}

GetAccount response from getting specific account details

type Internet

type Internet struct {
	HomePage      string `json:"homePage"`
	HomeEmail     string `json:"homeEmail"`
	BusinessEmail string `json:"businessEmail"`
	OtherEmail    string `json:"otherEmail"`
}

Internet of user

type ListAccount

type ListAccount struct {
	Value []GetAccount `json:"value"`
	Count int          `json:"count"`
}

ListAccount response from listing accounts

type ListApplication

type ListApplication struct {
	AccessPermittedFrom                     int       `json:"AccessPermittedFrom"`
	AccessPermittedTo                       int       `json:"AccessPermittedTo"`
	AllowExtendedAuthenticationRestrictions bool      `json:"AllowExtendedAuthenticationRestrict"`
	AppID                                   string    `json:"AppID"`
	BusinessOwnerEmail                      string    `json:"BusinessOwnerEmail"`
	BusinessOwnerFName                      string    `json:"BusinessOwnerFName"`
	BusinessOwnerLName                      string    `json:"BusinessOwnerLName"`
	BusinessOwnerPhone                      string    `json:"BusinessOwnerPhone"`
	Description                             string    `json:"Description"`
	Disabled                                bool      `json:"Disabled"`
	ExpirationDate                          time.Time `json:"ExpirationDate"`
	Location                                string    `json:"Location"`
}

ListApplication contains all specific application data for ListApplicationsResponse

type ListApplicationAuthenticationMethods

type ListApplicationAuthenticationMethods struct {
	Authentication []ListAuthentication `json:"authentication"`
}

ListApplicationAuthenticationMethods contains all auth methods for a specific App ID

type ListApplications

type ListApplications struct {
	Application []ListApplication `json:"application"`
}

ListApplications contains all applications and app data returned

type ListAuthentication

type ListAuthentication struct {
	AllowInternalScripts bool   `json:"AllowInternalScripts,omitempty"`
	AppID                string `json:"AppID"`
	AuthType             string `json:"AuthType"`
	AuthValue            string `json:"AuthValue"`
	Comment              string `json:"Comment,omitempty"`
	IsFolder             bool   `json:"IsFolder,omitempty"`
	AuthID               string `json:"authID"`
}

ListAuthentication contains details of the authentication method listed

type ListSafe

type ListSafe struct {
	SafeURLId   string `json:"SafeUrlId"`
	SafeName    string `json:"SafeName"`
	Description string `json:"Description,omitempty"`
	Location    string `json:"Location"`
}

ListSafe contains the safe details of every safe the current user can read for ListSafesResponse struct

type ListSafeMembers

type ListSafeMembers struct {
	Members []Members `json:"members"`
}

ListSafeMembers contains data of all members of a specific safe

type ListSafes

type ListSafes struct {
	Safes []ListSafe `json:"value"`
}

ListSafes contains an array of all safes the current user can read

type ListUsers

type ListUsers struct {
	Users []UserResponse `json:"Users"`
	Total int            `json:"Total"`
}

ListUsers response when listing users

type Members

type Members struct {
	Permissions Permissions `json:"Permissions"`
	Username    string      `json:"UserName"`
}

Members contains all safe member username/group name and their permissions

type Permissions

type Permissions struct {
	Add                 bool `json:"Add"`
	AddRenameFolder     bool `json:"AddRenameFolder"`
	BackupSafe          bool `json:"BackupSafe"`
	Delete              bool `json:"Delete"`
	DeleteFolder        bool `json:"DeleteFolder"`
	ListContent         bool `json:"ListContent"`
	ManageSafe          bool `json:"ManageSafe"`
	ManageSafeMembers   bool `json:"ManageSafeMembers"`
	MoveFilesAndFolders bool `json:"MoveFilesAndFolders"`
	Rename              bool `json:"Rename"`
	RestrictedRetrieve  bool `json:"RestrictedRetrieve"`
	Retrieve            bool `json:"Retrieve"`
	Unlock              bool `json:"Unlock"`
	Update              bool `json:"Update"`
	UpdateMetadata      bool `json:"UpdateMetadata"`
	ValidateSafeContent bool `json:"ValidateSafeContent"`
	ViewAudit           bool `json:"ViewAudit"`
	ViewMembers         bool `json:"ViewMembers"`
}

Permissions contains the permissions of each safe member

type PersonalDetails

type PersonalDetails struct {
	Street       string `json:"street"`
	City         string `json:"city"`
	State        string `json:"state"`
	Zip          string `json:"zip"`
	Country      string `json:"country"`
	Title        string `json:"title"`
	Organization string `json:"organization"`
	Department   string `json:"department"`
	Profession   string `json:"profession"`
	FirstName    string `json:"firstName"`
	MiddleName   string `json:"middleName"`
	LastName     string `json:"lastName"`
}

PersonalDetails of user

type PersonalDetailsResponse

type PersonalDetailsResponse struct {
	FirstName  string `json:"firstName"`
	MiddleName string `json:"middleName"`
	LastName   string `json:"lastName"`
}

PersonalDetailsResponse represents one users personal details

type Phones

type Phones struct {
	HomeNumber     string `json:"homeNumber"`
	BusinessNumber string `json:"businessNumber"`
	CellularNumber string `json:"cellularNumber"`
	FaxNumber      string `json:"faxNumber"`
	PagerNumber    string `json:"pagerNumber"`
}

Phones of user

type ServerVerify

type ServerVerify struct {
	ApplicationName       string                  `json:"ApplicationName"`
	AuthenticationMethods []AuthenticationMethods `json:"AuthenticationMethods"`
	ServerID              string                  `json:"ServerId"`
	ServerName            string                  `json:"ServerName"`
}

ServerVerify contains all response data from /verify endpoint

type UpdateSafe

type UpdateSafe struct {
	SafeName                  string `json:"SafeName"`
	Description               string `json:"Description"`
	NumberOfDaysRetention     int    `json:"NumberOfDaysRetention"`
	NumberOfVersionsRetention int    `json:"NumberOfVersionsRetention"`
	OLACEnabled               bool   `json:"OLACEnabled"`
}

UpdateSafe contains the response to the Update Safe function's request

type UserResponse

type UserResponse struct {
	ID                 int                     `json:"id"`
	Username           string                  `json:"username"`
	Source             string                  `json:"source"`
	UserType           string                  `json:"userType"`
	ComponentUser      bool                    `json:"componentUser"`
	VaultAuthorization []string                `json:"vaultAuthorization"`
	Location           string                  `json:"location"`
	PersonalDetails    PersonalDetailsResponse `json:"personalDetails"`
}

UserResponse represents one user in ListUsersResponse

Jump to

Keyboard shortcuts

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