client

package module
v0.0.0-...-4ad6329 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: AGPL-3.0 Imports: 22 Imported by: 0

README

Go API client for client

SFTPGo allows to securely share your files over SFTP, HTTP and optionally FTP/S and WebDAV as well. Several storage backends are supported and they are configurable per user, so you can serve a local directory for a user and an S3 bucket (or part of it) for another one. SFTPGo also supports virtual folders, a virtual folder can use any of the supported storage backends. So you can have, for example, an S3 user that exposes a GCS bucket (or part of it) on a specified path and an encrypted local filesystem on another one. Virtual folders can be private or shared among multiple users, for shared virtual folders you can define different quota limits for each user. SFTPGo allows to create HTTP/S links to externally share files and folders securely, by setting limits to the number of downloads/uploads, protecting the share with a password, limiting access by source IP address, setting an automatic expiration date.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.2.2-dev
  • Package version: 3.1
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://github.com/drakkan/sftpgo

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import client "github.com/hasusuf/sftpgo-client/client"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), client.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), client.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), client.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to /api/v2

Class Method HTTP request Description
APIKeysApi AddApiKey Post /apikeys Add API key
APIKeysApi DeleteApiKey Delete /apikeys/{id} Delete API key
APIKeysApi GetApiKeyById Get /apikeys/{id} Find API key by id
APIKeysApi GetApiKeys Get /apikeys Get API keys
APIKeysApi UpdateApiKey Put /apikeys/{id} Update API key
AdminsApi AddAdmin Post /admins Add admin
AdminsApi AdminForgotPassword Post /admins/{username}/forgot-password Send a password reset code by email
AdminsApi AdminResetPassword Post /admins/{username}/reset-password Reset the password
AdminsApi ChangeAdminPassword Put /admin/changepwd Change admin password
AdminsApi ChangeAdminPasswordDeprecated Put /changepwd/admin Change admin password
AdminsApi DeleteAdmin Delete /admins/{username} Delete admin
AdminsApi DisableAdmin2fa Put /admins/{username}/2fa/disable Disable second factor authentication
AdminsApi GenerateAdminRecoveryCodes Post /admin/2fa/recoverycodes Generate recovery codes
AdminsApi GenerateAdminTotpSecret Post /admin/totp/generate Generate a new TOTP secret
AdminsApi GetAdminByUsername Get /admins/{username} Find admins by username
AdminsApi GetAdminProfile Get /admin/profile Get admin profile
AdminsApi GetAdminRecoveryCodes Get /admin/2fa/recoverycodes Get recovery codes
AdminsApi GetAdminTotpConfigs Get /admin/totp/configs Get available TOTP configuration
AdminsApi GetAdmins Get /admins Get admins
AdminsApi SaveAdminTotpConfig Post /admin/totp/save Save a TOTP config
AdminsApi UpdateAdmin Put /admins/{username} Update admin
AdminsApi UpdateAdminProfile Put /admin/profile Update admin profile
AdminsApi ValidateAdminTotpSecret Post /admin/totp/validate Validate a one time authentication code
ConnectionsApi CloseConnection Delete /connections/{connectionID} Close connection
ConnectionsApi GetConnections Get /connections Get connections details
DataRetentionApi GetUsersRetentionChecks Get /retention/users/checks Get retention checks
DataRetentionApi StartUserRetentionCheck Post /retention/users/{username}/check Start a retention check
DefenderApi DeleteDefenderHostById Delete /defender/hosts/{id} Removes a host from the defender lists
DefenderApi GetBanTime Get /defender/bantime Get ban time
DefenderApi GetDefenderHostById Get /defender/hosts/{id} Get host by id
DefenderApi GetDefenderHosts Get /defender/hosts Get hosts
DefenderApi GetScore Get /defender/score Get score
DefenderApi UnbanHost Post /defender/unban Unban
EventsApi GetFsEvents Get /events/fs Get filesystem events
EventsApi GetProviderEvents Get /events/provider Get provider events
FoldersApi AddFolder Post /folders Add folder
FoldersApi DeleteFolder Delete /folders/{name} Delete folder
FoldersApi GetFolderByName Get /folders/{name} Find folders by name
FoldersApi GetFolders Get /folders Get folders
FoldersApi UpdateFolder Put /folders/{name} Update folder
HealthcheckApi Healthz Get /healthz health check
MaintenanceApi Dumpdata Get /dumpdata Dump data
MaintenanceApi GetStatus Get /status Get status
MaintenanceApi GetVersion Get /version Get version details
MaintenanceApi LoaddataFromFile Get /loaddata Load data from path
MaintenanceApi LoaddataFromRequestBody Post /loaddata Load data
MetadataApi GetUsersMetadataChecks Get /metadata/users/checks Get metadata checks
MetadataApi StartUserMetadataCheck Post /metadata/users/{username}/check Start a metadata check
PublicSharesApi DownloadShareFile Get /shares/{id}/files Download a single file
PublicSharesApi GetShare Get /shares/{id} Download shared files and folders as a single zip file
PublicSharesApi GetShareDirContents Get /shares/{id}/dirs Read directory contents
PublicSharesApi UploadSingleToShare Post /shares/{id}/{fileName} Upload a single file to the shared path
PublicSharesApi UploadToShare Post /shares/{id} Upload one or more files to the shared path
QuotaApi FolderQuotaUpdateUsage Put /quotas/folders/{name}/usage Update folder quota usage limits
QuotaApi FolderQuotaUpdateUsageDeprecated Put /folder-quota-update Update folder quota limits
QuotaApi GetFoldersQuotaScans Get /quotas/folders/scans Get active folder quota scans
QuotaApi GetFoldersQuotaScansDeprecated Get /folder-quota-scans Get folders quota scans
QuotaApi GetUsersQuotaScans Get /quotas/users/scans Get active user quota scans
QuotaApi GetUsersQuotaScansDeprecated Get /quota-scans Get quota scans
QuotaApi StartFolderQuotaScan Post /quotas/folders/{name}/scan Start a folder quota scan
QuotaApi StartFolderQuotaScanDeprecated Post /folder-quota-scans Start a folder quota scan
QuotaApi StartUserQuotaScan Post /quotas/users/{username}/scan Start a user quota scan
QuotaApi StartUserQuotaScanDeprecated Post /quota-scans Start user quota scan
QuotaApi UserQuotaUpdateUsage Put /quotas/users/{username}/usage Update disk quota usage limits
QuotaApi UserQuotaUpdateUsageDeprecated Put /quota-update Update quota usage limits
QuotaApi UserTransferQuotaUpdateUsage Put /quotas/users/{username}/transfer-usage Update transfer quota usage limits
TokenApi ClientLogout Get /user/logout Invalidate a user access token
TokenApi GetToken Get /token Get a new admin access token
TokenApi GetUserToken Get /user/token Get a new user access token
TokenApi Logout Get /logout Invalidate an admin access token
UserAPIsApi AddShare Post /user/shares Add a share
UserAPIsApi ChangeUserPassword Put /user/changepwd Change user password
UserAPIsApi CreateUserDir Post /user/dirs Create a directory
UserAPIsApi CreateUserFile Post /user/files/upload Upload a single file
UserAPIsApi CreateUserFiles Post /user/files Upload files
UserAPIsApi DeleteUserDir Delete /user/dirs Delete a directory
UserAPIsApi DeleteUserFile Delete /user/files Delete a file
UserAPIsApi DeleteUserShare Delete /user/shares/{id} Delete share
UserAPIsApi DownloadUserFile Get /user/files Download a single file
UserAPIsApi GenerateUserRecoveryCodes Post /user/2fa/recoverycodes Generate recovery codes
UserAPIsApi GenerateUserTotpSecret Post /user/totp/generate Generate a new TOTP secret
UserAPIsApi GetUserDirContents Get /user/dirs Read directory contents
UserAPIsApi GetUserFile Get /user/file Download a single file
UserAPIsApi GetUserFolderContents Get /user/folder Read folders contents
UserAPIsApi GetUserProfile Get /user/profile Get user profile
UserAPIsApi GetUserPublicKeys Get /user/publickeys Get the user's public keys
UserAPIsApi GetUserRecoveryCodes Get /user/2fa/recoverycodes Get recovery codes
UserAPIsApi GetUserShareById Get /user/shares/{id} Get share by id
UserAPIsApi GetUserShares Get /user/shares List user shares
UserAPIsApi GetUserTotpConfigs Get /user/totp/configs Get available TOTP configuration
UserAPIsApi RenameUserDir Patch /user/dirs Rename a directory
UserAPIsApi RenameUserFile Patch /user/files Rename a file
UserAPIsApi SaveUserTotpConfig Post /user/totp/save Save a TOTP config
UserAPIsApi SetUserPublicKeys Put /user/publickeys Set the user's public keys
UserAPIsApi SetpropsUserFile Patch /user/files/metadata Set metadata for a file/directory
UserAPIsApi Streamzip Post /user/streamzip Download multiple files and folders as a single zip file
UserAPIsApi UpdateUserProfile Put /user/profile Update user profile
UserAPIsApi UpdateUserShare Put /user/shares/{id} Update share
UserAPIsApi ValidateUserTotpSecret Post /user/totp/validate Validate a one time authentication code
UsersApi AddUser Post /users Add user
UsersApi DeleteUser Delete /users/{username} Delete user
UsersApi DisableUser2fa Put /users/{username}/2fa/disable Disable second factor authentication
UsersApi GetUserByUsername Get /users/{username} Find users by username
UsersApi GetUsers Get /users Get users
UsersApi UpdateUser Put /users/{username} Update user
UsersApi UserForgotPassword Post /users/{username}/forgot-password Send a password reset code by email
UsersApi UserResetPassword Post /users/{username}/reset-password Reset the password

Documentation For Models

Documentation For Authorization

APIKeyAuth
  • Type: API key
  • API key parameter name: X-SFTPGO-API-KEY
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-SFTPGO-API-KEY and passed in as the auth context for each request.

BasicAuth
  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)
BearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedAdminPermissionsEnumValues = []AdminPermissions{
	"*",
	"add_users",
	"edit_users",
	"del_users",
	"view_users",
	"view_conns",
	"close_conns",
	"view_status",
	"manage_admins",
	"manage_apikeys",
	"quota_scans",
	"manage_system",
	"manage_defender",
	"view_defender",
	"retention_checks",
	"metadata_checks",
	"view_events",
}

All allowed values of AdminPermissions enum

View Source
var AllowedAuthAPIKeyScopeEnumValues = []AuthAPIKeyScope{
	1,
	2,
}

All allowed values of AuthAPIKeyScope enum

View Source
var AllowedEventProtocolsEnumValues = []EventProtocols{
	"SSH",
	"SFTP",
	"SCP",
	"FTP",
	"DAV",
	"HTTP",
	"DataRetention",
}

All allowed values of EventProtocols enum

View Source
var AllowedFsEventActionEnumValues = []FsEventAction{
	"download",
	"pre-upload",
	"upload",
	"delete",
	"rename",
	"mkdir",
	"rmdir",
	"ssh_cmd",
}

All allowed values of FsEventAction enum

View Source
var AllowedFsEventStatusEnumValues = []FsEventStatus{
	1,
	2,
	3,
}

All allowed values of FsEventStatus enum

View Source
var AllowedFsProvidersEnumValues = []FsProviders{
	0,
	1,
	2,
	3,
	4,
	5,
}

All allowed values of FsProviders enum

View Source
var AllowedLoginMethodsEnumValues = []LoginMethods{
	"publickey",
	"password",
	"keyboard-interactive",
	"publickey+password",
	"publickey+keyboard-interactive",
	"TLSCertificate",
	"TLSCertificate+password",
}

All allowed values of LoginMethods enum

View Source
var AllowedMFAProtocolsEnumValues = []MFAProtocols{
	"SSH",
	"FTP",
	"HTTP",
}

All allowed values of MFAProtocols enum

View Source
var AllowedPermissionEnumValues = []Permission{
	"*",
	"list",
	"download",
	"upload",
	"overwrite",
	"delete",
	"delete_files",
	"delete_dirs",
	"rename",
	"rename_files",
	"rename_dirs",
	"create_dirs",
	"create_symlinks",
	"chmod",
	"chown",
	"chtimes",
}

All allowed values of Permission enum

View Source
var AllowedProviderEventActionEnumValues = []ProviderEventAction{
	"add",
	"update",
	"delete",
}

All allowed values of ProviderEventAction enum

View Source
var AllowedProviderEventObjectTypeEnumValues = []ProviderEventObjectType{
	"user",
	"admin",
	"api_key",
	"share",
}

All allowed values of ProviderEventObjectType enum

View Source
var AllowedRetentionCheckNotificationEnumValues = []RetentionCheckNotification{
	"Hook",
	"Email",
}

All allowed values of RetentionCheckNotification enum

View Source
var AllowedShareScopeEnumValues = []ShareScope{
	1,
	2,
}

All allowed values of ShareScope enum

View Source
var AllowedSupportedProtocolsEnumValues = []SupportedProtocols{
	"SSH",
	"FTP",
	"DAV",
	"HTTP",
}

All allowed values of SupportedProtocols enum

View Source
var AllowedTOTPHMacAlgoEnumValues = []TOTPHMacAlgo{
	"sha1",
	"sha256",
	"sha512",
}

All allowed values of TOTPHMacAlgo enum

View Source
var AllowedUserTypeEnumValues = []UserType{
	"",
	"LDAPUser",
	"OSUser",
}

All allowed values of UserType enum

View Source
var AllowedWebClientOptionsEnumValues = []WebClientOptions{
	"publickey-change-disabled",
	"write-disabled",
	"mfa-disabled",
	"password-change-disabled",
	"api-key-auth-change-disabled",
	"info-change-disabled",
	"shares-disabled",
	"password-reset-disabled",
}

All allowed values of WebClientOptions enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	APIKeysApi *APIKeysApiService

	AdminsApi *AdminsApiService

	ConnectionsApi *ConnectionsApiService

	DataRetentionApi *DataRetentionApiService

	DefenderApi *DefenderApiService

	EventsApi *EventsApiService

	FoldersApi *FoldersApiService

	HealthcheckApi *HealthcheckApiService

	MaintenanceApi *MaintenanceApiService

	MetadataApi *MetadataApiService

	PublicSharesApi *PublicSharesApiService

	QuotaApi *QuotaApiService

	TokenApi *TokenApiService

	UserAPIsApi *UserAPIsApiService

	UsersApi *UsersApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the SFTPGo API v2.2.2-dev In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIKeysApiApiAddApiKeyRequest

type APIKeysApiApiAddApiKeyRequest struct {
	ApiService *APIKeysApiService
	// contains filtered or unexported fields
}

func (APIKeysApiApiAddApiKeyRequest) AuthAPIKey

func (APIKeysApiApiAddApiKeyRequest) Execute

type APIKeysApiApiDeleteApiKeyRequest

type APIKeysApiApiDeleteApiKeyRequest struct {
	ApiService *APIKeysApiService
	// contains filtered or unexported fields
}

func (APIKeysApiApiDeleteApiKeyRequest) Execute

type APIKeysApiApiGetApiKeyByIdRequest

type APIKeysApiApiGetApiKeyByIdRequest struct {
	ApiService *APIKeysApiService
	// contains filtered or unexported fields
}

func (APIKeysApiApiGetApiKeyByIdRequest) Execute

type APIKeysApiApiGetApiKeysRequest

type APIKeysApiApiGetApiKeysRequest struct {
	ApiService *APIKeysApiService
	// contains filtered or unexported fields
}

func (APIKeysApiApiGetApiKeysRequest) Execute

func (APIKeysApiApiGetApiKeysRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (APIKeysApiApiGetApiKeysRequest) Offset

func (APIKeysApiApiGetApiKeysRequest) Order

Ordering API keys by id. Default ASC

type APIKeysApiApiUpdateApiKeyRequest

type APIKeysApiApiUpdateApiKeyRequest struct {
	ApiService *APIKeysApiService
	// contains filtered or unexported fields
}

func (APIKeysApiApiUpdateApiKeyRequest) AuthAPIKey

func (APIKeysApiApiUpdateApiKeyRequest) Execute

type APIKeysApiService

type APIKeysApiService service

APIKeysApiService APIKeysApi service

func (*APIKeysApiService) AddApiKey

AddApiKey Add API key

Adds a new API key

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return APIKeysApiApiAddApiKeyRequest

func (*APIKeysApiService) AddApiKeyExecute

Execute executes the request

@return InlineResponse201

func (*APIKeysApiService) DeleteApiKey

DeleteApiKey Delete API key

Deletes an existing API key

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the key id
@return APIKeysApiApiDeleteApiKeyRequest

func (*APIKeysApiService) DeleteApiKeyExecute

Execute executes the request

@return ApiResponse

func (*APIKeysApiService) GetApiKeyById

GetApiKeyById Find API key by id

Returns the API key with the given id, if it exists. For security reasons the hashed key is omitted in the response

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the key id
@return APIKeysApiApiGetApiKeyByIdRequest

func (*APIKeysApiService) GetApiKeyByIdExecute

Execute executes the request

@return AuthAPIKey

func (*APIKeysApiService) GetApiKeys

GetApiKeys Get API keys

Returns an array with one or more API keys. For security reasons hashed keys are omitted in the response

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return APIKeysApiApiGetApiKeysRequest

func (*APIKeysApiService) GetApiKeysExecute

Execute executes the request

@return []AuthAPIKey

func (*APIKeysApiService) UpdateApiKey

UpdateApiKey Update API key

Updates an existing API key. You cannot update the key itself, the creation date and the last use

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the key id
@return APIKeysApiApiUpdateApiKeyRequest

func (*APIKeysApiService) UpdateApiKeyExecute

Execute executes the request

@return ApiResponse

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type Admin

type Admin struct {
	Id *int32 `json:"id,omitempty"`
	// status:   * `0` user is disabled, login is not allowed   * `1` user is enabled
	Status *int32 `json:"status,omitempty"`
	// username is unique
	Username *string `json:"username,omitempty"`
	// optional description, for example the admin full name
	Description *string `json:"description,omitempty"`
	// Admin password. For security reasons this field is omitted when you search/get admins
	Password    *string            `json:"password,omitempty"`
	Email       *string            `json:"email,omitempty"`
	Permissions []AdminPermissions `json:"permissions,omitempty"`
	Filters     *AdminFilters      `json:"filters,omitempty"`
	// Free form text field
	AdditionalInfo *string `json:"additional_info,omitempty"`
	// creation time as unix timestamp in milliseconds. It will be 0 for admins created before v2.2.0
	CreatedAt *int64 `json:"created_at,omitempty"`
	// last update time as unix timestamp in milliseconds
	UpdatedAt *int64 `json:"updated_at,omitempty"`
	// Last user login as unix timestamp in milliseconds. It is saved at most once every 10 minutes
	LastLogin *int64 `json:"last_login,omitempty"`
}

Admin struct for Admin

func NewAdmin

func NewAdmin() *Admin

NewAdmin instantiates a new Admin object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAdminWithDefaults

func NewAdminWithDefaults() *Admin

NewAdminWithDefaults instantiates a new Admin object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Admin) GetAdditionalInfo

func (o *Admin) GetAdditionalInfo() string

GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise.

func (*Admin) GetAdditionalInfoOk

func (o *Admin) GetAdditionalInfoOk() (*string, bool)

GetAdditionalInfoOk returns a tuple with the AdditionalInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetCreatedAt

func (o *Admin) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Admin) GetCreatedAtOk

func (o *Admin) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetDescription

func (o *Admin) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Admin) GetDescriptionOk

func (o *Admin) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetEmail

func (o *Admin) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*Admin) GetEmailOk

func (o *Admin) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetFilters

func (o *Admin) GetFilters() AdminFilters

GetFilters returns the Filters field value if set, zero value otherwise.

func (*Admin) GetFiltersOk

func (o *Admin) GetFiltersOk() (*AdminFilters, bool)

GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetId

func (o *Admin) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*Admin) GetIdOk

func (o *Admin) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetLastLogin

func (o *Admin) GetLastLogin() int64

GetLastLogin returns the LastLogin field value if set, zero value otherwise.

func (*Admin) GetLastLoginOk

func (o *Admin) GetLastLoginOk() (*int64, bool)

GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetPassword

func (o *Admin) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*Admin) GetPasswordOk

func (o *Admin) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetPermissions

func (o *Admin) GetPermissions() []AdminPermissions

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (*Admin) GetPermissionsOk

func (o *Admin) GetPermissionsOk() ([]AdminPermissions, bool)

GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetStatus

func (o *Admin) GetStatus() int32

GetStatus returns the Status field value if set, zero value otherwise.

func (*Admin) GetStatusOk

func (o *Admin) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetUpdatedAt

func (o *Admin) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Admin) GetUpdatedAtOk

func (o *Admin) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) GetUsername

func (o *Admin) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*Admin) GetUsernameOk

func (o *Admin) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Admin) HasAdditionalInfo

func (o *Admin) HasAdditionalInfo() bool

HasAdditionalInfo returns a boolean if a field has been set.

func (*Admin) HasCreatedAt

func (o *Admin) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Admin) HasDescription

func (o *Admin) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Admin) HasEmail

func (o *Admin) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*Admin) HasFilters

func (o *Admin) HasFilters() bool

HasFilters returns a boolean if a field has been set.

func (*Admin) HasId

func (o *Admin) HasId() bool

HasId returns a boolean if a field has been set.

func (*Admin) HasLastLogin

func (o *Admin) HasLastLogin() bool

HasLastLogin returns a boolean if a field has been set.

func (*Admin) HasPassword

func (o *Admin) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*Admin) HasPermissions

func (o *Admin) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (*Admin) HasStatus

func (o *Admin) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Admin) HasUpdatedAt

func (o *Admin) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*Admin) HasUsername

func (o *Admin) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (Admin) MarshalJSON

func (o Admin) MarshalJSON() ([]byte, error)

func (*Admin) SetAdditionalInfo

func (o *Admin) SetAdditionalInfo(v string)

SetAdditionalInfo gets a reference to the given string and assigns it to the AdditionalInfo field.

func (*Admin) SetCreatedAt

func (o *Admin) SetCreatedAt(v int64)

SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.

func (*Admin) SetDescription

func (o *Admin) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Admin) SetEmail

func (o *Admin) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*Admin) SetFilters

func (o *Admin) SetFilters(v AdminFilters)

SetFilters gets a reference to the given AdminFilters and assigns it to the Filters field.

func (*Admin) SetId

func (o *Admin) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*Admin) SetLastLogin

func (o *Admin) SetLastLogin(v int64)

SetLastLogin gets a reference to the given int64 and assigns it to the LastLogin field.

func (*Admin) SetPassword

func (o *Admin) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*Admin) SetPermissions

func (o *Admin) SetPermissions(v []AdminPermissions)

SetPermissions gets a reference to the given []AdminPermissions and assigns it to the Permissions field.

func (*Admin) SetStatus

func (o *Admin) SetStatus(v int32)

SetStatus gets a reference to the given int32 and assigns it to the Status field.

func (*Admin) SetUpdatedAt

func (o *Admin) SetUpdatedAt(v int64)

SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.

func (*Admin) SetUsername

func (o *Admin) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type AdminFilters

type AdminFilters struct {
	// only clients connecting from these IP/Mask are allowed. IP/Mask must be in CIDR notation as defined in RFC 4632 and RFC 4291, for example \"192.0.2.0/24\" or \"2001:db8::/32\"
	AllowList []string `json:"allow_list,omitempty"`
	// API key auth allows to impersonate this administrator with an API key
	AllowApiKeyAuth *bool            `json:"allow_api_key_auth,omitempty"`
	TotpConfig      *AdminTOTPConfig `json:"totp_config,omitempty"`
	RecoveryCodes   []RecoveryCode   `json:"recovery_codes,omitempty"`
}

AdminFilters struct for AdminFilters

func NewAdminFilters

func NewAdminFilters() *AdminFilters

NewAdminFilters instantiates a new AdminFilters object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAdminFiltersWithDefaults

func NewAdminFiltersWithDefaults() *AdminFilters

NewAdminFiltersWithDefaults instantiates a new AdminFilters object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AdminFilters) GetAllowApiKeyAuth

func (o *AdminFilters) GetAllowApiKeyAuth() bool

GetAllowApiKeyAuth returns the AllowApiKeyAuth field value if set, zero value otherwise.

func (*AdminFilters) GetAllowApiKeyAuthOk

func (o *AdminFilters) GetAllowApiKeyAuthOk() (*bool, bool)

GetAllowApiKeyAuthOk returns a tuple with the AllowApiKeyAuth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminFilters) GetAllowList

func (o *AdminFilters) GetAllowList() []string

GetAllowList returns the AllowList field value if set, zero value otherwise.

func (*AdminFilters) GetAllowListOk

func (o *AdminFilters) GetAllowListOk() ([]string, bool)

GetAllowListOk returns a tuple with the AllowList field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminFilters) GetRecoveryCodes

func (o *AdminFilters) GetRecoveryCodes() []RecoveryCode

GetRecoveryCodes returns the RecoveryCodes field value if set, zero value otherwise.

func (*AdminFilters) GetRecoveryCodesOk

func (o *AdminFilters) GetRecoveryCodesOk() ([]RecoveryCode, bool)

GetRecoveryCodesOk returns a tuple with the RecoveryCodes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminFilters) GetTotpConfig

func (o *AdminFilters) GetTotpConfig() AdminTOTPConfig

GetTotpConfig returns the TotpConfig field value if set, zero value otherwise.

func (*AdminFilters) GetTotpConfigOk

func (o *AdminFilters) GetTotpConfigOk() (*AdminTOTPConfig, bool)

GetTotpConfigOk returns a tuple with the TotpConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminFilters) HasAllowApiKeyAuth

func (o *AdminFilters) HasAllowApiKeyAuth() bool

HasAllowApiKeyAuth returns a boolean if a field has been set.

func (*AdminFilters) HasAllowList

func (o *AdminFilters) HasAllowList() bool

HasAllowList returns a boolean if a field has been set.

func (*AdminFilters) HasRecoveryCodes

func (o *AdminFilters) HasRecoveryCodes() bool

HasRecoveryCodes returns a boolean if a field has been set.

func (*AdminFilters) HasTotpConfig

func (o *AdminFilters) HasTotpConfig() bool

HasTotpConfig returns a boolean if a field has been set.

func (AdminFilters) MarshalJSON

func (o AdminFilters) MarshalJSON() ([]byte, error)

func (*AdminFilters) SetAllowApiKeyAuth

func (o *AdminFilters) SetAllowApiKeyAuth(v bool)

SetAllowApiKeyAuth gets a reference to the given bool and assigns it to the AllowApiKeyAuth field.

func (*AdminFilters) SetAllowList

func (o *AdminFilters) SetAllowList(v []string)

SetAllowList gets a reference to the given []string and assigns it to the AllowList field.

func (*AdminFilters) SetRecoveryCodes

func (o *AdminFilters) SetRecoveryCodes(v []RecoveryCode)

SetRecoveryCodes gets a reference to the given []RecoveryCode and assigns it to the RecoveryCodes field.

func (*AdminFilters) SetTotpConfig

func (o *AdminFilters) SetTotpConfig(v AdminTOTPConfig)

SetTotpConfig gets a reference to the given AdminTOTPConfig and assigns it to the TotpConfig field.

type AdminPermissions

type AdminPermissions string

AdminPermissions Admin permissions: * `*` - all permissions are granted * `add_users` - add new users is allowed * `edit_users` - change existing users is allowed * `del_users` - remove users is allowed * `view_users` - list users is allowed * `view_conns` - list active connections is allowed * `close_conns` - close active connections is allowed * `view_status` - view the server status is allowed * `manage_admins` - manage other admins is allowed * `manage_apikeys` - manage API keys is allowed * `quota_scans` - view and start quota scans is allowed * `manage_system` - backups and restores are allowed * `manage_defender` - remove ip from the dynamic blocklist is allowed * `view_defender` - list the dynamic blocklist is allowed * `retention_checks` - view and start retention checks is allowed * `metadata_checks` - view and start metadata checks is allowed * `view_events` - view and search filesystem and provider events is allowed

const (
	ADMINPERMISSIONS_STAR             AdminPermissions = "*"
	ADMINPERMISSIONS_ADD_USERS        AdminPermissions = "add_users"
	ADMINPERMISSIONS_EDIT_USERS       AdminPermissions = "edit_users"
	ADMINPERMISSIONS_DEL_USERS        AdminPermissions = "del_users"
	ADMINPERMISSIONS_VIEW_USERS       AdminPermissions = "view_users"
	ADMINPERMISSIONS_VIEW_CONNS       AdminPermissions = "view_conns"
	ADMINPERMISSIONS_CLOSE_CONNS      AdminPermissions = "close_conns"
	ADMINPERMISSIONS_VIEW_STATUS      AdminPermissions = "view_status"
	ADMINPERMISSIONS_MANAGE_ADMINS    AdminPermissions = "manage_admins"
	ADMINPERMISSIONS_MANAGE_APIKEYS   AdminPermissions = "manage_apikeys"
	ADMINPERMISSIONS_QUOTA_SCANS      AdminPermissions = "quota_scans"
	ADMINPERMISSIONS_MANAGE_SYSTEM    AdminPermissions = "manage_system"
	ADMINPERMISSIONS_MANAGE_DEFENDER  AdminPermissions = "manage_defender"
	ADMINPERMISSIONS_VIEW_DEFENDER    AdminPermissions = "view_defender"
	ADMINPERMISSIONS_RETENTION_CHECKS AdminPermissions = "retention_checks"
	ADMINPERMISSIONS_METADATA_CHECKS  AdminPermissions = "metadata_checks"
	ADMINPERMISSIONS_VIEW_EVENTS      AdminPermissions = "view_events"
)

List of AdminPermissions

func NewAdminPermissionsFromValue

func NewAdminPermissionsFromValue(v string) (*AdminPermissions, error)

NewAdminPermissionsFromValue returns a pointer to a valid AdminPermissions for the value passed as argument, or an error if the value passed is not allowed by the enum

func (AdminPermissions) IsValid

func (v AdminPermissions) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (AdminPermissions) Ptr

Ptr returns reference to AdminPermissions value

func (*AdminPermissions) UnmarshalJSON

func (v *AdminPermissions) UnmarshalJSON(src []byte) error

type AdminProfile

type AdminProfile struct {
	Email       *string `json:"email,omitempty"`
	Description *string `json:"description,omitempty"`
	// If enabled, you can impersonate this admin, in REST API, using an API key. If disabled admin credentials are required for impersonation
	AllowApiKeyAuth *bool `json:"allow_api_key_auth,omitempty"`
}

AdminProfile struct for AdminProfile

func NewAdminProfile

func NewAdminProfile() *AdminProfile

NewAdminProfile instantiates a new AdminProfile object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAdminProfileWithDefaults

func NewAdminProfileWithDefaults() *AdminProfile

NewAdminProfileWithDefaults instantiates a new AdminProfile object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AdminProfile) GetAllowApiKeyAuth

func (o *AdminProfile) GetAllowApiKeyAuth() bool

GetAllowApiKeyAuth returns the AllowApiKeyAuth field value if set, zero value otherwise.

func (*AdminProfile) GetAllowApiKeyAuthOk

func (o *AdminProfile) GetAllowApiKeyAuthOk() (*bool, bool)

GetAllowApiKeyAuthOk returns a tuple with the AllowApiKeyAuth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminProfile) GetDescription

func (o *AdminProfile) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AdminProfile) GetDescriptionOk

func (o *AdminProfile) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminProfile) GetEmail

func (o *AdminProfile) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*AdminProfile) GetEmailOk

func (o *AdminProfile) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminProfile) HasAllowApiKeyAuth

func (o *AdminProfile) HasAllowApiKeyAuth() bool

HasAllowApiKeyAuth returns a boolean if a field has been set.

func (*AdminProfile) HasDescription

func (o *AdminProfile) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AdminProfile) HasEmail

func (o *AdminProfile) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (AdminProfile) MarshalJSON

func (o AdminProfile) MarshalJSON() ([]byte, error)

func (*AdminProfile) SetAllowApiKeyAuth

func (o *AdminProfile) SetAllowApiKeyAuth(v bool)

SetAllowApiKeyAuth gets a reference to the given bool and assigns it to the AllowApiKeyAuth field.

func (*AdminProfile) SetDescription

func (o *AdminProfile) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AdminProfile) SetEmail

func (o *AdminProfile) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

type AdminTOTPConfig

type AdminTOTPConfig struct {
	Enabled *bool `json:"enabled,omitempty"`
	// This name must be defined within the \"totp\" section of the SFTPGo configuration file. You will be unable to save a user/admin referencing a missing config_name
	ConfigName *string `json:"config_name,omitempty"`
	Secret     *Secret `json:"secret,omitempty"`
}

AdminTOTPConfig struct for AdminTOTPConfig

func NewAdminTOTPConfig

func NewAdminTOTPConfig() *AdminTOTPConfig

NewAdminTOTPConfig instantiates a new AdminTOTPConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAdminTOTPConfigWithDefaults

func NewAdminTOTPConfigWithDefaults() *AdminTOTPConfig

NewAdminTOTPConfigWithDefaults instantiates a new AdminTOTPConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AdminTOTPConfig) GetConfigName

func (o *AdminTOTPConfig) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*AdminTOTPConfig) GetConfigNameOk

func (o *AdminTOTPConfig) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminTOTPConfig) GetEnabled

func (o *AdminTOTPConfig) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*AdminTOTPConfig) GetEnabledOk

func (o *AdminTOTPConfig) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminTOTPConfig) GetSecret

func (o *AdminTOTPConfig) GetSecret() Secret

GetSecret returns the Secret field value if set, zero value otherwise.

func (*AdminTOTPConfig) GetSecretOk

func (o *AdminTOTPConfig) GetSecretOk() (*Secret, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdminTOTPConfig) HasConfigName

func (o *AdminTOTPConfig) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (*AdminTOTPConfig) HasEnabled

func (o *AdminTOTPConfig) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*AdminTOTPConfig) HasSecret

func (o *AdminTOTPConfig) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (AdminTOTPConfig) MarshalJSON

func (o AdminTOTPConfig) MarshalJSON() ([]byte, error)

func (*AdminTOTPConfig) SetConfigName

func (o *AdminTOTPConfig) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

func (*AdminTOTPConfig) SetEnabled

func (o *AdminTOTPConfig) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*AdminTOTPConfig) SetSecret

func (o *AdminTOTPConfig) SetSecret(v Secret)

SetSecret gets a reference to the given Secret and assigns it to the Secret field.

type AdminsApiApiAddAdminRequest

type AdminsApiApiAddAdminRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiAddAdminRequest) Admin

func (AdminsApiApiAddAdminRequest) Execute

type AdminsApiApiAdminForgotPasswordRequest

type AdminsApiApiAdminForgotPasswordRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiAdminForgotPasswordRequest) Execute

type AdminsApiApiAdminResetPasswordRequest

type AdminsApiApiAdminResetPasswordRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiAdminResetPasswordRequest) Execute

func (AdminsApiApiAdminResetPasswordRequest) InlineObject4

type AdminsApiApiChangeAdminPasswordDeprecatedRequest

type AdminsApiApiChangeAdminPasswordDeprecatedRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiChangeAdminPasswordDeprecatedRequest) Execute

func (AdminsApiApiChangeAdminPasswordDeprecatedRequest) PwdChange

type AdminsApiApiChangeAdminPasswordRequest

type AdminsApiApiChangeAdminPasswordRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiChangeAdminPasswordRequest) Execute

func (AdminsApiApiChangeAdminPasswordRequest) PwdChange

type AdminsApiApiDeleteAdminRequest

type AdminsApiApiDeleteAdminRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiDeleteAdminRequest) Execute

type AdminsApiApiDisableAdmin2faRequest

type AdminsApiApiDisableAdmin2faRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiDisableAdmin2faRequest) Execute

type AdminsApiApiGenerateAdminRecoveryCodesRequest

type AdminsApiApiGenerateAdminRecoveryCodesRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGenerateAdminRecoveryCodesRequest) Execute

type AdminsApiApiGenerateAdminTotpSecretRequest

type AdminsApiApiGenerateAdminTotpSecretRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGenerateAdminTotpSecretRequest) Execute

func (AdminsApiApiGenerateAdminTotpSecretRequest) InlineObject1

type AdminsApiApiGetAdminByUsernameRequest

type AdminsApiApiGetAdminByUsernameRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGetAdminByUsernameRequest) Execute

type AdminsApiApiGetAdminProfileRequest

type AdminsApiApiGetAdminProfileRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGetAdminProfileRequest) Execute

type AdminsApiApiGetAdminRecoveryCodesRequest

type AdminsApiApiGetAdminRecoveryCodesRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGetAdminRecoveryCodesRequest) Execute

type AdminsApiApiGetAdminTotpConfigsRequest

type AdminsApiApiGetAdminTotpConfigsRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGetAdminTotpConfigsRequest) Execute

type AdminsApiApiGetAdminsRequest

type AdminsApiApiGetAdminsRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiGetAdminsRequest) Execute

func (AdminsApiApiGetAdminsRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (AdminsApiApiGetAdminsRequest) Offset

func (AdminsApiApiGetAdminsRequest) Order

Ordering admins by username. Default ASC

type AdminsApiApiSaveAdminTotpConfigRequest

type AdminsApiApiSaveAdminTotpConfigRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiSaveAdminTotpConfigRequest) AdminTOTPConfig

func (AdminsApiApiSaveAdminTotpConfigRequest) Execute

type AdminsApiApiUpdateAdminProfileRequest

type AdminsApiApiUpdateAdminProfileRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiUpdateAdminProfileRequest) AdminProfile

func (AdminsApiApiUpdateAdminProfileRequest) Execute

type AdminsApiApiUpdateAdminRequest

type AdminsApiApiUpdateAdminRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiUpdateAdminRequest) Admin

func (AdminsApiApiUpdateAdminRequest) Execute

type AdminsApiApiValidateAdminTotpSecretRequest

type AdminsApiApiValidateAdminTotpSecretRequest struct {
	ApiService *AdminsApiService
	// contains filtered or unexported fields
}

func (AdminsApiApiValidateAdminTotpSecretRequest) Execute

func (AdminsApiApiValidateAdminTotpSecretRequest) InlineObject2

type AdminsApiService

type AdminsApiService service

AdminsApiService AdminsApi service

func (*AdminsApiService) AddAdmin

AddAdmin Add admin

Adds a new admin. Recovery codes and TOTP configuration cannot be set using this API: each admin must use the specific APIs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiAddAdminRequest

func (*AdminsApiService) AddAdminExecute

Execute executes the request

@return Admin

func (*AdminsApiService) AdminForgotPassword

func (a *AdminsApiService) AdminForgotPassword(ctx context.Context, username string) AdminsApiApiAdminForgotPasswordRequest

AdminForgotPassword Send a password reset code by email

You must set up an SMTP server and the account must have a valid email address, in which case SFTPGo will send a code via email to reset the password. If the specified admin does not exist, the request will be silently ignored (a success response will be returned) to avoid disclosing existing admins

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the admin username
@return AdminsApiApiAdminForgotPasswordRequest

func (*AdminsApiService) AdminForgotPasswordExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) AdminResetPassword

func (a *AdminsApiService) AdminResetPassword(ctx context.Context, username string) AdminsApiApiAdminResetPasswordRequest

AdminResetPassword Reset the password

Set a new password using the code received via email

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the admin username
@return AdminsApiApiAdminResetPasswordRequest

func (*AdminsApiService) AdminResetPasswordExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) ChangeAdminPassword

ChangeAdminPassword Change admin password

Changes the password for the logged in admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiChangeAdminPasswordRequest

func (*AdminsApiService) ChangeAdminPasswordDeprecated

ChangeAdminPasswordDeprecated Change admin password

Changes the password for the logged in admin. Please use '/admin/changepwd' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiChangeAdminPasswordDeprecatedRequest

Deprecated

func (*AdminsApiService) ChangeAdminPasswordDeprecatedExecute

func (a *AdminsApiService) ChangeAdminPasswordDeprecatedExecute(r AdminsApiApiChangeAdminPasswordDeprecatedRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

Deprecated

func (*AdminsApiService) ChangeAdminPasswordExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) DeleteAdmin

DeleteAdmin Delete admin

Deletes an existing admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the admin username
@return AdminsApiApiDeleteAdminRequest

func (*AdminsApiService) DeleteAdminExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) DisableAdmin2fa

func (a *AdminsApiService) DisableAdmin2fa(ctx context.Context, username string) AdminsApiApiDisableAdmin2faRequest

DisableAdmin2fa Disable second factor authentication

Disables second factor authentication for the given admin. This API must be used if the admin loses access to their second factor auth device and has no recovery codes

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the admin username
@return AdminsApiApiDisableAdmin2faRequest

func (*AdminsApiService) DisableAdmin2faExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) GenerateAdminRecoveryCodes

GenerateAdminRecoveryCodes Generate recovery codes

Generates new recovery codes for the logged in admin. Generating new recovery codes you automatically invalidate old ones

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiGenerateAdminRecoveryCodesRequest

func (*AdminsApiService) GenerateAdminRecoveryCodesExecute

func (a *AdminsApiService) GenerateAdminRecoveryCodesExecute(r AdminsApiApiGenerateAdminRecoveryCodesRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*AdminsApiService) GenerateAdminTotpSecret

GenerateAdminTotpSecret Generate a new TOTP secret

Generates a new TOTP secret, including the QR code as png, using the specified configuration for the logged in admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiGenerateAdminTotpSecretRequest

func (*AdminsApiService) GenerateAdminTotpSecretExecute

Execute executes the request

@return InlineResponse200

func (*AdminsApiService) GetAdminByUsername

func (a *AdminsApiService) GetAdminByUsername(ctx context.Context, username string) AdminsApiApiGetAdminByUsernameRequest

GetAdminByUsername Find admins by username

Returns the admin with the given username, if it exists. For security reasons the hashed password is omitted in the response

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the admin username
@return AdminsApiApiGetAdminByUsernameRequest

func (*AdminsApiService) GetAdminByUsernameExecute

func (a *AdminsApiService) GetAdminByUsernameExecute(r AdminsApiApiGetAdminByUsernameRequest) (*Admin, *http.Response, error)

Execute executes the request

@return Admin

func (*AdminsApiService) GetAdminProfile

GetAdminProfile Get admin profile

Returns the profile for the logged in admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiGetAdminProfileRequest

func (*AdminsApiService) GetAdminProfileExecute

Execute executes the request

@return AdminProfile

func (*AdminsApiService) GetAdminRecoveryCodes

GetAdminRecoveryCodes Get recovery codes

Returns the recovery codes for the logged in admin. Recovery codes can be used if the admin loses access to their second factor auth device. Recovery codes are returned unencrypted

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiGetAdminRecoveryCodesRequest

func (*AdminsApiService) GetAdminRecoveryCodesExecute

Execute executes the request

@return []RecoveryCode

func (*AdminsApiService) GetAdminTotpConfigs

GetAdminTotpConfigs Get available TOTP configuration

Returns the available TOTP configurations for the logged in admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiGetAdminTotpConfigsRequest

func (*AdminsApiService) GetAdminTotpConfigsExecute

func (a *AdminsApiService) GetAdminTotpConfigsExecute(r AdminsApiApiGetAdminTotpConfigsRequest) ([]TOTPConfig, *http.Response, error)

Execute executes the request

@return []TOTPConfig

func (*AdminsApiService) GetAdmins

GetAdmins Get admins

Returns an array with one or more admins. For security reasons hashed passwords are omitted in the response

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiGetAdminsRequest

func (*AdminsApiService) GetAdminsExecute

func (a *AdminsApiService) GetAdminsExecute(r AdminsApiApiGetAdminsRequest) ([]Admin, *http.Response, error)

Execute executes the request

@return []Admin

func (*AdminsApiService) SaveAdminTotpConfig

SaveAdminTotpConfig Save a TOTP config

Saves the specified TOTP config for the logged in admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiSaveAdminTotpConfigRequest

func (*AdminsApiService) SaveAdminTotpConfigExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) UpdateAdmin

UpdateAdmin Update admin

Updates an existing admin. Recovery codes and TOTP configuration cannot be set/updated using this API: each admin must use the specific APIs. You are not allowed to update the admin impersonated using an API key

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the admin username
@return AdminsApiApiUpdateAdminRequest

func (*AdminsApiService) UpdateAdminExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) UpdateAdminProfile

UpdateAdminProfile Update admin profile

Allows to update the profile for the logged in admin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiUpdateAdminProfileRequest

func (*AdminsApiService) UpdateAdminProfileExecute

Execute executes the request

@return ApiResponse

func (*AdminsApiService) ValidateAdminTotpSecret

ValidateAdminTotpSecret Validate a one time authentication code

Checks if the given authentication code can be validated using the specified secret and config name

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AdminsApiApiValidateAdminTotpSecretRequest

func (*AdminsApiService) ValidateAdminTotpSecretExecute

Execute executes the request

@return ApiResponse

type ApiResponse

type ApiResponse struct {
	// message, can be empty
	Message *string `json:"message,omitempty"`
	// error description if any
	Error *string `json:"error,omitempty"`
}

ApiResponse struct for ApiResponse

func NewApiResponse

func NewApiResponse() *ApiResponse

NewApiResponse instantiates a new ApiResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiResponseWithDefaults

func NewApiResponseWithDefaults() *ApiResponse

NewApiResponseWithDefaults instantiates a new ApiResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiResponse) GetError

func (o *ApiResponse) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ApiResponse) GetErrorOk

func (o *ApiResponse) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiResponse) GetMessage

func (o *ApiResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ApiResponse) GetMessageOk

func (o *ApiResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiResponse) HasError

func (o *ApiResponse) HasError() bool

HasError returns a boolean if a field has been set.

func (*ApiResponse) HasMessage

func (o *ApiResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ApiResponse) MarshalJSON

func (o ApiResponse) MarshalJSON() ([]byte, error)

func (*ApiResponse) SetError

func (o *ApiResponse) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ApiResponse) SetMessage

func (o *ApiResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

type AuthAPIKey

type AuthAPIKey struct {
	// unique key identifier
	Id *string `json:"id,omitempty"`
	// User friendly key name
	Name *string `json:"name,omitempty"`
	// We store the hash of the key. This is just like a password. For security reasons this field is omitted when you search/get API keys
	Key   *string          `json:"key,omitempty"`
	Scope *AuthAPIKeyScope `json:"scope,omitempty"`
	// creation time as unix timestamp in milliseconds
	CreatedAt *int64 `json:"created_at,omitempty"`
	// last update time as unix timestamp in milliseconds
	UpdatedAt *int64 `json:"updated_at,omitempty"`
	// last use time as unix timestamp in milliseconds. It is saved at most once every 10 minutes
	LastUseAt *int64 `json:"last_use_at,omitempty"`
	// expiration time as unix timestamp in milliseconds
	ExpiresAt *int64 `json:"expires_at,omitempty"`
	// optional description
	Description *string `json:"description,omitempty"`
	// username associated with this API key. If empty and the scope is \"user scope\" the key can impersonate any user
	User *string `json:"user,omitempty"`
	// admin associated with this API key. If empty and the scope is \"admin scope\" the key can impersonate any admin
	Admin *string `json:"admin,omitempty"`
}

AuthAPIKey struct for AuthAPIKey

func NewAuthAPIKey

func NewAuthAPIKey() *AuthAPIKey

NewAuthAPIKey instantiates a new AuthAPIKey object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAuthAPIKeyWithDefaults

func NewAuthAPIKeyWithDefaults() *AuthAPIKey

NewAuthAPIKeyWithDefaults instantiates a new AuthAPIKey object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AuthAPIKey) GetAdmin

func (o *AuthAPIKey) GetAdmin() string

GetAdmin returns the Admin field value if set, zero value otherwise.

func (*AuthAPIKey) GetAdminOk

func (o *AuthAPIKey) GetAdminOk() (*string, bool)

GetAdminOk returns a tuple with the Admin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetCreatedAt

func (o *AuthAPIKey) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*AuthAPIKey) GetCreatedAtOk

func (o *AuthAPIKey) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetDescription

func (o *AuthAPIKey) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AuthAPIKey) GetDescriptionOk

func (o *AuthAPIKey) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetExpiresAt

func (o *AuthAPIKey) GetExpiresAt() int64

GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.

func (*AuthAPIKey) GetExpiresAtOk

func (o *AuthAPIKey) GetExpiresAtOk() (*int64, bool)

GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetId

func (o *AuthAPIKey) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*AuthAPIKey) GetIdOk

func (o *AuthAPIKey) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetKey

func (o *AuthAPIKey) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*AuthAPIKey) GetKeyOk

func (o *AuthAPIKey) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetLastUseAt

func (o *AuthAPIKey) GetLastUseAt() int64

GetLastUseAt returns the LastUseAt field value if set, zero value otherwise.

func (*AuthAPIKey) GetLastUseAtOk

func (o *AuthAPIKey) GetLastUseAtOk() (*int64, bool)

GetLastUseAtOk returns a tuple with the LastUseAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetName

func (o *AuthAPIKey) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AuthAPIKey) GetNameOk

func (o *AuthAPIKey) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetScope

func (o *AuthAPIKey) GetScope() AuthAPIKeyScope

GetScope returns the Scope field value if set, zero value otherwise.

func (*AuthAPIKey) GetScopeOk

func (o *AuthAPIKey) GetScopeOk() (*AuthAPIKeyScope, bool)

GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetUpdatedAt

func (o *AuthAPIKey) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*AuthAPIKey) GetUpdatedAtOk

func (o *AuthAPIKey) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) GetUser

func (o *AuthAPIKey) GetUser() string

GetUser returns the User field value if set, zero value otherwise.

func (*AuthAPIKey) GetUserOk

func (o *AuthAPIKey) GetUserOk() (*string, bool)

GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AuthAPIKey) HasAdmin

func (o *AuthAPIKey) HasAdmin() bool

HasAdmin returns a boolean if a field has been set.

func (*AuthAPIKey) HasCreatedAt

func (o *AuthAPIKey) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*AuthAPIKey) HasDescription

func (o *AuthAPIKey) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AuthAPIKey) HasExpiresAt

func (o *AuthAPIKey) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (*AuthAPIKey) HasId

func (o *AuthAPIKey) HasId() bool

HasId returns a boolean if a field has been set.

func (*AuthAPIKey) HasKey

func (o *AuthAPIKey) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*AuthAPIKey) HasLastUseAt

func (o *AuthAPIKey) HasLastUseAt() bool

HasLastUseAt returns a boolean if a field has been set.

func (*AuthAPIKey) HasName

func (o *AuthAPIKey) HasName() bool

HasName returns a boolean if a field has been set.

func (*AuthAPIKey) HasScope

func (o *AuthAPIKey) HasScope() bool

HasScope returns a boolean if a field has been set.

func (*AuthAPIKey) HasUpdatedAt

func (o *AuthAPIKey) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*AuthAPIKey) HasUser

func (o *AuthAPIKey) HasUser() bool

HasUser returns a boolean if a field has been set.

func (AuthAPIKey) MarshalJSON

func (o AuthAPIKey) MarshalJSON() ([]byte, error)

func (*AuthAPIKey) SetAdmin

func (o *AuthAPIKey) SetAdmin(v string)

SetAdmin gets a reference to the given string and assigns it to the Admin field.

func (*AuthAPIKey) SetCreatedAt

func (o *AuthAPIKey) SetCreatedAt(v int64)

SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.

func (*AuthAPIKey) SetDescription

func (o *AuthAPIKey) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AuthAPIKey) SetExpiresAt

func (o *AuthAPIKey) SetExpiresAt(v int64)

SetExpiresAt gets a reference to the given int64 and assigns it to the ExpiresAt field.

func (*AuthAPIKey) SetId

func (o *AuthAPIKey) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*AuthAPIKey) SetKey

func (o *AuthAPIKey) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*AuthAPIKey) SetLastUseAt

func (o *AuthAPIKey) SetLastUseAt(v int64)

SetLastUseAt gets a reference to the given int64 and assigns it to the LastUseAt field.

func (*AuthAPIKey) SetName

func (o *AuthAPIKey) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AuthAPIKey) SetScope

func (o *AuthAPIKey) SetScope(v AuthAPIKeyScope)

SetScope gets a reference to the given AuthAPIKeyScope and assigns it to the Scope field.

func (*AuthAPIKey) SetUpdatedAt

func (o *AuthAPIKey) SetUpdatedAt(v int64)

SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.

func (*AuthAPIKey) SetUser

func (o *AuthAPIKey) SetUser(v string)

SetUser gets a reference to the given string and assigns it to the User field.

type AuthAPIKeyScope

type AuthAPIKeyScope int32

AuthAPIKeyScope Options: * `1` - admin scope. The API key will be used to impersonate an SFTPGo admin * `2` - user scope. The API key will be used to impersonate an SFTPGo user

const (
	AUTHAPIKEYSCOPE__1 AuthAPIKeyScope = 1
	AUTHAPIKEYSCOPE__2 AuthAPIKeyScope = 2
)

List of AuthAPIKeyScope

func NewAuthAPIKeyScopeFromValue

func NewAuthAPIKeyScopeFromValue(v int32) (*AuthAPIKeyScope, error)

NewAuthAPIKeyScopeFromValue returns a pointer to a valid AuthAPIKeyScope for the value passed as argument, or an error if the value passed is not allowed by the enum

func (AuthAPIKeyScope) IsValid

func (v AuthAPIKeyScope) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (AuthAPIKeyScope) Ptr

Ptr returns reference to AuthAPIKeyScope value

func (*AuthAPIKeyScope) UnmarshalJSON

func (v *AuthAPIKeyScope) UnmarshalJSON(src []byte) error

type AzureBlobFsConfig

type AzureBlobFsConfig struct {
	Container *string `json:"container,omitempty"`
	// Storage Account Name, leave blank to use SAS URL
	AccountName *string `json:"account_name,omitempty"`
	AccountKey  *Secret `json:"account_key,omitempty"`
	SasUrl      *Secret `json:"sas_url,omitempty"`
	// optional endpoint. Default is \"blob.core.windows.net\". If you use the emulator the endpoint must include the protocol, for example \"http://127.0.0.1:10000\"
	Endpoint *string `json:"endpoint,omitempty"`
	// the buffer size (in MB) to use for multipart uploads. If this value is set to zero, the default value (4MB) will be used.
	UploadPartSize *int32 `json:"upload_part_size,omitempty"`
	// the number of parts to upload in parallel. If this value is set to zero, the default value (2) will be used
	UploadConcurrency *int32  `json:"upload_concurrency,omitempty"`
	AccessTier        *string `json:"access_tier,omitempty"`
	// key_prefix is similar to a chroot directory for a local filesystem. If specified the user will only see contents that starts with this prefix and so you can restrict access to a specific virtual folder. The prefix, if not empty, must not start with \"/\" and must end with \"/\". If empty the whole container contents will be available
	KeyPrefix   *string `json:"key_prefix,omitempty"`
	UseEmulator *bool   `json:"use_emulator,omitempty"`
}

AzureBlobFsConfig Azure Blob Storage configuration details

func NewAzureBlobFsConfig

func NewAzureBlobFsConfig() *AzureBlobFsConfig

NewAzureBlobFsConfig instantiates a new AzureBlobFsConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAzureBlobFsConfigWithDefaults

func NewAzureBlobFsConfigWithDefaults() *AzureBlobFsConfig

NewAzureBlobFsConfigWithDefaults instantiates a new AzureBlobFsConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AzureBlobFsConfig) GetAccessTier

func (o *AzureBlobFsConfig) GetAccessTier() string

GetAccessTier returns the AccessTier field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetAccessTierOk

func (o *AzureBlobFsConfig) GetAccessTierOk() (*string, bool)

GetAccessTierOk returns a tuple with the AccessTier field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetAccountKey

func (o *AzureBlobFsConfig) GetAccountKey() Secret

GetAccountKey returns the AccountKey field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetAccountKeyOk

func (o *AzureBlobFsConfig) GetAccountKeyOk() (*Secret, bool)

GetAccountKeyOk returns a tuple with the AccountKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetAccountName

func (o *AzureBlobFsConfig) GetAccountName() string

GetAccountName returns the AccountName field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetAccountNameOk

func (o *AzureBlobFsConfig) GetAccountNameOk() (*string, bool)

GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetContainer

func (o *AzureBlobFsConfig) GetContainer() string

GetContainer returns the Container field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetContainerOk

func (o *AzureBlobFsConfig) GetContainerOk() (*string, bool)

GetContainerOk returns a tuple with the Container field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetEndpoint

func (o *AzureBlobFsConfig) GetEndpoint() string

GetEndpoint returns the Endpoint field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetEndpointOk

func (o *AzureBlobFsConfig) GetEndpointOk() (*string, bool)

GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetKeyPrefix

func (o *AzureBlobFsConfig) GetKeyPrefix() string

GetKeyPrefix returns the KeyPrefix field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetKeyPrefixOk

func (o *AzureBlobFsConfig) GetKeyPrefixOk() (*string, bool)

GetKeyPrefixOk returns a tuple with the KeyPrefix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetSasUrl

func (o *AzureBlobFsConfig) GetSasUrl() Secret

GetSasUrl returns the SasUrl field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetSasUrlOk

func (o *AzureBlobFsConfig) GetSasUrlOk() (*Secret, bool)

GetSasUrlOk returns a tuple with the SasUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetUploadConcurrency

func (o *AzureBlobFsConfig) GetUploadConcurrency() int32

GetUploadConcurrency returns the UploadConcurrency field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetUploadConcurrencyOk

func (o *AzureBlobFsConfig) GetUploadConcurrencyOk() (*int32, bool)

GetUploadConcurrencyOk returns a tuple with the UploadConcurrency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetUploadPartSize

func (o *AzureBlobFsConfig) GetUploadPartSize() int32

GetUploadPartSize returns the UploadPartSize field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetUploadPartSizeOk

func (o *AzureBlobFsConfig) GetUploadPartSizeOk() (*int32, bool)

GetUploadPartSizeOk returns a tuple with the UploadPartSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) GetUseEmulator

func (o *AzureBlobFsConfig) GetUseEmulator() bool

GetUseEmulator returns the UseEmulator field value if set, zero value otherwise.

func (*AzureBlobFsConfig) GetUseEmulatorOk

func (o *AzureBlobFsConfig) GetUseEmulatorOk() (*bool, bool)

GetUseEmulatorOk returns a tuple with the UseEmulator field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AzureBlobFsConfig) HasAccessTier

func (o *AzureBlobFsConfig) HasAccessTier() bool

HasAccessTier returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasAccountKey

func (o *AzureBlobFsConfig) HasAccountKey() bool

HasAccountKey returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasAccountName

func (o *AzureBlobFsConfig) HasAccountName() bool

HasAccountName returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasContainer

func (o *AzureBlobFsConfig) HasContainer() bool

HasContainer returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasEndpoint

func (o *AzureBlobFsConfig) HasEndpoint() bool

HasEndpoint returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasKeyPrefix

func (o *AzureBlobFsConfig) HasKeyPrefix() bool

HasKeyPrefix returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasSasUrl

func (o *AzureBlobFsConfig) HasSasUrl() bool

HasSasUrl returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasUploadConcurrency

func (o *AzureBlobFsConfig) HasUploadConcurrency() bool

HasUploadConcurrency returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasUploadPartSize

func (o *AzureBlobFsConfig) HasUploadPartSize() bool

HasUploadPartSize returns a boolean if a field has been set.

func (*AzureBlobFsConfig) HasUseEmulator

func (o *AzureBlobFsConfig) HasUseEmulator() bool

HasUseEmulator returns a boolean if a field has been set.

func (AzureBlobFsConfig) MarshalJSON

func (o AzureBlobFsConfig) MarshalJSON() ([]byte, error)

func (*AzureBlobFsConfig) SetAccessTier

func (o *AzureBlobFsConfig) SetAccessTier(v string)

SetAccessTier gets a reference to the given string and assigns it to the AccessTier field.

func (*AzureBlobFsConfig) SetAccountKey

func (o *AzureBlobFsConfig) SetAccountKey(v Secret)

SetAccountKey gets a reference to the given Secret and assigns it to the AccountKey field.

func (*AzureBlobFsConfig) SetAccountName

func (o *AzureBlobFsConfig) SetAccountName(v string)

SetAccountName gets a reference to the given string and assigns it to the AccountName field.

func (*AzureBlobFsConfig) SetContainer

func (o *AzureBlobFsConfig) SetContainer(v string)

SetContainer gets a reference to the given string and assigns it to the Container field.

func (*AzureBlobFsConfig) SetEndpoint

func (o *AzureBlobFsConfig) SetEndpoint(v string)

SetEndpoint gets a reference to the given string and assigns it to the Endpoint field.

func (*AzureBlobFsConfig) SetKeyPrefix

func (o *AzureBlobFsConfig) SetKeyPrefix(v string)

SetKeyPrefix gets a reference to the given string and assigns it to the KeyPrefix field.

func (*AzureBlobFsConfig) SetSasUrl

func (o *AzureBlobFsConfig) SetSasUrl(v Secret)

SetSasUrl gets a reference to the given Secret and assigns it to the SasUrl field.

func (*AzureBlobFsConfig) SetUploadConcurrency

func (o *AzureBlobFsConfig) SetUploadConcurrency(v int32)

SetUploadConcurrency gets a reference to the given int32 and assigns it to the UploadConcurrency field.

func (*AzureBlobFsConfig) SetUploadPartSize

func (o *AzureBlobFsConfig) SetUploadPartSize(v int32)

SetUploadPartSize gets a reference to the given int32 and assigns it to the UploadPartSize field.

func (*AzureBlobFsConfig) SetUseEmulator

func (o *AzureBlobFsConfig) SetUseEmulator(v bool)

SetUseEmulator gets a reference to the given bool and assigns it to the UseEmulator field.

type BackupData

type BackupData struct {
	Users   []User              `json:"users,omitempty"`
	Folders []BaseVirtualFolder `json:"folders,omitempty"`
	Admins  []Admin             `json:"admins,omitempty"`
	ApiKeys []AuthAPIKey        `json:"api_keys,omitempty"`
	Shares  []Share             `json:"shares,omitempty"`
	Version *int32              `json:"version,omitempty"`
}

BackupData struct for BackupData

func NewBackupData

func NewBackupData() *BackupData

NewBackupData instantiates a new BackupData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBackupDataWithDefaults

func NewBackupDataWithDefaults() *BackupData

NewBackupDataWithDefaults instantiates a new BackupData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BackupData) GetAdmins

func (o *BackupData) GetAdmins() []Admin

GetAdmins returns the Admins field value if set, zero value otherwise.

func (*BackupData) GetAdminsOk

func (o *BackupData) GetAdminsOk() ([]Admin, bool)

GetAdminsOk returns a tuple with the Admins field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupData) GetApiKeys

func (o *BackupData) GetApiKeys() []AuthAPIKey

GetApiKeys returns the ApiKeys field value if set, zero value otherwise.

func (*BackupData) GetApiKeysOk

func (o *BackupData) GetApiKeysOk() ([]AuthAPIKey, bool)

GetApiKeysOk returns a tuple with the ApiKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupData) GetFolders

func (o *BackupData) GetFolders() []BaseVirtualFolder

GetFolders returns the Folders field value if set, zero value otherwise.

func (*BackupData) GetFoldersOk

func (o *BackupData) GetFoldersOk() ([]BaseVirtualFolder, bool)

GetFoldersOk returns a tuple with the Folders field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupData) GetShares

func (o *BackupData) GetShares() []Share

GetShares returns the Shares field value if set, zero value otherwise.

func (*BackupData) GetSharesOk

func (o *BackupData) GetSharesOk() ([]Share, bool)

GetSharesOk returns a tuple with the Shares field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupData) GetUsers

func (o *BackupData) GetUsers() []User

GetUsers returns the Users field value if set, zero value otherwise.

func (*BackupData) GetUsersOk

func (o *BackupData) GetUsersOk() ([]User, bool)

GetUsersOk returns a tuple with the Users field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupData) GetVersion

func (o *BackupData) GetVersion() int32

GetVersion returns the Version field value if set, zero value otherwise.

func (*BackupData) GetVersionOk

func (o *BackupData) GetVersionOk() (*int32, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupData) HasAdmins

func (o *BackupData) HasAdmins() bool

HasAdmins returns a boolean if a field has been set.

func (*BackupData) HasApiKeys

func (o *BackupData) HasApiKeys() bool

HasApiKeys returns a boolean if a field has been set.

func (*BackupData) HasFolders

func (o *BackupData) HasFolders() bool

HasFolders returns a boolean if a field has been set.

func (*BackupData) HasShares

func (o *BackupData) HasShares() bool

HasShares returns a boolean if a field has been set.

func (*BackupData) HasUsers

func (o *BackupData) HasUsers() bool

HasUsers returns a boolean if a field has been set.

func (*BackupData) HasVersion

func (o *BackupData) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (BackupData) MarshalJSON

func (o BackupData) MarshalJSON() ([]byte, error)

func (*BackupData) SetAdmins

func (o *BackupData) SetAdmins(v []Admin)

SetAdmins gets a reference to the given []Admin and assigns it to the Admins field.

func (*BackupData) SetApiKeys

func (o *BackupData) SetApiKeys(v []AuthAPIKey)

SetApiKeys gets a reference to the given []AuthAPIKey and assigns it to the ApiKeys field.

func (*BackupData) SetFolders

func (o *BackupData) SetFolders(v []BaseVirtualFolder)

SetFolders gets a reference to the given []BaseVirtualFolder and assigns it to the Folders field.

func (*BackupData) SetShares

func (o *BackupData) SetShares(v []Share)

SetShares gets a reference to the given []Share and assigns it to the Shares field.

func (*BackupData) SetUsers

func (o *BackupData) SetUsers(v []User)

SetUsers gets a reference to the given []User and assigns it to the Users field.

func (*BackupData) SetVersion

func (o *BackupData) SetVersion(v int32)

SetVersion gets a reference to the given int32 and assigns it to the Version field.

type BanStatus

type BanStatus struct {
	// if null the host is not banned
	DateTime NullableTime `json:"date_time,omitempty"`
}

BanStatus struct for BanStatus

func NewBanStatus

func NewBanStatus() *BanStatus

NewBanStatus instantiates a new BanStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBanStatusWithDefaults

func NewBanStatusWithDefaults() *BanStatus

NewBanStatusWithDefaults instantiates a new BanStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BanStatus) GetDateTime

func (o *BanStatus) GetDateTime() time.Time

GetDateTime returns the DateTime field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BanStatus) GetDateTimeOk

func (o *BanStatus) GetDateTimeOk() (*time.Time, bool)

GetDateTimeOk returns a tuple with the DateTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BanStatus) HasDateTime

func (o *BanStatus) HasDateTime() bool

HasDateTime returns a boolean if a field has been set.

func (BanStatus) MarshalJSON

func (o BanStatus) MarshalJSON() ([]byte, error)

func (*BanStatus) SetDateTime

func (o *BanStatus) SetDateTime(v time.Time)

SetDateTime gets a reference to the given NullableTime and assigns it to the DateTime field.

func (*BanStatus) SetDateTimeNil

func (o *BanStatus) SetDateTimeNil()

SetDateTimeNil sets the value for DateTime to be an explicit nil

func (*BanStatus) UnsetDateTime

func (o *BanStatus) UnsetDateTime()

UnsetDateTime ensures that no value is present for DateTime, not even an explicit nil

type BandwidthLimit

type BandwidthLimit struct {
	// Source networks in CIDR notation as defined in RFC 4632 and RFC 4291 for example `192.0.2.0/24` or `2001:db8::/32`. The limit applies if the defined networks contain the client IP
	Sources []string `json:"sources,omitempty"`
	// Maximum upload bandwidth as KB/s, 0 means unlimited
	UploadBandwidth *int32 `json:"upload_bandwidth,omitempty"`
	// Maximum download bandwidth as KB/s, 0 means unlimited
	DownloadBandwidth *int32 `json:"download_bandwidth,omitempty"`
}

BandwidthLimit struct for BandwidthLimit

func NewBandwidthLimit

func NewBandwidthLimit() *BandwidthLimit

NewBandwidthLimit instantiates a new BandwidthLimit object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBandwidthLimitWithDefaults

func NewBandwidthLimitWithDefaults() *BandwidthLimit

NewBandwidthLimitWithDefaults instantiates a new BandwidthLimit object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BandwidthLimit) GetDownloadBandwidth

func (o *BandwidthLimit) GetDownloadBandwidth() int32

GetDownloadBandwidth returns the DownloadBandwidth field value if set, zero value otherwise.

func (*BandwidthLimit) GetDownloadBandwidthOk

func (o *BandwidthLimit) GetDownloadBandwidthOk() (*int32, bool)

GetDownloadBandwidthOk returns a tuple with the DownloadBandwidth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthLimit) GetSources

func (o *BandwidthLimit) GetSources() []string

GetSources returns the Sources field value if set, zero value otherwise.

func (*BandwidthLimit) GetSourcesOk

func (o *BandwidthLimit) GetSourcesOk() ([]string, bool)

GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthLimit) GetUploadBandwidth

func (o *BandwidthLimit) GetUploadBandwidth() int32

GetUploadBandwidth returns the UploadBandwidth field value if set, zero value otherwise.

func (*BandwidthLimit) GetUploadBandwidthOk

func (o *BandwidthLimit) GetUploadBandwidthOk() (*int32, bool)

GetUploadBandwidthOk returns a tuple with the UploadBandwidth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BandwidthLimit) HasDownloadBandwidth

func (o *BandwidthLimit) HasDownloadBandwidth() bool

HasDownloadBandwidth returns a boolean if a field has been set.

func (*BandwidthLimit) HasSources

func (o *BandwidthLimit) HasSources() bool

HasSources returns a boolean if a field has been set.

func (*BandwidthLimit) HasUploadBandwidth

func (o *BandwidthLimit) HasUploadBandwidth() bool

HasUploadBandwidth returns a boolean if a field has been set.

func (BandwidthLimit) MarshalJSON

func (o BandwidthLimit) MarshalJSON() ([]byte, error)

func (*BandwidthLimit) SetDownloadBandwidth

func (o *BandwidthLimit) SetDownloadBandwidth(v int32)

SetDownloadBandwidth gets a reference to the given int32 and assigns it to the DownloadBandwidth field.

func (*BandwidthLimit) SetSources

func (o *BandwidthLimit) SetSources(v []string)

SetSources gets a reference to the given []string and assigns it to the Sources field.

func (*BandwidthLimit) SetUploadBandwidth

func (o *BandwidthLimit) SetUploadBandwidth(v int32)

SetUploadBandwidth gets a reference to the given int32 and assigns it to the UploadBandwidth field.

type BaseTOTPConfig

type BaseTOTPConfig struct {
	Enabled *bool `json:"enabled,omitempty"`
	// This name must be defined within the \"totp\" section of the SFTPGo configuration file. You will be unable to save a user/admin referencing a missing config_name
	ConfigName *string `json:"config_name,omitempty"`
	Secret     *Secret `json:"secret,omitempty"`
}

BaseTOTPConfig struct for BaseTOTPConfig

func NewBaseTOTPConfig

func NewBaseTOTPConfig() *BaseTOTPConfig

NewBaseTOTPConfig instantiates a new BaseTOTPConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBaseTOTPConfigWithDefaults

func NewBaseTOTPConfigWithDefaults() *BaseTOTPConfig

NewBaseTOTPConfigWithDefaults instantiates a new BaseTOTPConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BaseTOTPConfig) GetConfigName

func (o *BaseTOTPConfig) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*BaseTOTPConfig) GetConfigNameOk

func (o *BaseTOTPConfig) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseTOTPConfig) GetEnabled

func (o *BaseTOTPConfig) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*BaseTOTPConfig) GetEnabledOk

func (o *BaseTOTPConfig) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseTOTPConfig) GetSecret

func (o *BaseTOTPConfig) GetSecret() Secret

GetSecret returns the Secret field value if set, zero value otherwise.

func (*BaseTOTPConfig) GetSecretOk

func (o *BaseTOTPConfig) GetSecretOk() (*Secret, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseTOTPConfig) HasConfigName

func (o *BaseTOTPConfig) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (*BaseTOTPConfig) HasEnabled

func (o *BaseTOTPConfig) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*BaseTOTPConfig) HasSecret

func (o *BaseTOTPConfig) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (BaseTOTPConfig) MarshalJSON

func (o BaseTOTPConfig) MarshalJSON() ([]byte, error)

func (*BaseTOTPConfig) SetConfigName

func (o *BaseTOTPConfig) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

func (*BaseTOTPConfig) SetEnabled

func (o *BaseTOTPConfig) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*BaseTOTPConfig) SetSecret

func (o *BaseTOTPConfig) SetSecret(v Secret)

SetSecret gets a reference to the given Secret and assigns it to the Secret field.

type BaseVirtualFolder

type BaseVirtualFolder struct {
	Id *int32 `json:"id,omitempty"`
	// unique name for this virtual folder
	Name *string `json:"name,omitempty"`
	// absolute filesystem path to use as virtual folder
	MappedPath *string `json:"mapped_path,omitempty"`
	// optional description
	Description    *string `json:"description,omitempty"`
	UsedQuotaSize  *int64  `json:"used_quota_size,omitempty"`
	UsedQuotaFiles *int32  `json:"used_quota_files,omitempty"`
	// Last quota update as unix timestamp in milliseconds
	LastQuotaUpdate *int64 `json:"last_quota_update,omitempty"`
	// list of usernames associated with this virtual folder
	Users      []string          `json:"users,omitempty"`
	Filesystem *FilesystemConfig `json:"filesystem,omitempty"`
}

BaseVirtualFolder Defines the filesystem for the virtual folder and the used quota limits. The same folder can be shared among multiple users and each user can have different quota limits or a different virtual path.

func NewBaseVirtualFolder

func NewBaseVirtualFolder() *BaseVirtualFolder

NewBaseVirtualFolder instantiates a new BaseVirtualFolder object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBaseVirtualFolderWithDefaults

func NewBaseVirtualFolderWithDefaults() *BaseVirtualFolder

NewBaseVirtualFolderWithDefaults instantiates a new BaseVirtualFolder object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BaseVirtualFolder) GetDescription

func (o *BaseVirtualFolder) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetDescriptionOk

func (o *BaseVirtualFolder) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetFilesystem

func (o *BaseVirtualFolder) GetFilesystem() FilesystemConfig

GetFilesystem returns the Filesystem field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetFilesystemOk

func (o *BaseVirtualFolder) GetFilesystemOk() (*FilesystemConfig, bool)

GetFilesystemOk returns a tuple with the Filesystem field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetId

func (o *BaseVirtualFolder) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetIdOk

func (o *BaseVirtualFolder) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetLastQuotaUpdate

func (o *BaseVirtualFolder) GetLastQuotaUpdate() int64

GetLastQuotaUpdate returns the LastQuotaUpdate field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetLastQuotaUpdateOk

func (o *BaseVirtualFolder) GetLastQuotaUpdateOk() (*int64, bool)

GetLastQuotaUpdateOk returns a tuple with the LastQuotaUpdate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetMappedPath

func (o *BaseVirtualFolder) GetMappedPath() string

GetMappedPath returns the MappedPath field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetMappedPathOk

func (o *BaseVirtualFolder) GetMappedPathOk() (*string, bool)

GetMappedPathOk returns a tuple with the MappedPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetName

func (o *BaseVirtualFolder) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetNameOk

func (o *BaseVirtualFolder) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetUsedQuotaFiles

func (o *BaseVirtualFolder) GetUsedQuotaFiles() int32

GetUsedQuotaFiles returns the UsedQuotaFiles field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetUsedQuotaFilesOk

func (o *BaseVirtualFolder) GetUsedQuotaFilesOk() (*int32, bool)

GetUsedQuotaFilesOk returns a tuple with the UsedQuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetUsedQuotaSize

func (o *BaseVirtualFolder) GetUsedQuotaSize() int64

GetUsedQuotaSize returns the UsedQuotaSize field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetUsedQuotaSizeOk

func (o *BaseVirtualFolder) GetUsedQuotaSizeOk() (*int64, bool)

GetUsedQuotaSizeOk returns a tuple with the UsedQuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) GetUsers

func (o *BaseVirtualFolder) GetUsers() []string

GetUsers returns the Users field value if set, zero value otherwise.

func (*BaseVirtualFolder) GetUsersOk

func (o *BaseVirtualFolder) GetUsersOk() ([]string, bool)

GetUsersOk returns a tuple with the Users field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BaseVirtualFolder) HasDescription

func (o *BaseVirtualFolder) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasFilesystem

func (o *BaseVirtualFolder) HasFilesystem() bool

HasFilesystem returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasId

func (o *BaseVirtualFolder) HasId() bool

HasId returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasLastQuotaUpdate

func (o *BaseVirtualFolder) HasLastQuotaUpdate() bool

HasLastQuotaUpdate returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasMappedPath

func (o *BaseVirtualFolder) HasMappedPath() bool

HasMappedPath returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasName

func (o *BaseVirtualFolder) HasName() bool

HasName returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasUsedQuotaFiles

func (o *BaseVirtualFolder) HasUsedQuotaFiles() bool

HasUsedQuotaFiles returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasUsedQuotaSize

func (o *BaseVirtualFolder) HasUsedQuotaSize() bool

HasUsedQuotaSize returns a boolean if a field has been set.

func (*BaseVirtualFolder) HasUsers

func (o *BaseVirtualFolder) HasUsers() bool

HasUsers returns a boolean if a field has been set.

func (BaseVirtualFolder) MarshalJSON

func (o BaseVirtualFolder) MarshalJSON() ([]byte, error)

func (*BaseVirtualFolder) SetDescription

func (o *BaseVirtualFolder) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*BaseVirtualFolder) SetFilesystem

func (o *BaseVirtualFolder) SetFilesystem(v FilesystemConfig)

SetFilesystem gets a reference to the given FilesystemConfig and assigns it to the Filesystem field.

func (*BaseVirtualFolder) SetId

func (o *BaseVirtualFolder) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*BaseVirtualFolder) SetLastQuotaUpdate

func (o *BaseVirtualFolder) SetLastQuotaUpdate(v int64)

SetLastQuotaUpdate gets a reference to the given int64 and assigns it to the LastQuotaUpdate field.

func (*BaseVirtualFolder) SetMappedPath

func (o *BaseVirtualFolder) SetMappedPath(v string)

SetMappedPath gets a reference to the given string and assigns it to the MappedPath field.

func (*BaseVirtualFolder) SetName

func (o *BaseVirtualFolder) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*BaseVirtualFolder) SetUsedQuotaFiles

func (o *BaseVirtualFolder) SetUsedQuotaFiles(v int32)

SetUsedQuotaFiles gets a reference to the given int32 and assigns it to the UsedQuotaFiles field.

func (*BaseVirtualFolder) SetUsedQuotaSize

func (o *BaseVirtualFolder) SetUsedQuotaSize(v int64)

SetUsedQuotaSize gets a reference to the given int64 and assigns it to the UsedQuotaSize field.

func (*BaseVirtualFolder) SetUsers

func (o *BaseVirtualFolder) SetUsers(v []string)

SetUsers gets a reference to the given []string and assigns it to the Users field.

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ConnectionStatus

type ConnectionStatus struct {
	// connected username
	Username *string `json:"username,omitempty"`
	// unique connection identifier
	ConnectionId *string `json:"connection_id,omitempty"`
	// client version
	ClientVersion *string `json:"client_version,omitempty"`
	// Remote address for the connected client
	RemoteAddress *string `json:"remote_address,omitempty"`
	// connection time as unix timestamp in milliseconds
	ConnectionTime *int64 `json:"connection_time,omitempty"`
	// Last SSH/FTP command or WebDAV method
	Command *string `json:"command,omitempty"`
	// last client activity as unix timestamp in milliseconds
	LastActivity    *int64     `json:"last_activity,omitempty"`
	Protocol        *string    `json:"protocol,omitempty"`
	ActiveTransfers []Transfer `json:"active_transfers,omitempty"`
}

ConnectionStatus struct for ConnectionStatus

func NewConnectionStatus

func NewConnectionStatus() *ConnectionStatus

NewConnectionStatus instantiates a new ConnectionStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConnectionStatusWithDefaults

func NewConnectionStatusWithDefaults() *ConnectionStatus

NewConnectionStatusWithDefaults instantiates a new ConnectionStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ConnectionStatus) GetActiveTransfers

func (o *ConnectionStatus) GetActiveTransfers() []Transfer

GetActiveTransfers returns the ActiveTransfers field value if set, zero value otherwise.

func (*ConnectionStatus) GetActiveTransfersOk

func (o *ConnectionStatus) GetActiveTransfersOk() ([]Transfer, bool)

GetActiveTransfersOk returns a tuple with the ActiveTransfers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetClientVersion

func (o *ConnectionStatus) GetClientVersion() string

GetClientVersion returns the ClientVersion field value if set, zero value otherwise.

func (*ConnectionStatus) GetClientVersionOk

func (o *ConnectionStatus) GetClientVersionOk() (*string, bool)

GetClientVersionOk returns a tuple with the ClientVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetCommand

func (o *ConnectionStatus) GetCommand() string

GetCommand returns the Command field value if set, zero value otherwise.

func (*ConnectionStatus) GetCommandOk

func (o *ConnectionStatus) GetCommandOk() (*string, bool)

GetCommandOk returns a tuple with the Command field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetConnectionId

func (o *ConnectionStatus) GetConnectionId() string

GetConnectionId returns the ConnectionId field value if set, zero value otherwise.

func (*ConnectionStatus) GetConnectionIdOk

func (o *ConnectionStatus) GetConnectionIdOk() (*string, bool)

GetConnectionIdOk returns a tuple with the ConnectionId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetConnectionTime

func (o *ConnectionStatus) GetConnectionTime() int64

GetConnectionTime returns the ConnectionTime field value if set, zero value otherwise.

func (*ConnectionStatus) GetConnectionTimeOk

func (o *ConnectionStatus) GetConnectionTimeOk() (*int64, bool)

GetConnectionTimeOk returns a tuple with the ConnectionTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetLastActivity

func (o *ConnectionStatus) GetLastActivity() int64

GetLastActivity returns the LastActivity field value if set, zero value otherwise.

func (*ConnectionStatus) GetLastActivityOk

func (o *ConnectionStatus) GetLastActivityOk() (*int64, bool)

GetLastActivityOk returns a tuple with the LastActivity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetProtocol

func (o *ConnectionStatus) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*ConnectionStatus) GetProtocolOk

func (o *ConnectionStatus) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetRemoteAddress

func (o *ConnectionStatus) GetRemoteAddress() string

GetRemoteAddress returns the RemoteAddress field value if set, zero value otherwise.

func (*ConnectionStatus) GetRemoteAddressOk

func (o *ConnectionStatus) GetRemoteAddressOk() (*string, bool)

GetRemoteAddressOk returns a tuple with the RemoteAddress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) GetUsername

func (o *ConnectionStatus) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*ConnectionStatus) GetUsernameOk

func (o *ConnectionStatus) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConnectionStatus) HasActiveTransfers

func (o *ConnectionStatus) HasActiveTransfers() bool

HasActiveTransfers returns a boolean if a field has been set.

func (*ConnectionStatus) HasClientVersion

func (o *ConnectionStatus) HasClientVersion() bool

HasClientVersion returns a boolean if a field has been set.

func (*ConnectionStatus) HasCommand

func (o *ConnectionStatus) HasCommand() bool

HasCommand returns a boolean if a field has been set.

func (*ConnectionStatus) HasConnectionId

func (o *ConnectionStatus) HasConnectionId() bool

HasConnectionId returns a boolean if a field has been set.

func (*ConnectionStatus) HasConnectionTime

func (o *ConnectionStatus) HasConnectionTime() bool

HasConnectionTime returns a boolean if a field has been set.

func (*ConnectionStatus) HasLastActivity

func (o *ConnectionStatus) HasLastActivity() bool

HasLastActivity returns a boolean if a field has been set.

func (*ConnectionStatus) HasProtocol

func (o *ConnectionStatus) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*ConnectionStatus) HasRemoteAddress

func (o *ConnectionStatus) HasRemoteAddress() bool

HasRemoteAddress returns a boolean if a field has been set.

func (*ConnectionStatus) HasUsername

func (o *ConnectionStatus) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (ConnectionStatus) MarshalJSON

func (o ConnectionStatus) MarshalJSON() ([]byte, error)

func (*ConnectionStatus) SetActiveTransfers

func (o *ConnectionStatus) SetActiveTransfers(v []Transfer)

SetActiveTransfers gets a reference to the given []Transfer and assigns it to the ActiveTransfers field.

func (*ConnectionStatus) SetClientVersion

func (o *ConnectionStatus) SetClientVersion(v string)

SetClientVersion gets a reference to the given string and assigns it to the ClientVersion field.

func (*ConnectionStatus) SetCommand

func (o *ConnectionStatus) SetCommand(v string)

SetCommand gets a reference to the given string and assigns it to the Command field.

func (*ConnectionStatus) SetConnectionId

func (o *ConnectionStatus) SetConnectionId(v string)

SetConnectionId gets a reference to the given string and assigns it to the ConnectionId field.

func (*ConnectionStatus) SetConnectionTime

func (o *ConnectionStatus) SetConnectionTime(v int64)

SetConnectionTime gets a reference to the given int64 and assigns it to the ConnectionTime field.

func (*ConnectionStatus) SetLastActivity

func (o *ConnectionStatus) SetLastActivity(v int64)

SetLastActivity gets a reference to the given int64 and assigns it to the LastActivity field.

func (*ConnectionStatus) SetProtocol

func (o *ConnectionStatus) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (*ConnectionStatus) SetRemoteAddress

func (o *ConnectionStatus) SetRemoteAddress(v string)

SetRemoteAddress gets a reference to the given string and assigns it to the RemoteAddress field.

func (*ConnectionStatus) SetUsername

func (o *ConnectionStatus) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type ConnectionsApiApiCloseConnectionRequest

type ConnectionsApiApiCloseConnectionRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiApiCloseConnectionRequest) Execute

type ConnectionsApiApiGetConnectionsRequest

type ConnectionsApiApiGetConnectionsRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiApiGetConnectionsRequest) Execute

type ConnectionsApiService

type ConnectionsApiService service

ConnectionsApiService ConnectionsApi service

func (*ConnectionsApiService) CloseConnection

CloseConnection Close connection

Terminates an active connection

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param connectionID ID of the connection to close
@return ConnectionsApiApiCloseConnectionRequest

func (*ConnectionsApiService) CloseConnectionExecute

Execute executes the request

@return ApiResponse

func (*ConnectionsApiService) GetConnections

GetConnections Get connections details

Returns the active users and info about their current uploads/downloads

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ConnectionsApiApiGetConnectionsRequest

func (*ConnectionsApiService) GetConnectionsExecute

Execute executes the request

@return []ConnectionStatus

type CryptFsConfig

type CryptFsConfig struct {
	Passphrase *Secret `json:"passphrase,omitempty"`
}

CryptFsConfig Crypt filesystem configuration details

func NewCryptFsConfig

func NewCryptFsConfig() *CryptFsConfig

NewCryptFsConfig instantiates a new CryptFsConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptFsConfigWithDefaults

func NewCryptFsConfigWithDefaults() *CryptFsConfig

NewCryptFsConfigWithDefaults instantiates a new CryptFsConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptFsConfig) GetPassphrase

func (o *CryptFsConfig) GetPassphrase() Secret

GetPassphrase returns the Passphrase field value if set, zero value otherwise.

func (*CryptFsConfig) GetPassphraseOk

func (o *CryptFsConfig) GetPassphraseOk() (*Secret, bool)

GetPassphraseOk returns a tuple with the Passphrase field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptFsConfig) HasPassphrase

func (o *CryptFsConfig) HasPassphrase() bool

HasPassphrase returns a boolean if a field has been set.

func (CryptFsConfig) MarshalJSON

func (o CryptFsConfig) MarshalJSON() ([]byte, error)

func (*CryptFsConfig) SetPassphrase

func (o *CryptFsConfig) SetPassphrase(v Secret)

SetPassphrase gets a reference to the given Secret and assigns it to the Passphrase field.

type DataProviderStatus

type DataProviderStatus struct {
	IsActive *bool   `json:"is_active,omitempty"`
	Driver   *string `json:"driver,omitempty"`
	Error    *string `json:"error,omitempty"`
}

DataProviderStatus struct for DataProviderStatus

func NewDataProviderStatus

func NewDataProviderStatus() *DataProviderStatus

NewDataProviderStatus instantiates a new DataProviderStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDataProviderStatusWithDefaults

func NewDataProviderStatusWithDefaults() *DataProviderStatus

NewDataProviderStatusWithDefaults instantiates a new DataProviderStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DataProviderStatus) GetDriver

func (o *DataProviderStatus) GetDriver() string

GetDriver returns the Driver field value if set, zero value otherwise.

func (*DataProviderStatus) GetDriverOk

func (o *DataProviderStatus) GetDriverOk() (*string, bool)

GetDriverOk returns a tuple with the Driver field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataProviderStatus) GetError

func (o *DataProviderStatus) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*DataProviderStatus) GetErrorOk

func (o *DataProviderStatus) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataProviderStatus) GetIsActive

func (o *DataProviderStatus) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*DataProviderStatus) GetIsActiveOk

func (o *DataProviderStatus) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataProviderStatus) HasDriver

func (o *DataProviderStatus) HasDriver() bool

HasDriver returns a boolean if a field has been set.

func (*DataProviderStatus) HasError

func (o *DataProviderStatus) HasError() bool

HasError returns a boolean if a field has been set.

func (*DataProviderStatus) HasIsActive

func (o *DataProviderStatus) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (DataProviderStatus) MarshalJSON

func (o DataProviderStatus) MarshalJSON() ([]byte, error)

func (*DataProviderStatus) SetDriver

func (o *DataProviderStatus) SetDriver(v string)

SetDriver gets a reference to the given string and assigns it to the Driver field.

func (*DataProviderStatus) SetError

func (o *DataProviderStatus) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*DataProviderStatus) SetIsActive

func (o *DataProviderStatus) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

type DataRetentionApiApiGetUsersRetentionChecksRequest

type DataRetentionApiApiGetUsersRetentionChecksRequest struct {
	ApiService *DataRetentionApiService
	// contains filtered or unexported fields
}

func (DataRetentionApiApiGetUsersRetentionChecksRequest) Execute

type DataRetentionApiApiStartUserRetentionCheckRequest

type DataRetentionApiApiStartUserRetentionCheckRequest struct {
	ApiService *DataRetentionApiService
	// contains filtered or unexported fields
}

func (DataRetentionApiApiStartUserRetentionCheckRequest) Execute

func (DataRetentionApiApiStartUserRetentionCheckRequest) FolderRetention

Defines virtual paths to check and their retention time in hours

func (DataRetentionApiApiStartUserRetentionCheckRequest) Notifications

specify how to notify results

type DataRetentionApiService

type DataRetentionApiService service

DataRetentionApiService DataRetentionApi service

func (*DataRetentionApiService) GetUsersRetentionChecks

GetUsersRetentionChecks Get retention checks

Returns the active retention checks

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return DataRetentionApiApiGetUsersRetentionChecksRequest

func (*DataRetentionApiService) GetUsersRetentionChecksExecute

Execute executes the request

@return []RetentionCheck

func (*DataRetentionApiService) StartUserRetentionCheck

StartUserRetentionCheck Start a retention check

Starts a new retention check for the given user. If a retention check for this user is already active a 409 status code is returned

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return DataRetentionApiApiStartUserRetentionCheckRequest

func (*DataRetentionApiService) StartUserRetentionCheckExecute

Execute executes the request

@return ApiResponse

type DataTransferLimit

type DataTransferLimit struct {
	// Source networks in CIDR notation as defined in RFC 4632 and RFC 4291 for example `192.0.2.0/24` or `2001:db8::/32`. The limit applies if the defined networks contain the client IP
	Sources []string `json:"sources,omitempty"`
	// Maximum data transfer allowed for uploads as MB. 0 means no limit
	UploadDataTransfer *int32 `json:"upload_data_transfer,omitempty"`
	// Maximum data transfer allowed for downloads as MB. 0 means no limit
	DownloadDataTransfer *int32 `json:"download_data_transfer,omitempty"`
	// Maximum total data transfer as MB. 0 means unlimited. You can set a total data transfer instead of the individual values for uploads and downloads
	TotalDataTransfer *int32 `json:"total_data_transfer,omitempty"`
}

DataTransferLimit struct for DataTransferLimit

func NewDataTransferLimit

func NewDataTransferLimit() *DataTransferLimit

NewDataTransferLimit instantiates a new DataTransferLimit object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDataTransferLimitWithDefaults

func NewDataTransferLimitWithDefaults() *DataTransferLimit

NewDataTransferLimitWithDefaults instantiates a new DataTransferLimit object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DataTransferLimit) GetDownloadDataTransfer

func (o *DataTransferLimit) GetDownloadDataTransfer() int32

GetDownloadDataTransfer returns the DownloadDataTransfer field value if set, zero value otherwise.

func (*DataTransferLimit) GetDownloadDataTransferOk

func (o *DataTransferLimit) GetDownloadDataTransferOk() (*int32, bool)

GetDownloadDataTransferOk returns a tuple with the DownloadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataTransferLimit) GetSources

func (o *DataTransferLimit) GetSources() []string

GetSources returns the Sources field value if set, zero value otherwise.

func (*DataTransferLimit) GetSourcesOk

func (o *DataTransferLimit) GetSourcesOk() ([]string, bool)

GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataTransferLimit) GetTotalDataTransfer

func (o *DataTransferLimit) GetTotalDataTransfer() int32

GetTotalDataTransfer returns the TotalDataTransfer field value if set, zero value otherwise.

func (*DataTransferLimit) GetTotalDataTransferOk

func (o *DataTransferLimit) GetTotalDataTransferOk() (*int32, bool)

GetTotalDataTransferOk returns a tuple with the TotalDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataTransferLimit) GetUploadDataTransfer

func (o *DataTransferLimit) GetUploadDataTransfer() int32

GetUploadDataTransfer returns the UploadDataTransfer field value if set, zero value otherwise.

func (*DataTransferLimit) GetUploadDataTransferOk

func (o *DataTransferLimit) GetUploadDataTransferOk() (*int32, bool)

GetUploadDataTransferOk returns a tuple with the UploadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataTransferLimit) HasDownloadDataTransfer

func (o *DataTransferLimit) HasDownloadDataTransfer() bool

HasDownloadDataTransfer returns a boolean if a field has been set.

func (*DataTransferLimit) HasSources

func (o *DataTransferLimit) HasSources() bool

HasSources returns a boolean if a field has been set.

func (*DataTransferLimit) HasTotalDataTransfer

func (o *DataTransferLimit) HasTotalDataTransfer() bool

HasTotalDataTransfer returns a boolean if a field has been set.

func (*DataTransferLimit) HasUploadDataTransfer

func (o *DataTransferLimit) HasUploadDataTransfer() bool

HasUploadDataTransfer returns a boolean if a field has been set.

func (DataTransferLimit) MarshalJSON

func (o DataTransferLimit) MarshalJSON() ([]byte, error)

func (*DataTransferLimit) SetDownloadDataTransfer

func (o *DataTransferLimit) SetDownloadDataTransfer(v int32)

SetDownloadDataTransfer gets a reference to the given int32 and assigns it to the DownloadDataTransfer field.

func (*DataTransferLimit) SetSources

func (o *DataTransferLimit) SetSources(v []string)

SetSources gets a reference to the given []string and assigns it to the Sources field.

func (*DataTransferLimit) SetTotalDataTransfer

func (o *DataTransferLimit) SetTotalDataTransfer(v int32)

SetTotalDataTransfer gets a reference to the given int32 and assigns it to the TotalDataTransfer field.

func (*DataTransferLimit) SetUploadDataTransfer

func (o *DataTransferLimit) SetUploadDataTransfer(v int32)

SetUploadDataTransfer gets a reference to the given int32 and assigns it to the UploadDataTransfer field.

type DefenderApiApiDeleteDefenderHostByIdRequest

type DefenderApiApiDeleteDefenderHostByIdRequest struct {
	ApiService *DefenderApiService
	// contains filtered or unexported fields
}

func (DefenderApiApiDeleteDefenderHostByIdRequest) Execute

type DefenderApiApiGetBanTimeRequest

type DefenderApiApiGetBanTimeRequest struct {
	ApiService *DefenderApiService
	// contains filtered or unexported fields
}

func (DefenderApiApiGetBanTimeRequest) Execute

func (DefenderApiApiGetBanTimeRequest) Ip

IPv4/IPv6 address

type DefenderApiApiGetDefenderHostByIdRequest

type DefenderApiApiGetDefenderHostByIdRequest struct {
	ApiService *DefenderApiService
	// contains filtered or unexported fields
}

func (DefenderApiApiGetDefenderHostByIdRequest) Execute

type DefenderApiApiGetDefenderHostsRequest

type DefenderApiApiGetDefenderHostsRequest struct {
	ApiService *DefenderApiService
	// contains filtered or unexported fields
}

func (DefenderApiApiGetDefenderHostsRequest) Execute

type DefenderApiApiGetScoreRequest

type DefenderApiApiGetScoreRequest struct {
	ApiService *DefenderApiService
	// contains filtered or unexported fields
}

func (DefenderApiApiGetScoreRequest) Execute

func (DefenderApiApiGetScoreRequest) Ip

IPv4/IPv6 address

type DefenderApiApiUnbanHostRequest

type DefenderApiApiUnbanHostRequest struct {
	ApiService *DefenderApiService
	// contains filtered or unexported fields
}

func (DefenderApiApiUnbanHostRequest) Execute

func (DefenderApiApiUnbanHostRequest) InlineObject3

type DefenderApiService

type DefenderApiService service

DefenderApiService DefenderApi service

func (*DefenderApiService) DeleteDefenderHostById

DeleteDefenderHostById Removes a host from the defender lists

Unbans the specified host or clears its violations

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id host id
@return DefenderApiApiDeleteDefenderHostByIdRequest

func (*DefenderApiService) DeleteDefenderHostByIdExecute

Execute executes the request

@return ApiResponse

func (*DefenderApiService) GetBanTime

GetBanTime Get ban time

Deprecated, please use '/defender/hosts', '/defender/hosts/{id}' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return DefenderApiApiGetBanTimeRequest

Deprecated

func (*DefenderApiService) GetBanTimeExecute

Execute executes the request

@return BanStatus

Deprecated

func (*DefenderApiService) GetDefenderHostById

GetDefenderHostById Get host by id

Returns the host with the given id, if it exists

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id host id
@return DefenderApiApiGetDefenderHostByIdRequest

func (*DefenderApiService) GetDefenderHostByIdExecute

Execute executes the request

@return DefenderEntry

func (*DefenderApiService) GetDefenderHosts

GetDefenderHosts Get hosts

Returns hosts that are banned or for which some violations have been detected

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return DefenderApiApiGetDefenderHostsRequest

func (*DefenderApiService) GetDefenderHostsExecute

Execute executes the request

@return []DefenderEntry

func (*DefenderApiService) GetScore

GetScore Get score

Deprecated, please use '/defender/hosts', '/defender/hosts/{id}' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return DefenderApiApiGetScoreRequest

Deprecated

func (*DefenderApiService) GetScoreExecute

Execute executes the request

@return ScoreStatus

Deprecated

func (*DefenderApiService) UnbanHost

UnbanHost Unban

Deprecated, please use '/defender/hosts/{id}' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return DefenderApiApiUnbanHostRequest

Deprecated

func (*DefenderApiService) UnbanHostExecute

Execute executes the request

@return ApiResponse

Deprecated

type DefenderEntry

type DefenderEntry struct {
	Id *string `json:"id,omitempty"`
	Ip *string `json:"ip,omitempty"`
	// the score increases whenever a violation is detected, such as an attempt to log in using an incorrect password or invalid username. If the score exceeds the configured threshold, the IP is banned. Omitted for banned IPs
	Score *int32 `json:"score,omitempty"`
	// date time until the IP is banned. For already banned hosts, the ban time is increased each time a new violation is detected. Omitted if the IP is not banned
	BanTime *time.Time `json:"ban_time,omitempty"`
}

DefenderEntry struct for DefenderEntry

func NewDefenderEntry

func NewDefenderEntry() *DefenderEntry

NewDefenderEntry instantiates a new DefenderEntry object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDefenderEntryWithDefaults

func NewDefenderEntryWithDefaults() *DefenderEntry

NewDefenderEntryWithDefaults instantiates a new DefenderEntry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DefenderEntry) GetBanTime

func (o *DefenderEntry) GetBanTime() time.Time

GetBanTime returns the BanTime field value if set, zero value otherwise.

func (*DefenderEntry) GetBanTimeOk

func (o *DefenderEntry) GetBanTimeOk() (*time.Time, bool)

GetBanTimeOk returns a tuple with the BanTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DefenderEntry) GetId

func (o *DefenderEntry) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*DefenderEntry) GetIdOk

func (o *DefenderEntry) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DefenderEntry) GetIp

func (o *DefenderEntry) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*DefenderEntry) GetIpOk

func (o *DefenderEntry) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DefenderEntry) GetScore

func (o *DefenderEntry) GetScore() int32

GetScore returns the Score field value if set, zero value otherwise.

func (*DefenderEntry) GetScoreOk

func (o *DefenderEntry) GetScoreOk() (*int32, bool)

GetScoreOk returns a tuple with the Score field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DefenderEntry) HasBanTime

func (o *DefenderEntry) HasBanTime() bool

HasBanTime returns a boolean if a field has been set.

func (*DefenderEntry) HasId

func (o *DefenderEntry) HasId() bool

HasId returns a boolean if a field has been set.

func (*DefenderEntry) HasIp

func (o *DefenderEntry) HasIp() bool

HasIp returns a boolean if a field has been set.

func (*DefenderEntry) HasScore

func (o *DefenderEntry) HasScore() bool

HasScore returns a boolean if a field has been set.

func (DefenderEntry) MarshalJSON

func (o DefenderEntry) MarshalJSON() ([]byte, error)

func (*DefenderEntry) SetBanTime

func (o *DefenderEntry) SetBanTime(v time.Time)

SetBanTime gets a reference to the given time.Time and assigns it to the BanTime field.

func (*DefenderEntry) SetId

func (o *DefenderEntry) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*DefenderEntry) SetIp

func (o *DefenderEntry) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

func (*DefenderEntry) SetScore

func (o *DefenderEntry) SetScore(v int32)

SetScore gets a reference to the given int32 and assigns it to the Score field.

type DirEntry

type DirEntry struct {
	// name of the file (or subdirectory) described by the entry. This name is the final element of the path (the base name), not the entire path
	Name *string `json:"name,omitempty"`
	// file size, omitted for folders and non regular files
	Size *int64 `json:"size,omitempty"`
	// File mode and permission bits. More details here: https://golang.org/pkg/io/fs/#FileMode. Let's see some examples: - for a directory mode&2147483648 != 0 - for a symlink mode&134217728 != 0 - for a regular file mode&2401763328 == 0
	Mode         *int32     `json:"mode,omitempty"`
	LastModified *time.Time `json:"last_modified,omitempty"`
}

DirEntry struct for DirEntry

func NewDirEntry

func NewDirEntry() *DirEntry

NewDirEntry instantiates a new DirEntry object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDirEntryWithDefaults

func NewDirEntryWithDefaults() *DirEntry

NewDirEntryWithDefaults instantiates a new DirEntry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DirEntry) GetLastModified

func (o *DirEntry) GetLastModified() time.Time

GetLastModified returns the LastModified field value if set, zero value otherwise.

func (*DirEntry) GetLastModifiedOk

func (o *DirEntry) GetLastModifiedOk() (*time.Time, bool)

GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DirEntry) GetMode

func (o *DirEntry) GetMode() int32

GetMode returns the Mode field value if set, zero value otherwise.

func (*DirEntry) GetModeOk

func (o *DirEntry) GetModeOk() (*int32, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DirEntry) GetName

func (o *DirEntry) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*DirEntry) GetNameOk

func (o *DirEntry) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DirEntry) GetSize

func (o *DirEntry) GetSize() int64

GetSize returns the Size field value if set, zero value otherwise.

func (*DirEntry) GetSizeOk

func (o *DirEntry) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DirEntry) HasLastModified

func (o *DirEntry) HasLastModified() bool

HasLastModified returns a boolean if a field has been set.

func (*DirEntry) HasMode

func (o *DirEntry) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*DirEntry) HasName

func (o *DirEntry) HasName() bool

HasName returns a boolean if a field has been set.

func (*DirEntry) HasSize

func (o *DirEntry) HasSize() bool

HasSize returns a boolean if a field has been set.

func (DirEntry) MarshalJSON

func (o DirEntry) MarshalJSON() ([]byte, error)

func (*DirEntry) SetLastModified

func (o *DirEntry) SetLastModified(v time.Time)

SetLastModified gets a reference to the given time.Time and assigns it to the LastModified field.

func (*DirEntry) SetMode

func (o *DirEntry) SetMode(v int32)

SetMode gets a reference to the given int32 and assigns it to the Mode field.

func (*DirEntry) SetName

func (o *DirEntry) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*DirEntry) SetSize

func (o *DirEntry) SetSize(v int64)

SetSize gets a reference to the given int64 and assigns it to the Size field.

type EventProtocols

type EventProtocols string

EventProtocols Protocols: * `SSH` - SSH commands * `SFTP` - SFTP protocol * `FTP` - plain FTP and FTPES/FTPS * `DAV` - WebDAV * `HTTP` - WebClient/REST API * `DataRetention` - the event is generated by a data retention check

const (
	EVENTPROTOCOLS_SSH            EventProtocols = "SSH"
	EVENTPROTOCOLS_SFTP           EventProtocols = "SFTP"
	EVENTPROTOCOLS_SCP            EventProtocols = "SCP"
	EVENTPROTOCOLS_FTP            EventProtocols = "FTP"
	EVENTPROTOCOLS_DAV            EventProtocols = "DAV"
	EVENTPROTOCOLS_HTTP           EventProtocols = "HTTP"
	EVENTPROTOCOLS_DATA_RETENTION EventProtocols = "DataRetention"
)

List of EventProtocols

func NewEventProtocolsFromValue

func NewEventProtocolsFromValue(v string) (*EventProtocols, error)

NewEventProtocolsFromValue returns a pointer to a valid EventProtocols for the value passed as argument, or an error if the value passed is not allowed by the enum

func (EventProtocols) IsValid

func (v EventProtocols) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (EventProtocols) Ptr

func (v EventProtocols) Ptr() *EventProtocols

Ptr returns reference to EventProtocols value

func (*EventProtocols) UnmarshalJSON

func (v *EventProtocols) UnmarshalJSON(src []byte) error

type EventsApiApiGetFsEventsRequest

type EventsApiApiGetFsEventsRequest struct {
	ApiService *EventsApiService
	// contains filtered or unexported fields
}

func (EventsApiApiGetFsEventsRequest) Actions

the event action must be included among those specified. Empty or missing means omit this filter. Actions must be specified comma separated

func (EventsApiApiGetFsEventsRequest) Bucket

the bucket must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) EndTimestamp

the event timestamp, unix timestamp in nanoseconds, must be less than or equal to the specified one. 0 or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) Endpoint

the endpoint must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) ExcludeIds

the event id must not be included among those specified. This is useful for cursor based pagination. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetFsEventsRequest) Execute

func (EventsApiApiGetFsEventsRequest) FsProvider

the event filesystem provider must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) InstanceIds

the event instance id must be included among those specified. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetFsEventsRequest) Ip

the event IP must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (EventsApiApiGetFsEventsRequest) Order

Ordering events by timestamp. Default DESC

func (EventsApiApiGetFsEventsRequest) Protocols

the event protocol must be included among those specified. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetFsEventsRequest) SshCmd

the event SSH command must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) StartTimestamp

func (r EventsApiApiGetFsEventsRequest) StartTimestamp(startTimestamp int64) EventsApiApiGetFsEventsRequest

the event timestamp, unix timestamp in nanoseconds, must be greater than or equal to the specified one. 0 or missing means omit this filter

func (EventsApiApiGetFsEventsRequest) Statuses

the event status must be included among those specified. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetFsEventsRequest) Username

the event username must be the same as the one specified. Empty or missing means omit this filter

type EventsApiApiGetProviderEventsRequest

type EventsApiApiGetProviderEventsRequest struct {
	ApiService *EventsApiService
	// contains filtered or unexported fields
}

func (EventsApiApiGetProviderEventsRequest) Actions

the event action must be included among those specified. Empty or missing means omit this filter. Actions must be specified comma separated

func (EventsApiApiGetProviderEventsRequest) EndTimestamp

the event timestamp, unix timestamp in nanoseconds, must be less than or equal to the specified one. 0 or missing means omit this filter

func (EventsApiApiGetProviderEventsRequest) ExcludeIds

the event id must not be included among those specified. This is useful for cursor based pagination. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetProviderEventsRequest) Execute

func (EventsApiApiGetProviderEventsRequest) InstanceIds

the event instance id must be included among those specified. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetProviderEventsRequest) Ip

the event IP must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetProviderEventsRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (EventsApiApiGetProviderEventsRequest) ObjectName

the event object name must be the same as the one specified. Empty or missing means omit this filter

func (EventsApiApiGetProviderEventsRequest) ObjectTypes

the event object type must be included among those specified. Empty or missing means omit this filter. Values must be specified comma separated

func (EventsApiApiGetProviderEventsRequest) Order

Ordering events by timestamp. Default DESC

func (EventsApiApiGetProviderEventsRequest) StartTimestamp

the event timestamp, unix timestamp in nanoseconds, must be greater than or equal to the specified one. 0 or missing means omit this filter

func (EventsApiApiGetProviderEventsRequest) Username

the event username must be the same as the one specified. Empty or missing means omit this filter

type EventsApiService

type EventsApiService service

EventsApiService EventsApi service

func (*EventsApiService) GetFsEvents

GetFsEvents Get filesystem events

Returns an array with one or more filesystem events applying the specified filters. This API is only available if you configure an "eventsearcher" plugin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return EventsApiApiGetFsEventsRequest

func (*EventsApiService) GetFsEventsExecute

Execute executes the request

@return []FsEvent

func (*EventsApiService) GetProviderEvents

GetProviderEvents Get provider events

Returns an array with one or more provider events applying the specified filters. This API is only available if you configure an "eventsearcher" plugin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return EventsApiApiGetProviderEventsRequest

func (*EventsApiService) GetProviderEventsExecute

Execute executes the request

@return []ProviderEvent

type FTPDBinding

type FTPDBinding struct {
	// TCP address the server listen on
	Address *string `json:"address,omitempty"`
	// the port used for serving requests
	Port *int32 `json:"port,omitempty"`
	// apply the proxy configuration, if any
	ApplyProxyConfig *bool `json:"apply_proxy_config,omitempty"`
	// TLS mode:   * `0` - clear or explicit TLS   * `1` - explicit TLS required   * `2` - implicit TLS
	TlsMode *int32 `json:"tls_mode,omitempty"`
	// External IP address to expose for passive connections
	ForcePassiveIp *string `json:"force_passive_ip,omitempty"`
	// 1 means that client certificate authentication is required in addition to FTP authentication
	ClientAuthType *int32 `json:"client_auth_type,omitempty"`
}

FTPDBinding struct for FTPDBinding

func NewFTPDBinding

func NewFTPDBinding() *FTPDBinding

NewFTPDBinding instantiates a new FTPDBinding object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFTPDBindingWithDefaults

func NewFTPDBindingWithDefaults() *FTPDBinding

NewFTPDBindingWithDefaults instantiates a new FTPDBinding object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FTPDBinding) GetAddress

func (o *FTPDBinding) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*FTPDBinding) GetAddressOk

func (o *FTPDBinding) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPDBinding) GetApplyProxyConfig

func (o *FTPDBinding) GetApplyProxyConfig() bool

GetApplyProxyConfig returns the ApplyProxyConfig field value if set, zero value otherwise.

func (*FTPDBinding) GetApplyProxyConfigOk

func (o *FTPDBinding) GetApplyProxyConfigOk() (*bool, bool)

GetApplyProxyConfigOk returns a tuple with the ApplyProxyConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPDBinding) GetClientAuthType

func (o *FTPDBinding) GetClientAuthType() int32

GetClientAuthType returns the ClientAuthType field value if set, zero value otherwise.

func (*FTPDBinding) GetClientAuthTypeOk

func (o *FTPDBinding) GetClientAuthTypeOk() (*int32, bool)

GetClientAuthTypeOk returns a tuple with the ClientAuthType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPDBinding) GetForcePassiveIp

func (o *FTPDBinding) GetForcePassiveIp() string

GetForcePassiveIp returns the ForcePassiveIp field value if set, zero value otherwise.

func (*FTPDBinding) GetForcePassiveIpOk

func (o *FTPDBinding) GetForcePassiveIpOk() (*string, bool)

GetForcePassiveIpOk returns a tuple with the ForcePassiveIp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPDBinding) GetPort

func (o *FTPDBinding) GetPort() int32

GetPort returns the Port field value if set, zero value otherwise.

func (*FTPDBinding) GetPortOk

func (o *FTPDBinding) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPDBinding) GetTlsMode

func (o *FTPDBinding) GetTlsMode() int32

GetTlsMode returns the TlsMode field value if set, zero value otherwise.

func (*FTPDBinding) GetTlsModeOk

func (o *FTPDBinding) GetTlsModeOk() (*int32, bool)

GetTlsModeOk returns a tuple with the TlsMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPDBinding) HasAddress

func (o *FTPDBinding) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*FTPDBinding) HasApplyProxyConfig

func (o *FTPDBinding) HasApplyProxyConfig() bool

HasApplyProxyConfig returns a boolean if a field has been set.

func (*FTPDBinding) HasClientAuthType

func (o *FTPDBinding) HasClientAuthType() bool

HasClientAuthType returns a boolean if a field has been set.

func (*FTPDBinding) HasForcePassiveIp

func (o *FTPDBinding) HasForcePassiveIp() bool

HasForcePassiveIp returns a boolean if a field has been set.

func (*FTPDBinding) HasPort

func (o *FTPDBinding) HasPort() bool

HasPort returns a boolean if a field has been set.

func (*FTPDBinding) HasTlsMode

func (o *FTPDBinding) HasTlsMode() bool

HasTlsMode returns a boolean if a field has been set.

func (FTPDBinding) MarshalJSON

func (o FTPDBinding) MarshalJSON() ([]byte, error)

func (*FTPDBinding) SetAddress

func (o *FTPDBinding) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*FTPDBinding) SetApplyProxyConfig

func (o *FTPDBinding) SetApplyProxyConfig(v bool)

SetApplyProxyConfig gets a reference to the given bool and assigns it to the ApplyProxyConfig field.

func (*FTPDBinding) SetClientAuthType

func (o *FTPDBinding) SetClientAuthType(v int32)

SetClientAuthType gets a reference to the given int32 and assigns it to the ClientAuthType field.

func (*FTPDBinding) SetForcePassiveIp

func (o *FTPDBinding) SetForcePassiveIp(v string)

SetForcePassiveIp gets a reference to the given string and assigns it to the ForcePassiveIp field.

func (*FTPDBinding) SetPort

func (o *FTPDBinding) SetPort(v int32)

SetPort gets a reference to the given int32 and assigns it to the Port field.

func (*FTPDBinding) SetTlsMode

func (o *FTPDBinding) SetTlsMode(v int32)

SetTlsMode gets a reference to the given int32 and assigns it to the TlsMode field.

type FTPPassivePortRange

type FTPPassivePortRange struct {
	Start *int32 `json:"start,omitempty"`
	End   *int32 `json:"end,omitempty"`
}

FTPPassivePortRange struct for FTPPassivePortRange

func NewFTPPassivePortRange

func NewFTPPassivePortRange() *FTPPassivePortRange

NewFTPPassivePortRange instantiates a new FTPPassivePortRange object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFTPPassivePortRangeWithDefaults

func NewFTPPassivePortRangeWithDefaults() *FTPPassivePortRange

NewFTPPassivePortRangeWithDefaults instantiates a new FTPPassivePortRange object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FTPPassivePortRange) GetEnd

func (o *FTPPassivePortRange) GetEnd() int32

GetEnd returns the End field value if set, zero value otherwise.

func (*FTPPassivePortRange) GetEndOk

func (o *FTPPassivePortRange) GetEndOk() (*int32, bool)

GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPPassivePortRange) GetStart

func (o *FTPPassivePortRange) GetStart() int32

GetStart returns the Start field value if set, zero value otherwise.

func (*FTPPassivePortRange) GetStartOk

func (o *FTPPassivePortRange) GetStartOk() (*int32, bool)

GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPPassivePortRange) HasEnd

func (o *FTPPassivePortRange) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*FTPPassivePortRange) HasStart

func (o *FTPPassivePortRange) HasStart() bool

HasStart returns a boolean if a field has been set.

func (FTPPassivePortRange) MarshalJSON

func (o FTPPassivePortRange) MarshalJSON() ([]byte, error)

func (*FTPPassivePortRange) SetEnd

func (o *FTPPassivePortRange) SetEnd(v int32)

SetEnd gets a reference to the given int32 and assigns it to the End field.

func (*FTPPassivePortRange) SetStart

func (o *FTPPassivePortRange) SetStart(v int32)

SetStart gets a reference to the given int32 and assigns it to the Start field.

type FTPServiceStatus

type FTPServiceStatus struct {
	IsActive         *bool                `json:"is_active,omitempty"`
	Bindings         []FTPDBinding        `json:"bindings,omitempty"`
	PassivePortRange *FTPPassivePortRange `json:"passive_port_range,omitempty"`
}

FTPServiceStatus struct for FTPServiceStatus

func NewFTPServiceStatus

func NewFTPServiceStatus() *FTPServiceStatus

NewFTPServiceStatus instantiates a new FTPServiceStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFTPServiceStatusWithDefaults

func NewFTPServiceStatusWithDefaults() *FTPServiceStatus

NewFTPServiceStatusWithDefaults instantiates a new FTPServiceStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FTPServiceStatus) GetBindings

func (o *FTPServiceStatus) GetBindings() []FTPDBinding

GetBindings returns the Bindings field value if set, zero value otherwise (both if not set or set to explicit null).

func (*FTPServiceStatus) GetBindingsOk

func (o *FTPServiceStatus) GetBindingsOk() ([]FTPDBinding, bool)

GetBindingsOk returns a tuple with the Bindings field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*FTPServiceStatus) GetIsActive

func (o *FTPServiceStatus) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*FTPServiceStatus) GetIsActiveOk

func (o *FTPServiceStatus) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPServiceStatus) GetPassivePortRange

func (o *FTPServiceStatus) GetPassivePortRange() FTPPassivePortRange

GetPassivePortRange returns the PassivePortRange field value if set, zero value otherwise.

func (*FTPServiceStatus) GetPassivePortRangeOk

func (o *FTPServiceStatus) GetPassivePortRangeOk() (*FTPPassivePortRange, bool)

GetPassivePortRangeOk returns a tuple with the PassivePortRange field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FTPServiceStatus) HasBindings

func (o *FTPServiceStatus) HasBindings() bool

HasBindings returns a boolean if a field has been set.

func (*FTPServiceStatus) HasIsActive

func (o *FTPServiceStatus) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (*FTPServiceStatus) HasPassivePortRange

func (o *FTPServiceStatus) HasPassivePortRange() bool

HasPassivePortRange returns a boolean if a field has been set.

func (FTPServiceStatus) MarshalJSON

func (o FTPServiceStatus) MarshalJSON() ([]byte, error)

func (*FTPServiceStatus) SetBindings

func (o *FTPServiceStatus) SetBindings(v []FTPDBinding)

SetBindings gets a reference to the given []FTPDBinding and assigns it to the Bindings field.

func (*FTPServiceStatus) SetIsActive

func (o *FTPServiceStatus) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

func (*FTPServiceStatus) SetPassivePortRange

func (o *FTPServiceStatus) SetPassivePortRange(v FTPPassivePortRange)

SetPassivePortRange gets a reference to the given FTPPassivePortRange and assigns it to the PassivePortRange field.

type FilesystemConfig

type FilesystemConfig struct {
	Provider     *FsProviders       `json:"provider,omitempty"`
	S3config     *S3Config          `json:"s3config,omitempty"`
	Gcsconfig    *GCSConfig         `json:"gcsconfig,omitempty"`
	Azblobconfig *AzureBlobFsConfig `json:"azblobconfig,omitempty"`
	Cryptconfig  *CryptFsConfig     `json:"cryptconfig,omitempty"`
	Sftpconfig   *SFTPFsConfig      `json:"sftpconfig,omitempty"`
}

FilesystemConfig Storage filesystem details

func NewFilesystemConfig

func NewFilesystemConfig() *FilesystemConfig

NewFilesystemConfig instantiates a new FilesystemConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFilesystemConfigWithDefaults

func NewFilesystemConfigWithDefaults() *FilesystemConfig

NewFilesystemConfigWithDefaults instantiates a new FilesystemConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FilesystemConfig) GetAzblobconfig

func (o *FilesystemConfig) GetAzblobconfig() AzureBlobFsConfig

GetAzblobconfig returns the Azblobconfig field value if set, zero value otherwise.

func (*FilesystemConfig) GetAzblobconfigOk

func (o *FilesystemConfig) GetAzblobconfigOk() (*AzureBlobFsConfig, bool)

GetAzblobconfigOk returns a tuple with the Azblobconfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FilesystemConfig) GetCryptconfig

func (o *FilesystemConfig) GetCryptconfig() CryptFsConfig

GetCryptconfig returns the Cryptconfig field value if set, zero value otherwise.

func (*FilesystemConfig) GetCryptconfigOk

func (o *FilesystemConfig) GetCryptconfigOk() (*CryptFsConfig, bool)

GetCryptconfigOk returns a tuple with the Cryptconfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FilesystemConfig) GetGcsconfig

func (o *FilesystemConfig) GetGcsconfig() GCSConfig

GetGcsconfig returns the Gcsconfig field value if set, zero value otherwise.

func (*FilesystemConfig) GetGcsconfigOk

func (o *FilesystemConfig) GetGcsconfigOk() (*GCSConfig, bool)

GetGcsconfigOk returns a tuple with the Gcsconfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FilesystemConfig) GetProvider

func (o *FilesystemConfig) GetProvider() FsProviders

GetProvider returns the Provider field value if set, zero value otherwise.

func (*FilesystemConfig) GetProviderOk

func (o *FilesystemConfig) GetProviderOk() (*FsProviders, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FilesystemConfig) GetS3config

func (o *FilesystemConfig) GetS3config() S3Config

GetS3config returns the S3config field value if set, zero value otherwise.

func (*FilesystemConfig) GetS3configOk

func (o *FilesystemConfig) GetS3configOk() (*S3Config, bool)

GetS3configOk returns a tuple with the S3config field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FilesystemConfig) GetSftpconfig

func (o *FilesystemConfig) GetSftpconfig() SFTPFsConfig

GetSftpconfig returns the Sftpconfig field value if set, zero value otherwise.

func (*FilesystemConfig) GetSftpconfigOk

func (o *FilesystemConfig) GetSftpconfigOk() (*SFTPFsConfig, bool)

GetSftpconfigOk returns a tuple with the Sftpconfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FilesystemConfig) HasAzblobconfig

func (o *FilesystemConfig) HasAzblobconfig() bool

HasAzblobconfig returns a boolean if a field has been set.

func (*FilesystemConfig) HasCryptconfig

func (o *FilesystemConfig) HasCryptconfig() bool

HasCryptconfig returns a boolean if a field has been set.

func (*FilesystemConfig) HasGcsconfig

func (o *FilesystemConfig) HasGcsconfig() bool

HasGcsconfig returns a boolean if a field has been set.

func (*FilesystemConfig) HasProvider

func (o *FilesystemConfig) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*FilesystemConfig) HasS3config

func (o *FilesystemConfig) HasS3config() bool

HasS3config returns a boolean if a field has been set.

func (*FilesystemConfig) HasSftpconfig

func (o *FilesystemConfig) HasSftpconfig() bool

HasSftpconfig returns a boolean if a field has been set.

func (FilesystemConfig) MarshalJSON

func (o FilesystemConfig) MarshalJSON() ([]byte, error)

func (*FilesystemConfig) SetAzblobconfig

func (o *FilesystemConfig) SetAzblobconfig(v AzureBlobFsConfig)

SetAzblobconfig gets a reference to the given AzureBlobFsConfig and assigns it to the Azblobconfig field.

func (*FilesystemConfig) SetCryptconfig

func (o *FilesystemConfig) SetCryptconfig(v CryptFsConfig)

SetCryptconfig gets a reference to the given CryptFsConfig and assigns it to the Cryptconfig field.

func (*FilesystemConfig) SetGcsconfig

func (o *FilesystemConfig) SetGcsconfig(v GCSConfig)

SetGcsconfig gets a reference to the given GCSConfig and assigns it to the Gcsconfig field.

func (*FilesystemConfig) SetProvider

func (o *FilesystemConfig) SetProvider(v FsProviders)

SetProvider gets a reference to the given FsProviders and assigns it to the Provider field.

func (*FilesystemConfig) SetS3config

func (o *FilesystemConfig) SetS3config(v S3Config)

SetS3config gets a reference to the given S3Config and assigns it to the S3config field.

func (*FilesystemConfig) SetSftpconfig

func (o *FilesystemConfig) SetSftpconfig(v SFTPFsConfig)

SetSftpconfig gets a reference to the given SFTPFsConfig and assigns it to the Sftpconfig field.

type FolderQuotaScan

type FolderQuotaScan struct {
	// folder name to which the quota scan refers
	Name *string `json:"name,omitempty"`
	// scan start time as unix timestamp in milliseconds
	StartTime *int64 `json:"start_time,omitempty"`
}

FolderQuotaScan struct for FolderQuotaScan

func NewFolderQuotaScan

func NewFolderQuotaScan() *FolderQuotaScan

NewFolderQuotaScan instantiates a new FolderQuotaScan object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFolderQuotaScanWithDefaults

func NewFolderQuotaScanWithDefaults() *FolderQuotaScan

NewFolderQuotaScanWithDefaults instantiates a new FolderQuotaScan object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FolderQuotaScan) GetName

func (o *FolderQuotaScan) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*FolderQuotaScan) GetNameOk

func (o *FolderQuotaScan) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FolderQuotaScan) GetStartTime

func (o *FolderQuotaScan) GetStartTime() int64

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*FolderQuotaScan) GetStartTimeOk

func (o *FolderQuotaScan) GetStartTimeOk() (*int64, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FolderQuotaScan) HasName

func (o *FolderQuotaScan) HasName() bool

HasName returns a boolean if a field has been set.

func (*FolderQuotaScan) HasStartTime

func (o *FolderQuotaScan) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (FolderQuotaScan) MarshalJSON

func (o FolderQuotaScan) MarshalJSON() ([]byte, error)

func (*FolderQuotaScan) SetName

func (o *FolderQuotaScan) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*FolderQuotaScan) SetStartTime

func (o *FolderQuotaScan) SetStartTime(v int64)

SetStartTime gets a reference to the given int64 and assigns it to the StartTime field.

type FolderRetention

type FolderRetention struct {
	// exposed virtual directory path, if no other specific retention is defined, the retention applies for sub directories too. For example if retention is defined for the paths \"/\" and \"/sub\" then the retention for \"/\" is applied for any file outside the \"/sub\" directory
	Path *string `json:"path,omitempty"`
	// retention time in hours. All the files with a modification time older than the defined value will be deleted. 0 means exclude this path
	Retention *int32 `json:"retention,omitempty"`
	// if enabled, empty directories will be deleted
	DeleteEmptyDirs *bool `json:"delete_empty_dirs,omitempty"`
	// if enabled, files will be deleted even if the user does not have the delete permission. The default is \"false\" which means that files will be skipped if the user does not have permission to delete them. File patterns filters will always be silently ignored
	IgnoreUserPermissions *bool `json:"ignore_user_permissions,omitempty"`
}

FolderRetention struct for FolderRetention

func NewFolderRetention

func NewFolderRetention() *FolderRetention

NewFolderRetention instantiates a new FolderRetention object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFolderRetentionWithDefaults

func NewFolderRetentionWithDefaults() *FolderRetention

NewFolderRetentionWithDefaults instantiates a new FolderRetention object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FolderRetention) GetDeleteEmptyDirs

func (o *FolderRetention) GetDeleteEmptyDirs() bool

GetDeleteEmptyDirs returns the DeleteEmptyDirs field value if set, zero value otherwise.

func (*FolderRetention) GetDeleteEmptyDirsOk

func (o *FolderRetention) GetDeleteEmptyDirsOk() (*bool, bool)

GetDeleteEmptyDirsOk returns a tuple with the DeleteEmptyDirs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FolderRetention) GetIgnoreUserPermissions

func (o *FolderRetention) GetIgnoreUserPermissions() bool

GetIgnoreUserPermissions returns the IgnoreUserPermissions field value if set, zero value otherwise.

func (*FolderRetention) GetIgnoreUserPermissionsOk

func (o *FolderRetention) GetIgnoreUserPermissionsOk() (*bool, bool)

GetIgnoreUserPermissionsOk returns a tuple with the IgnoreUserPermissions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FolderRetention) GetPath

func (o *FolderRetention) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*FolderRetention) GetPathOk

func (o *FolderRetention) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FolderRetention) GetRetention

func (o *FolderRetention) GetRetention() int32

GetRetention returns the Retention field value if set, zero value otherwise.

func (*FolderRetention) GetRetentionOk

func (o *FolderRetention) GetRetentionOk() (*int32, bool)

GetRetentionOk returns a tuple with the Retention field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FolderRetention) HasDeleteEmptyDirs

func (o *FolderRetention) HasDeleteEmptyDirs() bool

HasDeleteEmptyDirs returns a boolean if a field has been set.

func (*FolderRetention) HasIgnoreUserPermissions

func (o *FolderRetention) HasIgnoreUserPermissions() bool

HasIgnoreUserPermissions returns a boolean if a field has been set.

func (*FolderRetention) HasPath

func (o *FolderRetention) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*FolderRetention) HasRetention

func (o *FolderRetention) HasRetention() bool

HasRetention returns a boolean if a field has been set.

func (FolderRetention) MarshalJSON

func (o FolderRetention) MarshalJSON() ([]byte, error)

func (*FolderRetention) SetDeleteEmptyDirs

func (o *FolderRetention) SetDeleteEmptyDirs(v bool)

SetDeleteEmptyDirs gets a reference to the given bool and assigns it to the DeleteEmptyDirs field.

func (*FolderRetention) SetIgnoreUserPermissions

func (o *FolderRetention) SetIgnoreUserPermissions(v bool)

SetIgnoreUserPermissions gets a reference to the given bool and assigns it to the IgnoreUserPermissions field.

func (*FolderRetention) SetPath

func (o *FolderRetention) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*FolderRetention) SetRetention

func (o *FolderRetention) SetRetention(v int32)

SetRetention gets a reference to the given int32 and assigns it to the Retention field.

type FoldersApiApiAddFolderRequest

type FoldersApiApiAddFolderRequest struct {
	ApiService *FoldersApiService
	// contains filtered or unexported fields
}

func (FoldersApiApiAddFolderRequest) BaseVirtualFolder

func (r FoldersApiApiAddFolderRequest) BaseVirtualFolder(baseVirtualFolder BaseVirtualFolder) FoldersApiApiAddFolderRequest

func (FoldersApiApiAddFolderRequest) Execute

type FoldersApiApiDeleteFolderRequest

type FoldersApiApiDeleteFolderRequest struct {
	ApiService *FoldersApiService
	// contains filtered or unexported fields
}

func (FoldersApiApiDeleteFolderRequest) Execute

type FoldersApiApiGetFolderByNameRequest

type FoldersApiApiGetFolderByNameRequest struct {
	ApiService *FoldersApiService
	// contains filtered or unexported fields
}

func (FoldersApiApiGetFolderByNameRequest) Execute

type FoldersApiApiGetFoldersRequest

type FoldersApiApiGetFoldersRequest struct {
	ApiService *FoldersApiService
	// contains filtered or unexported fields
}

func (FoldersApiApiGetFoldersRequest) Execute

func (FoldersApiApiGetFoldersRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (FoldersApiApiGetFoldersRequest) Offset

func (FoldersApiApiGetFoldersRequest) Order

Ordering folders by path. Default ASC

type FoldersApiApiUpdateFolderRequest

type FoldersApiApiUpdateFolderRequest struct {
	ApiService *FoldersApiService
	// contains filtered or unexported fields
}

func (FoldersApiApiUpdateFolderRequest) BaseVirtualFolder

func (FoldersApiApiUpdateFolderRequest) Execute

type FoldersApiService

type FoldersApiService service

FoldersApiService FoldersApi service

func (*FoldersApiService) AddFolder

AddFolder Add folder

Adds a new folder. A quota scan is required to update the used files/size

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return FoldersApiApiAddFolderRequest

func (*FoldersApiService) AddFolderExecute

Execute executes the request

@return BaseVirtualFolder

func (*FoldersApiService) DeleteFolder

DeleteFolder Delete folder

Deletes an existing folder

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name folder name
@return FoldersApiApiDeleteFolderRequest

func (*FoldersApiService) DeleteFolderExecute

Execute executes the request

@return ApiResponse

func (*FoldersApiService) GetFolderByName

GetFolderByName Find folders by name

Returns the folder with the given name if it exists.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name folder name
@return FoldersApiApiGetFolderByNameRequest

func (*FoldersApiService) GetFolderByNameExecute

Execute executes the request

@return BaseVirtualFolder

func (*FoldersApiService) GetFolders

GetFolders Get folders

Returns an array with one or more folders

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return FoldersApiApiGetFoldersRequest

func (*FoldersApiService) GetFoldersExecute

Execute executes the request

@return []BaseVirtualFolder

func (*FoldersApiService) UpdateFolder

UpdateFolder Update folder

Updates an existing folder

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name folder name
@return FoldersApiApiUpdateFolderRequest

func (*FoldersApiService) UpdateFolderExecute

Execute executes the request

@return ApiResponse

type FsEvent

type FsEvent struct {
	Id *string `json:"id,omitempty"`
	// unix timestamp in nanoseconds
	Timestamp         *int64          `json:"timestamp,omitempty"`
	Action            *FsEventAction  `json:"action,omitempty"`
	Username          *string         `json:"username,omitempty"`
	FsPath            *string         `json:"fs_path,omitempty"`
	FsTargetPath      *string         `json:"fs_target_path,omitempty"`
	VirtualPath       *string         `json:"virtual_path,omitempty"`
	VirtualTargetPath *string         `json:"virtual_target_path,omitempty"`
	SshCmd            *string         `json:"ssh_cmd,omitempty"`
	FileSize          *int64          `json:"file_size,omitempty"`
	Status            *FsEventStatus  `json:"status,omitempty"`
	Protocol          *EventProtocols `json:"protocol,omitempty"`
	Ip                *string         `json:"ip,omitempty"`
	SessionId         *string         `json:"session_id,omitempty"`
	FsProvider        *FsProviders    `json:"fs_provider,omitempty"`
	Bucket            *string         `json:"bucket,omitempty"`
	Endpoint          *string         `json:"endpoint,omitempty"`
	OpenFlags         *string         `json:"open_flags,omitempty"`
	InstanceId        *string         `json:"instance_id,omitempty"`
}

FsEvent struct for FsEvent

func NewFsEvent

func NewFsEvent() *FsEvent

NewFsEvent instantiates a new FsEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFsEventWithDefaults

func NewFsEventWithDefaults() *FsEvent

NewFsEventWithDefaults instantiates a new FsEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FsEvent) GetAction

func (o *FsEvent) GetAction() FsEventAction

GetAction returns the Action field value if set, zero value otherwise.

func (*FsEvent) GetActionOk

func (o *FsEvent) GetActionOk() (*FsEventAction, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetBucket

func (o *FsEvent) GetBucket() string

GetBucket returns the Bucket field value if set, zero value otherwise.

func (*FsEvent) GetBucketOk

func (o *FsEvent) GetBucketOk() (*string, bool)

GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetEndpoint

func (o *FsEvent) GetEndpoint() string

GetEndpoint returns the Endpoint field value if set, zero value otherwise.

func (*FsEvent) GetEndpointOk

func (o *FsEvent) GetEndpointOk() (*string, bool)

GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetFileSize

func (o *FsEvent) GetFileSize() int64

GetFileSize returns the FileSize field value if set, zero value otherwise.

func (*FsEvent) GetFileSizeOk

func (o *FsEvent) GetFileSizeOk() (*int64, bool)

GetFileSizeOk returns a tuple with the FileSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetFsPath

func (o *FsEvent) GetFsPath() string

GetFsPath returns the FsPath field value if set, zero value otherwise.

func (*FsEvent) GetFsPathOk

func (o *FsEvent) GetFsPathOk() (*string, bool)

GetFsPathOk returns a tuple with the FsPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetFsProvider

func (o *FsEvent) GetFsProvider() FsProviders

GetFsProvider returns the FsProvider field value if set, zero value otherwise.

func (*FsEvent) GetFsProviderOk

func (o *FsEvent) GetFsProviderOk() (*FsProviders, bool)

GetFsProviderOk returns a tuple with the FsProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetFsTargetPath

func (o *FsEvent) GetFsTargetPath() string

GetFsTargetPath returns the FsTargetPath field value if set, zero value otherwise.

func (*FsEvent) GetFsTargetPathOk

func (o *FsEvent) GetFsTargetPathOk() (*string, bool)

GetFsTargetPathOk returns a tuple with the FsTargetPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetId

func (o *FsEvent) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*FsEvent) GetIdOk

func (o *FsEvent) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetInstanceId

func (o *FsEvent) GetInstanceId() string

GetInstanceId returns the InstanceId field value if set, zero value otherwise.

func (*FsEvent) GetInstanceIdOk

func (o *FsEvent) GetInstanceIdOk() (*string, bool)

GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetIp

func (o *FsEvent) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*FsEvent) GetIpOk

func (o *FsEvent) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetOpenFlags

func (o *FsEvent) GetOpenFlags() string

GetOpenFlags returns the OpenFlags field value if set, zero value otherwise.

func (*FsEvent) GetOpenFlagsOk

func (o *FsEvent) GetOpenFlagsOk() (*string, bool)

GetOpenFlagsOk returns a tuple with the OpenFlags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetProtocol

func (o *FsEvent) GetProtocol() EventProtocols

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*FsEvent) GetProtocolOk

func (o *FsEvent) GetProtocolOk() (*EventProtocols, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetSessionId

func (o *FsEvent) GetSessionId() string

GetSessionId returns the SessionId field value if set, zero value otherwise.

func (*FsEvent) GetSessionIdOk

func (o *FsEvent) GetSessionIdOk() (*string, bool)

GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetSshCmd

func (o *FsEvent) GetSshCmd() string

GetSshCmd returns the SshCmd field value if set, zero value otherwise.

func (*FsEvent) GetSshCmdOk

func (o *FsEvent) GetSshCmdOk() (*string, bool)

GetSshCmdOk returns a tuple with the SshCmd field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetStatus

func (o *FsEvent) GetStatus() FsEventStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*FsEvent) GetStatusOk

func (o *FsEvent) GetStatusOk() (*FsEventStatus, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetTimestamp

func (o *FsEvent) GetTimestamp() int64

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*FsEvent) GetTimestampOk

func (o *FsEvent) GetTimestampOk() (*int64, bool)

GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetUsername

func (o *FsEvent) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*FsEvent) GetUsernameOk

func (o *FsEvent) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetVirtualPath

func (o *FsEvent) GetVirtualPath() string

GetVirtualPath returns the VirtualPath field value if set, zero value otherwise.

func (*FsEvent) GetVirtualPathOk

func (o *FsEvent) GetVirtualPathOk() (*string, bool)

GetVirtualPathOk returns a tuple with the VirtualPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) GetVirtualTargetPath

func (o *FsEvent) GetVirtualTargetPath() string

GetVirtualTargetPath returns the VirtualTargetPath field value if set, zero value otherwise.

func (*FsEvent) GetVirtualTargetPathOk

func (o *FsEvent) GetVirtualTargetPathOk() (*string, bool)

GetVirtualTargetPathOk returns a tuple with the VirtualTargetPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsEvent) HasAction

func (o *FsEvent) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*FsEvent) HasBucket

func (o *FsEvent) HasBucket() bool

HasBucket returns a boolean if a field has been set.

func (*FsEvent) HasEndpoint

func (o *FsEvent) HasEndpoint() bool

HasEndpoint returns a boolean if a field has been set.

func (*FsEvent) HasFileSize

func (o *FsEvent) HasFileSize() bool

HasFileSize returns a boolean if a field has been set.

func (*FsEvent) HasFsPath

func (o *FsEvent) HasFsPath() bool

HasFsPath returns a boolean if a field has been set.

func (*FsEvent) HasFsProvider

func (o *FsEvent) HasFsProvider() bool

HasFsProvider returns a boolean if a field has been set.

func (*FsEvent) HasFsTargetPath

func (o *FsEvent) HasFsTargetPath() bool

HasFsTargetPath returns a boolean if a field has been set.

func (*FsEvent) HasId

func (o *FsEvent) HasId() bool

HasId returns a boolean if a field has been set.

func (*FsEvent) HasInstanceId

func (o *FsEvent) HasInstanceId() bool

HasInstanceId returns a boolean if a field has been set.

func (*FsEvent) HasIp

func (o *FsEvent) HasIp() bool

HasIp returns a boolean if a field has been set.

func (*FsEvent) HasOpenFlags

func (o *FsEvent) HasOpenFlags() bool

HasOpenFlags returns a boolean if a field has been set.

func (*FsEvent) HasProtocol

func (o *FsEvent) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*FsEvent) HasSessionId

func (o *FsEvent) HasSessionId() bool

HasSessionId returns a boolean if a field has been set.

func (*FsEvent) HasSshCmd

func (o *FsEvent) HasSshCmd() bool

HasSshCmd returns a boolean if a field has been set.

func (*FsEvent) HasStatus

func (o *FsEvent) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*FsEvent) HasTimestamp

func (o *FsEvent) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (*FsEvent) HasUsername

func (o *FsEvent) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (*FsEvent) HasVirtualPath

func (o *FsEvent) HasVirtualPath() bool

HasVirtualPath returns a boolean if a field has been set.

func (*FsEvent) HasVirtualTargetPath

func (o *FsEvent) HasVirtualTargetPath() bool

HasVirtualTargetPath returns a boolean if a field has been set.

func (FsEvent) MarshalJSON

func (o FsEvent) MarshalJSON() ([]byte, error)

func (*FsEvent) SetAction

func (o *FsEvent) SetAction(v FsEventAction)

SetAction gets a reference to the given FsEventAction and assigns it to the Action field.

func (*FsEvent) SetBucket

func (o *FsEvent) SetBucket(v string)

SetBucket gets a reference to the given string and assigns it to the Bucket field.

func (*FsEvent) SetEndpoint

func (o *FsEvent) SetEndpoint(v string)

SetEndpoint gets a reference to the given string and assigns it to the Endpoint field.

func (*FsEvent) SetFileSize

func (o *FsEvent) SetFileSize(v int64)

SetFileSize gets a reference to the given int64 and assigns it to the FileSize field.

func (*FsEvent) SetFsPath

func (o *FsEvent) SetFsPath(v string)

SetFsPath gets a reference to the given string and assigns it to the FsPath field.

func (*FsEvent) SetFsProvider

func (o *FsEvent) SetFsProvider(v FsProviders)

SetFsProvider gets a reference to the given FsProviders and assigns it to the FsProvider field.

func (*FsEvent) SetFsTargetPath

func (o *FsEvent) SetFsTargetPath(v string)

SetFsTargetPath gets a reference to the given string and assigns it to the FsTargetPath field.

func (*FsEvent) SetId

func (o *FsEvent) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*FsEvent) SetInstanceId

func (o *FsEvent) SetInstanceId(v string)

SetInstanceId gets a reference to the given string and assigns it to the InstanceId field.

func (*FsEvent) SetIp

func (o *FsEvent) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

func (*FsEvent) SetOpenFlags

func (o *FsEvent) SetOpenFlags(v string)

SetOpenFlags gets a reference to the given string and assigns it to the OpenFlags field.

func (*FsEvent) SetProtocol

func (o *FsEvent) SetProtocol(v EventProtocols)

SetProtocol gets a reference to the given EventProtocols and assigns it to the Protocol field.

func (*FsEvent) SetSessionId

func (o *FsEvent) SetSessionId(v string)

SetSessionId gets a reference to the given string and assigns it to the SessionId field.

func (*FsEvent) SetSshCmd

func (o *FsEvent) SetSshCmd(v string)

SetSshCmd gets a reference to the given string and assigns it to the SshCmd field.

func (*FsEvent) SetStatus

func (o *FsEvent) SetStatus(v FsEventStatus)

SetStatus gets a reference to the given FsEventStatus and assigns it to the Status field.

func (*FsEvent) SetTimestamp

func (o *FsEvent) SetTimestamp(v int64)

SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field.

func (*FsEvent) SetUsername

func (o *FsEvent) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

func (*FsEvent) SetVirtualPath

func (o *FsEvent) SetVirtualPath(v string)

SetVirtualPath gets a reference to the given string and assigns it to the VirtualPath field.

func (*FsEvent) SetVirtualTargetPath

func (o *FsEvent) SetVirtualTargetPath(v string)

SetVirtualTargetPath gets a reference to the given string and assigns it to the VirtualTargetPath field.

type FsEventAction

type FsEventAction string

FsEventAction the model 'FsEventAction'

const (
	FSEVENTACTION_DOWNLOAD   FsEventAction = "download"
	FSEVENTACTION_PRE_UPLOAD FsEventAction = "pre-upload"
	FSEVENTACTION_UPLOAD     FsEventAction = "upload"
	FSEVENTACTION_DELETE     FsEventAction = "delete"
	FSEVENTACTION_RENAME     FsEventAction = "rename"
	FSEVENTACTION_MKDIR      FsEventAction = "mkdir"
	FSEVENTACTION_RMDIR      FsEventAction = "rmdir"
	FSEVENTACTION_SSH_CMD    FsEventAction = "ssh_cmd"
)

List of FsEventAction

func NewFsEventActionFromValue

func NewFsEventActionFromValue(v string) (*FsEventAction, error)

NewFsEventActionFromValue returns a pointer to a valid FsEventAction for the value passed as argument, or an error if the value passed is not allowed by the enum

func (FsEventAction) IsValid

func (v FsEventAction) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (FsEventAction) Ptr

func (v FsEventAction) Ptr() *FsEventAction

Ptr returns reference to FsEventAction value

func (*FsEventAction) UnmarshalJSON

func (v *FsEventAction) UnmarshalJSON(src []byte) error

type FsEventStatus

type FsEventStatus int32

FsEventStatus Event status: * `1` - no error * `2` - generic error * `3` - quota exceeded error

const (
	FSEVENTSTATUS__1 FsEventStatus = 1
	FSEVENTSTATUS__2 FsEventStatus = 2
	FSEVENTSTATUS__3 FsEventStatus = 3
)

List of FsEventStatus

func NewFsEventStatusFromValue

func NewFsEventStatusFromValue(v int32) (*FsEventStatus, error)

NewFsEventStatusFromValue returns a pointer to a valid FsEventStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (FsEventStatus) IsValid

func (v FsEventStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (FsEventStatus) Ptr

func (v FsEventStatus) Ptr() *FsEventStatus

Ptr returns reference to FsEventStatus value

func (*FsEventStatus) UnmarshalJSON

func (v *FsEventStatus) UnmarshalJSON(src []byte) error

type FsProviders

type FsProviders int32

FsProviders Filesystem providers: * `0` - Local filesystem * `1` - S3 Compatible Object Storage * `2` - Google Cloud Storage * `3` - Azure Blob Storage * `4` - Local filesystem encrypted * `5` - SFTP

const (
	FSPROVIDERS__0 FsProviders = 0
	FSPROVIDERS__1 FsProviders = 1
	FSPROVIDERS__2 FsProviders = 2
	FSPROVIDERS__3 FsProviders = 3
	FSPROVIDERS__4 FsProviders = 4
	FSPROVIDERS__5 FsProviders = 5
)

List of FsProviders

func NewFsProvidersFromValue

func NewFsProvidersFromValue(v int32) (*FsProviders, error)

NewFsProvidersFromValue returns a pointer to a valid FsProviders for the value passed as argument, or an error if the value passed is not allowed by the enum

func (FsProviders) IsValid

func (v FsProviders) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (FsProviders) Ptr

func (v FsProviders) Ptr() *FsProviders

Ptr returns reference to FsProviders value

func (*FsProviders) UnmarshalJSON

func (v *FsProviders) UnmarshalJSON(src []byte) error

type GCSConfig

type GCSConfig struct {
	Bucket      *string `json:"bucket,omitempty"`
	Credentials *Secret `json:"credentials,omitempty"`
	// Automatic credentials:   * `0` - disabled, explicit credentials, using a JSON credentials file, must be provided. This is the default value if the field is null   * `1` - enabled, we try to use the Application Default Credentials (ADC) strategy to find your application's credentials
	AutomaticCredentials *int32  `json:"automatic_credentials,omitempty"`
	StorageClass         *string `json:"storage_class,omitempty"`
	// The ACL to apply to uploaded objects. Leave empty to use the default ACL. For more information and available ACLs, refer to the JSON API here: https://cloud.google.com/storage/docs/access-control/lists#predefined-acl
	Acl *string `json:"acl,omitempty"`
	// key_prefix is similar to a chroot directory for a local filesystem. If specified the user will only see contents that starts with this prefix and so you can restrict access to a specific virtual folder. The prefix, if not empty, must not start with \"/\" and must end with \"/\". If empty the whole bucket contents will be available
	KeyPrefix *string `json:"key_prefix,omitempty"`
}

GCSConfig Google Cloud Storage configuration details. The \"credentials\" field must be populated only when adding/updating a user. It will be always omitted, since there are sensitive data, when you search/get users

func NewGCSConfig

func NewGCSConfig() *GCSConfig

NewGCSConfig instantiates a new GCSConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGCSConfigWithDefaults

func NewGCSConfigWithDefaults() *GCSConfig

NewGCSConfigWithDefaults instantiates a new GCSConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GCSConfig) GetAcl

func (o *GCSConfig) GetAcl() string

GetAcl returns the Acl field value if set, zero value otherwise.

func (*GCSConfig) GetAclOk

func (o *GCSConfig) GetAclOk() (*string, bool)

GetAclOk returns a tuple with the Acl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GCSConfig) GetAutomaticCredentials

func (o *GCSConfig) GetAutomaticCredentials() int32

GetAutomaticCredentials returns the AutomaticCredentials field value if set, zero value otherwise.

func (*GCSConfig) GetAutomaticCredentialsOk

func (o *GCSConfig) GetAutomaticCredentialsOk() (*int32, bool)

GetAutomaticCredentialsOk returns a tuple with the AutomaticCredentials field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GCSConfig) GetBucket

func (o *GCSConfig) GetBucket() string

GetBucket returns the Bucket field value if set, zero value otherwise.

func (*GCSConfig) GetBucketOk

func (o *GCSConfig) GetBucketOk() (*string, bool)

GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GCSConfig) GetCredentials

func (o *GCSConfig) GetCredentials() Secret

GetCredentials returns the Credentials field value if set, zero value otherwise.

func (*GCSConfig) GetCredentialsOk

func (o *GCSConfig) GetCredentialsOk() (*Secret, bool)

GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GCSConfig) GetKeyPrefix

func (o *GCSConfig) GetKeyPrefix() string

GetKeyPrefix returns the KeyPrefix field value if set, zero value otherwise.

func (*GCSConfig) GetKeyPrefixOk

func (o *GCSConfig) GetKeyPrefixOk() (*string, bool)

GetKeyPrefixOk returns a tuple with the KeyPrefix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GCSConfig) GetStorageClass

func (o *GCSConfig) GetStorageClass() string

GetStorageClass returns the StorageClass field value if set, zero value otherwise.

func (*GCSConfig) GetStorageClassOk

func (o *GCSConfig) GetStorageClassOk() (*string, bool)

GetStorageClassOk returns a tuple with the StorageClass field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GCSConfig) HasAcl

func (o *GCSConfig) HasAcl() bool

HasAcl returns a boolean if a field has been set.

func (*GCSConfig) HasAutomaticCredentials

func (o *GCSConfig) HasAutomaticCredentials() bool

HasAutomaticCredentials returns a boolean if a field has been set.

func (*GCSConfig) HasBucket

func (o *GCSConfig) HasBucket() bool

HasBucket returns a boolean if a field has been set.

func (*GCSConfig) HasCredentials

func (o *GCSConfig) HasCredentials() bool

HasCredentials returns a boolean if a field has been set.

func (*GCSConfig) HasKeyPrefix

func (o *GCSConfig) HasKeyPrefix() bool

HasKeyPrefix returns a boolean if a field has been set.

func (*GCSConfig) HasStorageClass

func (o *GCSConfig) HasStorageClass() bool

HasStorageClass returns a boolean if a field has been set.

func (GCSConfig) MarshalJSON

func (o GCSConfig) MarshalJSON() ([]byte, error)

func (*GCSConfig) SetAcl

func (o *GCSConfig) SetAcl(v string)

SetAcl gets a reference to the given string and assigns it to the Acl field.

func (*GCSConfig) SetAutomaticCredentials

func (o *GCSConfig) SetAutomaticCredentials(v int32)

SetAutomaticCredentials gets a reference to the given int32 and assigns it to the AutomaticCredentials field.

func (*GCSConfig) SetBucket

func (o *GCSConfig) SetBucket(v string)

SetBucket gets a reference to the given string and assigns it to the Bucket field.

func (*GCSConfig) SetCredentials

func (o *GCSConfig) SetCredentials(v Secret)

SetCredentials gets a reference to the given Secret and assigns it to the Credentials field.

func (*GCSConfig) SetKeyPrefix

func (o *GCSConfig) SetKeyPrefix(v string)

SetKeyPrefix gets a reference to the given string and assigns it to the KeyPrefix field.

func (*GCSConfig) SetStorageClass

func (o *GCSConfig) SetStorageClass(v string)

SetStorageClass gets a reference to the given string and assigns it to the StorageClass field.

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type HealthcheckApiApiHealthzRequest

type HealthcheckApiApiHealthzRequest struct {
	ApiService *HealthcheckApiService
	// contains filtered or unexported fields
}

func (HealthcheckApiApiHealthzRequest) Execute

type HealthcheckApiService

type HealthcheckApiService service

HealthcheckApiService HealthcheckApi service

func (*HealthcheckApiService) Healthz

Healthz health check

This endpoint can be used to check if the application is running and responding to requests

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return HealthcheckApiApiHealthzRequest

func (*HealthcheckApiService) HealthzExecute

Execute executes the request

@return string

type HooksFilter

type HooksFilter struct {
	// If true, the external auth hook, if defined, will not be executed
	ExternalAuthDisabled *bool `json:"external_auth_disabled,omitempty"`
	// If true, the pre-login hook, if defined, will not be executed
	PreLoginDisabled *bool `json:"pre_login_disabled,omitempty"`
	// If true, the check password hook, if defined, will not be executed
	CheckPasswordDisabled *bool `json:"check_password_disabled,omitempty"`
}

HooksFilter User specific hook overrides

func NewHooksFilter

func NewHooksFilter() *HooksFilter

NewHooksFilter instantiates a new HooksFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHooksFilterWithDefaults

func NewHooksFilterWithDefaults() *HooksFilter

NewHooksFilterWithDefaults instantiates a new HooksFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HooksFilter) GetCheckPasswordDisabled

func (o *HooksFilter) GetCheckPasswordDisabled() bool

GetCheckPasswordDisabled returns the CheckPasswordDisabled field value if set, zero value otherwise.

func (*HooksFilter) GetCheckPasswordDisabledOk

func (o *HooksFilter) GetCheckPasswordDisabledOk() (*bool, bool)

GetCheckPasswordDisabledOk returns a tuple with the CheckPasswordDisabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HooksFilter) GetExternalAuthDisabled

func (o *HooksFilter) GetExternalAuthDisabled() bool

GetExternalAuthDisabled returns the ExternalAuthDisabled field value if set, zero value otherwise.

func (*HooksFilter) GetExternalAuthDisabledOk

func (o *HooksFilter) GetExternalAuthDisabledOk() (*bool, bool)

GetExternalAuthDisabledOk returns a tuple with the ExternalAuthDisabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HooksFilter) GetPreLoginDisabled

func (o *HooksFilter) GetPreLoginDisabled() bool

GetPreLoginDisabled returns the PreLoginDisabled field value if set, zero value otherwise.

func (*HooksFilter) GetPreLoginDisabledOk

func (o *HooksFilter) GetPreLoginDisabledOk() (*bool, bool)

GetPreLoginDisabledOk returns a tuple with the PreLoginDisabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HooksFilter) HasCheckPasswordDisabled

func (o *HooksFilter) HasCheckPasswordDisabled() bool

HasCheckPasswordDisabled returns a boolean if a field has been set.

func (*HooksFilter) HasExternalAuthDisabled

func (o *HooksFilter) HasExternalAuthDisabled() bool

HasExternalAuthDisabled returns a boolean if a field has been set.

func (*HooksFilter) HasPreLoginDisabled

func (o *HooksFilter) HasPreLoginDisabled() bool

HasPreLoginDisabled returns a boolean if a field has been set.

func (HooksFilter) MarshalJSON

func (o HooksFilter) MarshalJSON() ([]byte, error)

func (*HooksFilter) SetCheckPasswordDisabled

func (o *HooksFilter) SetCheckPasswordDisabled(v bool)

SetCheckPasswordDisabled gets a reference to the given bool and assigns it to the CheckPasswordDisabled field.

func (*HooksFilter) SetExternalAuthDisabled

func (o *HooksFilter) SetExternalAuthDisabled(v bool)

SetExternalAuthDisabled gets a reference to the given bool and assigns it to the ExternalAuthDisabled field.

func (*HooksFilter) SetPreLoginDisabled

func (o *HooksFilter) SetPreLoginDisabled(v bool)

SetPreLoginDisabled gets a reference to the given bool and assigns it to the PreLoginDisabled field.

type InlineObject1

type InlineObject1 struct {
	// name of the configuration to use to generate the secret
	ConfigName *string `json:"config_name,omitempty"`
}

InlineObject1 struct for InlineObject1

func NewInlineObject1

func NewInlineObject1() *InlineObject1

NewInlineObject1 instantiates a new InlineObject1 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject1WithDefaults

func NewInlineObject1WithDefaults() *InlineObject1

NewInlineObject1WithDefaults instantiates a new InlineObject1 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject1) GetConfigName

func (o *InlineObject1) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*InlineObject1) GetConfigNameOk

func (o *InlineObject1) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject1) HasConfigName

func (o *InlineObject1) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (InlineObject1) MarshalJSON

func (o InlineObject1) MarshalJSON() ([]byte, error)

func (*InlineObject1) SetConfigName

func (o *InlineObject1) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

type InlineObject2

type InlineObject2 struct {
	// name of the configuration to use to validate the passcode
	ConfigName *string `json:"config_name,omitempty"`
	// passcode to validate
	Passcode *string `json:"passcode,omitempty"`
	// secret to use to validate the passcode
	Secret *string `json:"secret,omitempty"`
}

InlineObject2 struct for InlineObject2

func NewInlineObject2

func NewInlineObject2() *InlineObject2

NewInlineObject2 instantiates a new InlineObject2 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject2WithDefaults

func NewInlineObject2WithDefaults() *InlineObject2

NewInlineObject2WithDefaults instantiates a new InlineObject2 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject2) GetConfigName

func (o *InlineObject2) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*InlineObject2) GetConfigNameOk

func (o *InlineObject2) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject2) GetPasscode

func (o *InlineObject2) GetPasscode() string

GetPasscode returns the Passcode field value if set, zero value otherwise.

func (*InlineObject2) GetPasscodeOk

func (o *InlineObject2) GetPasscodeOk() (*string, bool)

GetPasscodeOk returns a tuple with the Passcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject2) GetSecret

func (o *InlineObject2) GetSecret() string

GetSecret returns the Secret field value if set, zero value otherwise.

func (*InlineObject2) GetSecretOk

func (o *InlineObject2) GetSecretOk() (*string, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject2) HasConfigName

func (o *InlineObject2) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (*InlineObject2) HasPasscode

func (o *InlineObject2) HasPasscode() bool

HasPasscode returns a boolean if a field has been set.

func (*InlineObject2) HasSecret

func (o *InlineObject2) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (InlineObject2) MarshalJSON

func (o InlineObject2) MarshalJSON() ([]byte, error)

func (*InlineObject2) SetConfigName

func (o *InlineObject2) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

func (*InlineObject2) SetPasscode

func (o *InlineObject2) SetPasscode(v string)

SetPasscode gets a reference to the given string and assigns it to the Passcode field.

func (*InlineObject2) SetSecret

func (o *InlineObject2) SetSecret(v string)

SetSecret gets a reference to the given string and assigns it to the Secret field.

type InlineObject3

type InlineObject3 struct {
	// IPv4/IPv6 address to remove
	Ip *string `json:"ip,omitempty"`
}

InlineObject3 struct for InlineObject3

func NewInlineObject3

func NewInlineObject3() *InlineObject3

NewInlineObject3 instantiates a new InlineObject3 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject3WithDefaults

func NewInlineObject3WithDefaults() *InlineObject3

NewInlineObject3WithDefaults instantiates a new InlineObject3 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject3) GetIp

func (o *InlineObject3) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*InlineObject3) GetIpOk

func (o *InlineObject3) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject3) HasIp

func (o *InlineObject3) HasIp() bool

HasIp returns a boolean if a field has been set.

func (InlineObject3) MarshalJSON

func (o InlineObject3) MarshalJSON() ([]byte, error)

func (*InlineObject3) SetIp

func (o *InlineObject3) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

type InlineObject4

type InlineObject4 struct {
	Code     *string `json:"code,omitempty"`
	Password *string `json:"password,omitempty"`
}

InlineObject4 struct for InlineObject4

func NewInlineObject4

func NewInlineObject4() *InlineObject4

NewInlineObject4 instantiates a new InlineObject4 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject4WithDefaults

func NewInlineObject4WithDefaults() *InlineObject4

NewInlineObject4WithDefaults instantiates a new InlineObject4 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject4) GetCode

func (o *InlineObject4) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*InlineObject4) GetCodeOk

func (o *InlineObject4) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject4) GetPassword

func (o *InlineObject4) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*InlineObject4) GetPasswordOk

func (o *InlineObject4) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject4) HasCode

func (o *InlineObject4) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*InlineObject4) HasPassword

func (o *InlineObject4) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (InlineObject4) MarshalJSON

func (o InlineObject4) MarshalJSON() ([]byte, error)

func (*InlineObject4) SetCode

func (o *InlineObject4) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*InlineObject4) SetPassword

func (o *InlineObject4) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

type InlineObject5

type InlineObject5 struct {
	Code     *string `json:"code,omitempty"`
	Password *string `json:"password,omitempty"`
}

InlineObject5 struct for InlineObject5

func NewInlineObject5

func NewInlineObject5() *InlineObject5

NewInlineObject5 instantiates a new InlineObject5 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject5WithDefaults

func NewInlineObject5WithDefaults() *InlineObject5

NewInlineObject5WithDefaults instantiates a new InlineObject5 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject5) GetCode

func (o *InlineObject5) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*InlineObject5) GetCodeOk

func (o *InlineObject5) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject5) GetPassword

func (o *InlineObject5) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*InlineObject5) GetPasswordOk

func (o *InlineObject5) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject5) HasCode

func (o *InlineObject5) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*InlineObject5) HasPassword

func (o *InlineObject5) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (InlineObject5) MarshalJSON

func (o InlineObject5) MarshalJSON() ([]byte, error)

func (*InlineObject5) SetCode

func (o *InlineObject5) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*InlineObject5) SetPassword

func (o *InlineObject5) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

type InlineObject6

type InlineObject6 struct {
	// name of the configuration to use to generate the secret
	ConfigName *string `json:"config_name,omitempty"`
}

InlineObject6 struct for InlineObject6

func NewInlineObject6

func NewInlineObject6() *InlineObject6

NewInlineObject6 instantiates a new InlineObject6 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject6WithDefaults

func NewInlineObject6WithDefaults() *InlineObject6

NewInlineObject6WithDefaults instantiates a new InlineObject6 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject6) GetConfigName

func (o *InlineObject6) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*InlineObject6) GetConfigNameOk

func (o *InlineObject6) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject6) HasConfigName

func (o *InlineObject6) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (InlineObject6) MarshalJSON

func (o InlineObject6) MarshalJSON() ([]byte, error)

func (*InlineObject6) SetConfigName

func (o *InlineObject6) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

type InlineObject7

type InlineObject7 struct {
	// name of the configuration to use to validate the passcode
	ConfigName *string `json:"config_name,omitempty"`
	// passcode to validate
	Passcode *string `json:"passcode,omitempty"`
	// secret to use to validate the passcode
	Secret *string `json:"secret,omitempty"`
}

InlineObject7 struct for InlineObject7

func NewInlineObject7

func NewInlineObject7() *InlineObject7

NewInlineObject7 instantiates a new InlineObject7 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject7WithDefaults

func NewInlineObject7WithDefaults() *InlineObject7

NewInlineObject7WithDefaults instantiates a new InlineObject7 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject7) GetConfigName

func (o *InlineObject7) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*InlineObject7) GetConfigNameOk

func (o *InlineObject7) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject7) GetPasscode

func (o *InlineObject7) GetPasscode() string

GetPasscode returns the Passcode field value if set, zero value otherwise.

func (*InlineObject7) GetPasscodeOk

func (o *InlineObject7) GetPasscodeOk() (*string, bool)

GetPasscodeOk returns a tuple with the Passcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject7) GetSecret

func (o *InlineObject7) GetSecret() string

GetSecret returns the Secret field value if set, zero value otherwise.

func (*InlineObject7) GetSecretOk

func (o *InlineObject7) GetSecretOk() (*string, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject7) HasConfigName

func (o *InlineObject7) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (*InlineObject7) HasPasscode

func (o *InlineObject7) HasPasscode() bool

HasPasscode returns a boolean if a field has been set.

func (*InlineObject7) HasSecret

func (o *InlineObject7) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (InlineObject7) MarshalJSON

func (o InlineObject7) MarshalJSON() ([]byte, error)

func (*InlineObject7) SetConfigName

func (o *InlineObject7) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

func (*InlineObject7) SetPasscode

func (o *InlineObject7) SetPasscode(v string)

SetPasscode gets a reference to the given string and assigns it to the Passcode field.

func (*InlineObject7) SetSecret

func (o *InlineObject7) SetSecret(v string)

SetSecret gets a reference to the given string and assigns it to the Secret field.

type InlineObject9

type InlineObject9 struct {
	// File modification time as unix timestamp in milliseconds
	ModificationTime *int32 `json:"modification_time,omitempty"`
}

InlineObject9 struct for InlineObject9

func NewInlineObject9

func NewInlineObject9() *InlineObject9

NewInlineObject9 instantiates a new InlineObject9 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineObject9WithDefaults

func NewInlineObject9WithDefaults() *InlineObject9

NewInlineObject9WithDefaults instantiates a new InlineObject9 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineObject9) GetModificationTime

func (o *InlineObject9) GetModificationTime() int32

GetModificationTime returns the ModificationTime field value if set, zero value otherwise.

func (*InlineObject9) GetModificationTimeOk

func (o *InlineObject9) GetModificationTimeOk() (*int32, bool)

GetModificationTimeOk returns a tuple with the ModificationTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineObject9) HasModificationTime

func (o *InlineObject9) HasModificationTime() bool

HasModificationTime returns a boolean if a field has been set.

func (InlineObject9) MarshalJSON

func (o InlineObject9) MarshalJSON() ([]byte, error)

func (*InlineObject9) SetModificationTime

func (o *InlineObject9) SetModificationTime(v int32)

SetModificationTime gets a reference to the given int32 and assigns it to the ModificationTime field.

type InlineResponse200

type InlineResponse200 struct {
	ConfigName *string `json:"config_name,omitempty"`
	Issuer     *string `json:"issuer,omitempty"`
	Secret     *string `json:"secret,omitempty"`
	// QR code png encoded as BASE64
	QrCode *string `json:"qr_code,omitempty"`
}

InlineResponse200 struct for InlineResponse200

func NewInlineResponse200

func NewInlineResponse200() *InlineResponse200

NewInlineResponse200 instantiates a new InlineResponse200 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineResponse200WithDefaults

func NewInlineResponse200WithDefaults() *InlineResponse200

NewInlineResponse200WithDefaults instantiates a new InlineResponse200 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineResponse200) GetConfigName

func (o *InlineResponse200) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*InlineResponse200) GetConfigNameOk

func (o *InlineResponse200) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineResponse200) GetIssuer

func (o *InlineResponse200) GetIssuer() string

GetIssuer returns the Issuer field value if set, zero value otherwise.

func (*InlineResponse200) GetIssuerOk

func (o *InlineResponse200) GetIssuerOk() (*string, bool)

GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineResponse200) GetQrCode

func (o *InlineResponse200) GetQrCode() string

GetQrCode returns the QrCode field value if set, zero value otherwise.

func (*InlineResponse200) GetQrCodeOk

func (o *InlineResponse200) GetQrCodeOk() (*string, bool)

GetQrCodeOk returns a tuple with the QrCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineResponse200) GetSecret

func (o *InlineResponse200) GetSecret() string

GetSecret returns the Secret field value if set, zero value otherwise.

func (*InlineResponse200) GetSecretOk

func (o *InlineResponse200) GetSecretOk() (*string, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineResponse200) HasConfigName

func (o *InlineResponse200) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (*InlineResponse200) HasIssuer

func (o *InlineResponse200) HasIssuer() bool

HasIssuer returns a boolean if a field has been set.

func (*InlineResponse200) HasQrCode

func (o *InlineResponse200) HasQrCode() bool

HasQrCode returns a boolean if a field has been set.

func (*InlineResponse200) HasSecret

func (o *InlineResponse200) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (InlineResponse200) MarshalJSON

func (o InlineResponse200) MarshalJSON() ([]byte, error)

func (*InlineResponse200) SetConfigName

func (o *InlineResponse200) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

func (*InlineResponse200) SetIssuer

func (o *InlineResponse200) SetIssuer(v string)

SetIssuer gets a reference to the given string and assigns it to the Issuer field.

func (*InlineResponse200) SetQrCode

func (o *InlineResponse200) SetQrCode(v string)

SetQrCode gets a reference to the given string and assigns it to the QrCode field.

func (*InlineResponse200) SetSecret

func (o *InlineResponse200) SetSecret(v string)

SetSecret gets a reference to the given string and assigns it to the Secret field.

type InlineResponse201

type InlineResponse201 struct {
	Mesage *string `json:"mesage,omitempty"`
	// generated API key
	Key *string `json:"key,omitempty"`
}

InlineResponse201 struct for InlineResponse201

func NewInlineResponse201

func NewInlineResponse201() *InlineResponse201

NewInlineResponse201 instantiates a new InlineResponse201 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineResponse201WithDefaults

func NewInlineResponse201WithDefaults() *InlineResponse201

NewInlineResponse201WithDefaults instantiates a new InlineResponse201 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineResponse201) GetKey

func (o *InlineResponse201) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*InlineResponse201) GetKeyOk

func (o *InlineResponse201) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineResponse201) GetMesage

func (o *InlineResponse201) GetMesage() string

GetMesage returns the Mesage field value if set, zero value otherwise.

func (*InlineResponse201) GetMesageOk

func (o *InlineResponse201) GetMesageOk() (*string, bool)

GetMesageOk returns a tuple with the Mesage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InlineResponse201) HasKey

func (o *InlineResponse201) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*InlineResponse201) HasMesage

func (o *InlineResponse201) HasMesage() bool

HasMesage returns a boolean if a field has been set.

func (InlineResponse201) MarshalJSON

func (o InlineResponse201) MarshalJSON() ([]byte, error)

func (*InlineResponse201) SetKey

func (o *InlineResponse201) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*InlineResponse201) SetMesage

func (o *InlineResponse201) SetMesage(v string)

SetMesage gets a reference to the given string and assigns it to the Mesage field.

type LoginMethods

type LoginMethods string

LoginMethods Available login methods. To enable multi-step authentication you have to allow only multi-step login methods * `publickey` * `password` * `keyboard-interactive` * `publickey+password` - multi-step auth: public key and password * `publickey+keyboard-interactive` - multi-step auth: public key and keyboard interactive * `TLSCertificate` * `TLSCertificate+password` - multi-step auth: TLS client certificate and password

const (
	LOGINMETHODS_PUBLICKEY                     LoginMethods = "publickey"
	LOGINMETHODS_PASSWORD                      LoginMethods = "password"
	LOGINMETHODS_KEYBOARD_INTERACTIVE          LoginMethods = "keyboard-interactive"
	LOGINMETHODS_PUBLICKEYPASSWORD             LoginMethods = "publickey+password"
	LOGINMETHODS_PUBLICKEYKEYBOARD_INTERACTIVE LoginMethods = "publickey+keyboard-interactive"
	LOGINMETHODS_TLS_CERTIFICATE               LoginMethods = "TLSCertificate"
	LOGINMETHODS_TLS_CERTIFICATEPASSWORD       LoginMethods = "TLSCertificate+password"
)

List of LoginMethods

func NewLoginMethodsFromValue

func NewLoginMethodsFromValue(v string) (*LoginMethods, error)

NewLoginMethodsFromValue returns a pointer to a valid LoginMethods for the value passed as argument, or an error if the value passed is not allowed by the enum

func (LoginMethods) IsValid

func (v LoginMethods) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (LoginMethods) Ptr

func (v LoginMethods) Ptr() *LoginMethods

Ptr returns reference to LoginMethods value

func (*LoginMethods) UnmarshalJSON

func (v *LoginMethods) UnmarshalJSON(src []byte) error

type MFAProtocols

type MFAProtocols string

MFAProtocols Protocols: * `SSH` - includes both SFTP and SSH commands * `FTP` - plain FTP and FTPES/FTPS * `HTTP` - WebClient/REST API

const (
	MFAPROTOCOLS_SSH  MFAProtocols = "SSH"
	MFAPROTOCOLS_FTP  MFAProtocols = "FTP"
	MFAPROTOCOLS_HTTP MFAProtocols = "HTTP"
)

List of MFAProtocols

func NewMFAProtocolsFromValue

func NewMFAProtocolsFromValue(v string) (*MFAProtocols, error)

NewMFAProtocolsFromValue returns a pointer to a valid MFAProtocols for the value passed as argument, or an error if the value passed is not allowed by the enum

func (MFAProtocols) IsValid

func (v MFAProtocols) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (MFAProtocols) Ptr

func (v MFAProtocols) Ptr() *MFAProtocols

Ptr returns reference to MFAProtocols value

func (*MFAProtocols) UnmarshalJSON

func (v *MFAProtocols) UnmarshalJSON(src []byte) error

type MFAStatus

type MFAStatus struct {
	IsActive    *bool        `json:"is_active,omitempty"`
	TotpConfigs []TOTPConfig `json:"totp_configs,omitempty"`
}

MFAStatus struct for MFAStatus

func NewMFAStatus

func NewMFAStatus() *MFAStatus

NewMFAStatus instantiates a new MFAStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMFAStatusWithDefaults

func NewMFAStatusWithDefaults() *MFAStatus

NewMFAStatusWithDefaults instantiates a new MFAStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MFAStatus) GetIsActive

func (o *MFAStatus) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*MFAStatus) GetIsActiveOk

func (o *MFAStatus) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MFAStatus) GetTotpConfigs

func (o *MFAStatus) GetTotpConfigs() []TOTPConfig

GetTotpConfigs returns the TotpConfigs field value if set, zero value otherwise.

func (*MFAStatus) GetTotpConfigsOk

func (o *MFAStatus) GetTotpConfigsOk() ([]TOTPConfig, bool)

GetTotpConfigsOk returns a tuple with the TotpConfigs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MFAStatus) HasIsActive

func (o *MFAStatus) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (*MFAStatus) HasTotpConfigs

func (o *MFAStatus) HasTotpConfigs() bool

HasTotpConfigs returns a boolean if a field has been set.

func (MFAStatus) MarshalJSON

func (o MFAStatus) MarshalJSON() ([]byte, error)

func (*MFAStatus) SetIsActive

func (o *MFAStatus) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

func (*MFAStatus) SetTotpConfigs

func (o *MFAStatus) SetTotpConfigs(v []TOTPConfig)

SetTotpConfigs gets a reference to the given []TOTPConfig and assigns it to the TotpConfigs field.

type MaintenanceApiApiDumpdataRequest

type MaintenanceApiApiDumpdataRequest struct {
	ApiService *MaintenanceApiService
	// contains filtered or unexported fields
}

func (MaintenanceApiApiDumpdataRequest) Execute

func (MaintenanceApiApiDumpdataRequest) Indent

indent: * `0` no indentation. This is the default * `1` format the output JSON

func (MaintenanceApiApiDumpdataRequest) OutputData

output data: * `0` or any other value != 1, the backup will be saved to a file on the server, `output_file` is required * `1` the backup will be returned as response body

func (MaintenanceApiApiDumpdataRequest) OutputFile

Path for the file to write the JSON serialized data to. This path is relative to the configured \"backups_path\". If this file already exists it will be overwritten. To return the backup as response body set `output_data` to true instead.

type MaintenanceApiApiGetStatusRequest

type MaintenanceApiApiGetStatusRequest struct {
	ApiService *MaintenanceApiService
	// contains filtered or unexported fields
}

func (MaintenanceApiApiGetStatusRequest) Execute

type MaintenanceApiApiGetVersionRequest

type MaintenanceApiApiGetVersionRequest struct {
	ApiService *MaintenanceApiService
	// contains filtered or unexported fields
}

func (MaintenanceApiApiGetVersionRequest) Execute

type MaintenanceApiApiLoaddataFromFileRequest

type MaintenanceApiApiLoaddataFromFileRequest struct {
	ApiService *MaintenanceApiService
	// contains filtered or unexported fields
}

func (MaintenanceApiApiLoaddataFromFileRequest) Execute

func (MaintenanceApiApiLoaddataFromFileRequest) InputFile

Path for the file to read the JSON serialized data from. This can be an absolute path or a path relative to the configured \"backups_path\". The max allowed file size is 10MB

func (MaintenanceApiApiLoaddataFromFileRequest) Mode

Mode: * `0` New objects are added, existing ones are updated. This is the default * `1` New objects are added, existing ones are not modified * `2` New objects are added, existing ones are updated and connected users are disconnected and so forced to use the new configuration

func (MaintenanceApiApiLoaddataFromFileRequest) ScanQuota

Quota scan: * `0` no quota scan is done, the imported users/folders will have used_quota_size and used_quota_files = 0 or the existing values if they already exists. This is the default * `1` scan quota * `2` scan quota if the user has quota restrictions required: false

type MaintenanceApiApiLoaddataFromRequestBodyRequest

type MaintenanceApiApiLoaddataFromRequestBodyRequest struct {
	ApiService *MaintenanceApiService
	// contains filtered or unexported fields
}

func (MaintenanceApiApiLoaddataFromRequestBodyRequest) BackupData

func (MaintenanceApiApiLoaddataFromRequestBodyRequest) Execute

func (MaintenanceApiApiLoaddataFromRequestBodyRequest) Mode

Mode: * `0` New objects are added, existing ones are updated. This is the default * `1` New objects are added, existing ones are not modified * `2` New objects are added, existing ones are updated and connected users are disconnected and so forced to use the new configuration

func (MaintenanceApiApiLoaddataFromRequestBodyRequest) ScanQuota

Quota scan: * `0` no quota scan is done, the imported users/folders will have used_quota_size and used_quota_files = 0 or the existing values if they already exists. This is the default * `1` scan quota * `2` scan quota if the user has quota restrictions required: false

type MaintenanceApiService

type MaintenanceApiService service

MaintenanceApiService MaintenanceApi service

func (*MaintenanceApiService) Dumpdata

Dumpdata Dump data

Backups data as data provider independent JSON. The backup can be saved in a local file on the server, to avoid exposing sensitive data over the network, or returned as response body. The output of dumpdata can be used as input for loaddata

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return MaintenanceApiApiDumpdataRequest

func (*MaintenanceApiService) DumpdataExecute

Execute executes the request

@return BackupData

func (*MaintenanceApiService) GetStatus

GetStatus Get status

Retrieves the status of the active services

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return MaintenanceApiApiGetStatusRequest

func (*MaintenanceApiService) GetStatusExecute

Execute executes the request

@return ServicesStatus

func (*MaintenanceApiService) GetVersion

GetVersion Get version details

Returns version details such as the version number, build date, commit hash and enabled features

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return MaintenanceApiApiGetVersionRequest

func (*MaintenanceApiService) GetVersionExecute

Execute executes the request

@return VersionInfo

func (*MaintenanceApiService) LoaddataFromFile

LoaddataFromFile Load data from path

Restores SFTPGo data from a JSON backup file on the server. Objects will be restored one by one and the restore is stopped if a object cannot be added or updated, so it could happen a partial restore

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return MaintenanceApiApiLoaddataFromFileRequest

func (*MaintenanceApiService) LoaddataFromFileExecute

Execute executes the request

@return ApiResponse

func (*MaintenanceApiService) LoaddataFromRequestBody

LoaddataFromRequestBody Load data

Restores SFTPGo data from a JSON backup. Objects will be restored one by one and the restore is stopped if a object cannot be added or updated, so it could happen a partial restore

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return MaintenanceApiApiLoaddataFromRequestBodyRequest

func (*MaintenanceApiService) LoaddataFromRequestBodyExecute

Execute executes the request

@return ApiResponse

type MetadataApiApiGetUsersMetadataChecksRequest

type MetadataApiApiGetUsersMetadataChecksRequest struct {
	ApiService *MetadataApiService
	// contains filtered or unexported fields
}

func (MetadataApiApiGetUsersMetadataChecksRequest) Execute

type MetadataApiApiStartUserMetadataCheckRequest

type MetadataApiApiStartUserMetadataCheckRequest struct {
	ApiService *MetadataApiService
	// contains filtered or unexported fields
}

func (MetadataApiApiStartUserMetadataCheckRequest) Execute

type MetadataApiService

type MetadataApiService service

MetadataApiService MetadataApi service

func (*MetadataApiService) GetUsersMetadataChecks

GetUsersMetadataChecks Get metadata checks

Returns the active metadata checks

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return MetadataApiApiGetUsersMetadataChecksRequest

func (*MetadataApiService) GetUsersMetadataChecksExecute

Execute executes the request

@return []MetadataCheck

func (*MetadataApiService) StartUserMetadataCheck

func (a *MetadataApiService) StartUserMetadataCheck(ctx context.Context, username string) MetadataApiApiStartUserMetadataCheckRequest

StartUserMetadataCheck Start a metadata check

Starts a new metadata check for the given user. A metadata check requires a metadata plugin and removes the metadata associated to missing items (for example objects deleted outside SFTPGo). If a metadata check for this user is already active a 409 status code is returned. Metadata are stored for cloud storage backends. This API does nothing for other backends or if no metadata plugin is configured

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return MetadataApiApiStartUserMetadataCheckRequest

func (*MetadataApiService) StartUserMetadataCheckExecute

Execute executes the request

@return ApiResponse

type MetadataCheck

type MetadataCheck struct {
	// username to which the check refers
	Username *string `json:"username,omitempty"`
	// check start time as unix timestamp in milliseconds
	StartTime *int64 `json:"start_time,omitempty"`
}

MetadataCheck struct for MetadataCheck

func NewMetadataCheck

func NewMetadataCheck() *MetadataCheck

NewMetadataCheck instantiates a new MetadataCheck object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMetadataCheckWithDefaults

func NewMetadataCheckWithDefaults() *MetadataCheck

NewMetadataCheckWithDefaults instantiates a new MetadataCheck object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MetadataCheck) GetStartTime

func (o *MetadataCheck) GetStartTime() int64

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*MetadataCheck) GetStartTimeOk

func (o *MetadataCheck) GetStartTimeOk() (*int64, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MetadataCheck) GetUsername

func (o *MetadataCheck) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*MetadataCheck) GetUsernameOk

func (o *MetadataCheck) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MetadataCheck) HasStartTime

func (o *MetadataCheck) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*MetadataCheck) HasUsername

func (o *MetadataCheck) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (MetadataCheck) MarshalJSON

func (o MetadataCheck) MarshalJSON() ([]byte, error)

func (*MetadataCheck) SetStartTime

func (o *MetadataCheck) SetStartTime(v int64)

SetStartTime gets a reference to the given int64 and assigns it to the StartTime field.

func (*MetadataCheck) SetUsername

func (o *MetadataCheck) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type NullableAdmin

type NullableAdmin struct {
	// contains filtered or unexported fields
}

func NewNullableAdmin

func NewNullableAdmin(val *Admin) *NullableAdmin

func (NullableAdmin) Get

func (v NullableAdmin) Get() *Admin

func (NullableAdmin) IsSet

func (v NullableAdmin) IsSet() bool

func (NullableAdmin) MarshalJSON

func (v NullableAdmin) MarshalJSON() ([]byte, error)

func (*NullableAdmin) Set

func (v *NullableAdmin) Set(val *Admin)

func (*NullableAdmin) UnmarshalJSON

func (v *NullableAdmin) UnmarshalJSON(src []byte) error

func (*NullableAdmin) Unset

func (v *NullableAdmin) Unset()

type NullableAdminFilters

type NullableAdminFilters struct {
	// contains filtered or unexported fields
}

func NewNullableAdminFilters

func NewNullableAdminFilters(val *AdminFilters) *NullableAdminFilters

func (NullableAdminFilters) Get

func (NullableAdminFilters) IsSet

func (v NullableAdminFilters) IsSet() bool

func (NullableAdminFilters) MarshalJSON

func (v NullableAdminFilters) MarshalJSON() ([]byte, error)

func (*NullableAdminFilters) Set

func (v *NullableAdminFilters) Set(val *AdminFilters)

func (*NullableAdminFilters) UnmarshalJSON

func (v *NullableAdminFilters) UnmarshalJSON(src []byte) error

func (*NullableAdminFilters) Unset

func (v *NullableAdminFilters) Unset()

type NullableAdminPermissions

type NullableAdminPermissions struct {
	// contains filtered or unexported fields
}

func NewNullableAdminPermissions

func NewNullableAdminPermissions(val *AdminPermissions) *NullableAdminPermissions

func (NullableAdminPermissions) Get

func (NullableAdminPermissions) IsSet

func (v NullableAdminPermissions) IsSet() bool

func (NullableAdminPermissions) MarshalJSON

func (v NullableAdminPermissions) MarshalJSON() ([]byte, error)

func (*NullableAdminPermissions) Set

func (*NullableAdminPermissions) UnmarshalJSON

func (v *NullableAdminPermissions) UnmarshalJSON(src []byte) error

func (*NullableAdminPermissions) Unset

func (v *NullableAdminPermissions) Unset()

type NullableAdminProfile

type NullableAdminProfile struct {
	// contains filtered or unexported fields
}

func NewNullableAdminProfile

func NewNullableAdminProfile(val *AdminProfile) *NullableAdminProfile

func (NullableAdminProfile) Get

func (NullableAdminProfile) IsSet

func (v NullableAdminProfile) IsSet() bool

func (NullableAdminProfile) MarshalJSON

func (v NullableAdminProfile) MarshalJSON() ([]byte, error)

func (*NullableAdminProfile) Set

func (v *NullableAdminProfile) Set(val *AdminProfile)

func (*NullableAdminProfile) UnmarshalJSON

func (v *NullableAdminProfile) UnmarshalJSON(src []byte) error

func (*NullableAdminProfile) Unset

func (v *NullableAdminProfile) Unset()

type NullableAdminTOTPConfig

type NullableAdminTOTPConfig struct {
	// contains filtered or unexported fields
}

func NewNullableAdminTOTPConfig

func NewNullableAdminTOTPConfig(val *AdminTOTPConfig) *NullableAdminTOTPConfig

func (NullableAdminTOTPConfig) Get

func (NullableAdminTOTPConfig) IsSet

func (v NullableAdminTOTPConfig) IsSet() bool

func (NullableAdminTOTPConfig) MarshalJSON

func (v NullableAdminTOTPConfig) MarshalJSON() ([]byte, error)

func (*NullableAdminTOTPConfig) Set

func (*NullableAdminTOTPConfig) UnmarshalJSON

func (v *NullableAdminTOTPConfig) UnmarshalJSON(src []byte) error

func (*NullableAdminTOTPConfig) Unset

func (v *NullableAdminTOTPConfig) Unset()

type NullableApiResponse

type NullableApiResponse struct {
	// contains filtered or unexported fields
}

func NewNullableApiResponse

func NewNullableApiResponse(val *ApiResponse) *NullableApiResponse

func (NullableApiResponse) Get

func (NullableApiResponse) IsSet

func (v NullableApiResponse) IsSet() bool

func (NullableApiResponse) MarshalJSON

func (v NullableApiResponse) MarshalJSON() ([]byte, error)

func (*NullableApiResponse) Set

func (v *NullableApiResponse) Set(val *ApiResponse)

func (*NullableApiResponse) UnmarshalJSON

func (v *NullableApiResponse) UnmarshalJSON(src []byte) error

func (*NullableApiResponse) Unset

func (v *NullableApiResponse) Unset()

type NullableAuthAPIKey

type NullableAuthAPIKey struct {
	// contains filtered or unexported fields
}

func NewNullableAuthAPIKey

func NewNullableAuthAPIKey(val *AuthAPIKey) *NullableAuthAPIKey

func (NullableAuthAPIKey) Get

func (v NullableAuthAPIKey) Get() *AuthAPIKey

func (NullableAuthAPIKey) IsSet

func (v NullableAuthAPIKey) IsSet() bool

func (NullableAuthAPIKey) MarshalJSON

func (v NullableAuthAPIKey) MarshalJSON() ([]byte, error)

func (*NullableAuthAPIKey) Set

func (v *NullableAuthAPIKey) Set(val *AuthAPIKey)

func (*NullableAuthAPIKey) UnmarshalJSON

func (v *NullableAuthAPIKey) UnmarshalJSON(src []byte) error

func (*NullableAuthAPIKey) Unset

func (v *NullableAuthAPIKey) Unset()

type NullableAuthAPIKeyScope

type NullableAuthAPIKeyScope struct {
	// contains filtered or unexported fields
}

func NewNullableAuthAPIKeyScope

func NewNullableAuthAPIKeyScope(val *AuthAPIKeyScope) *NullableAuthAPIKeyScope

func (NullableAuthAPIKeyScope) Get

func (NullableAuthAPIKeyScope) IsSet

func (v NullableAuthAPIKeyScope) IsSet() bool

func (NullableAuthAPIKeyScope) MarshalJSON

func (v NullableAuthAPIKeyScope) MarshalJSON() ([]byte, error)

func (*NullableAuthAPIKeyScope) Set

func (*NullableAuthAPIKeyScope) UnmarshalJSON

func (v *NullableAuthAPIKeyScope) UnmarshalJSON(src []byte) error

func (*NullableAuthAPIKeyScope) Unset

func (v *NullableAuthAPIKeyScope) Unset()

type NullableAzureBlobFsConfig

type NullableAzureBlobFsConfig struct {
	// contains filtered or unexported fields
}

func NewNullableAzureBlobFsConfig

func NewNullableAzureBlobFsConfig(val *AzureBlobFsConfig) *NullableAzureBlobFsConfig

func (NullableAzureBlobFsConfig) Get

func (NullableAzureBlobFsConfig) IsSet

func (v NullableAzureBlobFsConfig) IsSet() bool

func (NullableAzureBlobFsConfig) MarshalJSON

func (v NullableAzureBlobFsConfig) MarshalJSON() ([]byte, error)

func (*NullableAzureBlobFsConfig) Set

func (*NullableAzureBlobFsConfig) UnmarshalJSON

func (v *NullableAzureBlobFsConfig) UnmarshalJSON(src []byte) error

func (*NullableAzureBlobFsConfig) Unset

func (v *NullableAzureBlobFsConfig) Unset()

type NullableBackupData

type NullableBackupData struct {
	// contains filtered or unexported fields
}

func NewNullableBackupData

func NewNullableBackupData(val *BackupData) *NullableBackupData

func (NullableBackupData) Get

func (v NullableBackupData) Get() *BackupData

func (NullableBackupData) IsSet

func (v NullableBackupData) IsSet() bool

func (NullableBackupData) MarshalJSON

func (v NullableBackupData) MarshalJSON() ([]byte, error)

func (*NullableBackupData) Set

func (v *NullableBackupData) Set(val *BackupData)

func (*NullableBackupData) UnmarshalJSON

func (v *NullableBackupData) UnmarshalJSON(src []byte) error

func (*NullableBackupData) Unset

func (v *NullableBackupData) Unset()

type NullableBanStatus

type NullableBanStatus struct {
	// contains filtered or unexported fields
}

func NewNullableBanStatus

func NewNullableBanStatus(val *BanStatus) *NullableBanStatus

func (NullableBanStatus) Get

func (v NullableBanStatus) Get() *BanStatus

func (NullableBanStatus) IsSet

func (v NullableBanStatus) IsSet() bool

func (NullableBanStatus) MarshalJSON

func (v NullableBanStatus) MarshalJSON() ([]byte, error)

func (*NullableBanStatus) Set

func (v *NullableBanStatus) Set(val *BanStatus)

func (*NullableBanStatus) UnmarshalJSON

func (v *NullableBanStatus) UnmarshalJSON(src []byte) error

func (*NullableBanStatus) Unset

func (v *NullableBanStatus) Unset()

type NullableBandwidthLimit

type NullableBandwidthLimit struct {
	// contains filtered or unexported fields
}

func NewNullableBandwidthLimit

func NewNullableBandwidthLimit(val *BandwidthLimit) *NullableBandwidthLimit

func (NullableBandwidthLimit) Get

func (NullableBandwidthLimit) IsSet

func (v NullableBandwidthLimit) IsSet() bool

func (NullableBandwidthLimit) MarshalJSON

func (v NullableBandwidthLimit) MarshalJSON() ([]byte, error)

func (*NullableBandwidthLimit) Set

func (*NullableBandwidthLimit) UnmarshalJSON

func (v *NullableBandwidthLimit) UnmarshalJSON(src []byte) error

func (*NullableBandwidthLimit) Unset

func (v *NullableBandwidthLimit) Unset()

type NullableBaseTOTPConfig

type NullableBaseTOTPConfig struct {
	// contains filtered or unexported fields
}

func NewNullableBaseTOTPConfig

func NewNullableBaseTOTPConfig(val *BaseTOTPConfig) *NullableBaseTOTPConfig

func (NullableBaseTOTPConfig) Get

func (NullableBaseTOTPConfig) IsSet

func (v NullableBaseTOTPConfig) IsSet() bool

func (NullableBaseTOTPConfig) MarshalJSON

func (v NullableBaseTOTPConfig) MarshalJSON() ([]byte, error)

func (*NullableBaseTOTPConfig) Set

func (*NullableBaseTOTPConfig) UnmarshalJSON

func (v *NullableBaseTOTPConfig) UnmarshalJSON(src []byte) error

func (*NullableBaseTOTPConfig) Unset

func (v *NullableBaseTOTPConfig) Unset()

type NullableBaseVirtualFolder

type NullableBaseVirtualFolder struct {
	// contains filtered or unexported fields
}

func NewNullableBaseVirtualFolder

func NewNullableBaseVirtualFolder(val *BaseVirtualFolder) *NullableBaseVirtualFolder

func (NullableBaseVirtualFolder) Get

func (NullableBaseVirtualFolder) IsSet

func (v NullableBaseVirtualFolder) IsSet() bool

func (NullableBaseVirtualFolder) MarshalJSON

func (v NullableBaseVirtualFolder) MarshalJSON() ([]byte, error)

func (*NullableBaseVirtualFolder) Set

func (*NullableBaseVirtualFolder) UnmarshalJSON

func (v *NullableBaseVirtualFolder) UnmarshalJSON(src []byte) error

func (*NullableBaseVirtualFolder) Unset

func (v *NullableBaseVirtualFolder) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableConnectionStatus

type NullableConnectionStatus struct {
	// contains filtered or unexported fields
}

func NewNullableConnectionStatus

func NewNullableConnectionStatus(val *ConnectionStatus) *NullableConnectionStatus

func (NullableConnectionStatus) Get

func (NullableConnectionStatus) IsSet

func (v NullableConnectionStatus) IsSet() bool

func (NullableConnectionStatus) MarshalJSON

func (v NullableConnectionStatus) MarshalJSON() ([]byte, error)

func (*NullableConnectionStatus) Set

func (*NullableConnectionStatus) UnmarshalJSON

func (v *NullableConnectionStatus) UnmarshalJSON(src []byte) error

func (*NullableConnectionStatus) Unset

func (v *NullableConnectionStatus) Unset()

type NullableCryptFsConfig

type NullableCryptFsConfig struct {
	// contains filtered or unexported fields
}

func NewNullableCryptFsConfig

func NewNullableCryptFsConfig(val *CryptFsConfig) *NullableCryptFsConfig

func (NullableCryptFsConfig) Get

func (NullableCryptFsConfig) IsSet

func (v NullableCryptFsConfig) IsSet() bool

func (NullableCryptFsConfig) MarshalJSON

func (v NullableCryptFsConfig) MarshalJSON() ([]byte, error)

func (*NullableCryptFsConfig) Set

func (v *NullableCryptFsConfig) Set(val *CryptFsConfig)

func (*NullableCryptFsConfig) UnmarshalJSON

func (v *NullableCryptFsConfig) UnmarshalJSON(src []byte) error

func (*NullableCryptFsConfig) Unset

func (v *NullableCryptFsConfig) Unset()

type NullableDataProviderStatus

type NullableDataProviderStatus struct {
	// contains filtered or unexported fields
}

func NewNullableDataProviderStatus

func NewNullableDataProviderStatus(val *DataProviderStatus) *NullableDataProviderStatus

func (NullableDataProviderStatus) Get

func (NullableDataProviderStatus) IsSet

func (v NullableDataProviderStatus) IsSet() bool

func (NullableDataProviderStatus) MarshalJSON

func (v NullableDataProviderStatus) MarshalJSON() ([]byte, error)

func (*NullableDataProviderStatus) Set

func (*NullableDataProviderStatus) UnmarshalJSON

func (v *NullableDataProviderStatus) UnmarshalJSON(src []byte) error

func (*NullableDataProviderStatus) Unset

func (v *NullableDataProviderStatus) Unset()

type NullableDataTransferLimit

type NullableDataTransferLimit struct {
	// contains filtered or unexported fields
}

func NewNullableDataTransferLimit

func NewNullableDataTransferLimit(val *DataTransferLimit) *NullableDataTransferLimit

func (NullableDataTransferLimit) Get

func (NullableDataTransferLimit) IsSet

func (v NullableDataTransferLimit) IsSet() bool

func (NullableDataTransferLimit) MarshalJSON

func (v NullableDataTransferLimit) MarshalJSON() ([]byte, error)

func (*NullableDataTransferLimit) Set

func (*NullableDataTransferLimit) UnmarshalJSON

func (v *NullableDataTransferLimit) UnmarshalJSON(src []byte) error

func (*NullableDataTransferLimit) Unset

func (v *NullableDataTransferLimit) Unset()

type NullableDefenderEntry

type NullableDefenderEntry struct {
	// contains filtered or unexported fields
}

func NewNullableDefenderEntry

func NewNullableDefenderEntry(val *DefenderEntry) *NullableDefenderEntry

func (NullableDefenderEntry) Get

func (NullableDefenderEntry) IsSet

func (v NullableDefenderEntry) IsSet() bool

func (NullableDefenderEntry) MarshalJSON

func (v NullableDefenderEntry) MarshalJSON() ([]byte, error)

func (*NullableDefenderEntry) Set

func (v *NullableDefenderEntry) Set(val *DefenderEntry)

func (*NullableDefenderEntry) UnmarshalJSON

func (v *NullableDefenderEntry) UnmarshalJSON(src []byte) error

func (*NullableDefenderEntry) Unset

func (v *NullableDefenderEntry) Unset()

type NullableDirEntry

type NullableDirEntry struct {
	// contains filtered or unexported fields
}

func NewNullableDirEntry

func NewNullableDirEntry(val *DirEntry) *NullableDirEntry

func (NullableDirEntry) Get

func (v NullableDirEntry) Get() *DirEntry

func (NullableDirEntry) IsSet

func (v NullableDirEntry) IsSet() bool

func (NullableDirEntry) MarshalJSON

func (v NullableDirEntry) MarshalJSON() ([]byte, error)

func (*NullableDirEntry) Set

func (v *NullableDirEntry) Set(val *DirEntry)

func (*NullableDirEntry) UnmarshalJSON

func (v *NullableDirEntry) UnmarshalJSON(src []byte) error

func (*NullableDirEntry) Unset

func (v *NullableDirEntry) Unset()

type NullableEventProtocols

type NullableEventProtocols struct {
	// contains filtered or unexported fields
}

func NewNullableEventProtocols

func NewNullableEventProtocols(val *EventProtocols) *NullableEventProtocols

func (NullableEventProtocols) Get

func (NullableEventProtocols) IsSet

func (v NullableEventProtocols) IsSet() bool

func (NullableEventProtocols) MarshalJSON

func (v NullableEventProtocols) MarshalJSON() ([]byte, error)

func (*NullableEventProtocols) Set

func (*NullableEventProtocols) UnmarshalJSON

func (v *NullableEventProtocols) UnmarshalJSON(src []byte) error

func (*NullableEventProtocols) Unset

func (v *NullableEventProtocols) Unset()

type NullableFTPDBinding

type NullableFTPDBinding struct {
	// contains filtered or unexported fields
}

func NewNullableFTPDBinding

func NewNullableFTPDBinding(val *FTPDBinding) *NullableFTPDBinding

func (NullableFTPDBinding) Get

func (NullableFTPDBinding) IsSet

func (v NullableFTPDBinding) IsSet() bool

func (NullableFTPDBinding) MarshalJSON

func (v NullableFTPDBinding) MarshalJSON() ([]byte, error)

func (*NullableFTPDBinding) Set

func (v *NullableFTPDBinding) Set(val *FTPDBinding)

func (*NullableFTPDBinding) UnmarshalJSON

func (v *NullableFTPDBinding) UnmarshalJSON(src []byte) error

func (*NullableFTPDBinding) Unset

func (v *NullableFTPDBinding) Unset()

type NullableFTPPassivePortRange

type NullableFTPPassivePortRange struct {
	// contains filtered or unexported fields
}

func NewNullableFTPPassivePortRange

func NewNullableFTPPassivePortRange(val *FTPPassivePortRange) *NullableFTPPassivePortRange

func (NullableFTPPassivePortRange) Get

func (NullableFTPPassivePortRange) IsSet

func (NullableFTPPassivePortRange) MarshalJSON

func (v NullableFTPPassivePortRange) MarshalJSON() ([]byte, error)

func (*NullableFTPPassivePortRange) Set

func (*NullableFTPPassivePortRange) UnmarshalJSON

func (v *NullableFTPPassivePortRange) UnmarshalJSON(src []byte) error

func (*NullableFTPPassivePortRange) Unset

func (v *NullableFTPPassivePortRange) Unset()

type NullableFTPServiceStatus

type NullableFTPServiceStatus struct {
	// contains filtered or unexported fields
}

func NewNullableFTPServiceStatus

func NewNullableFTPServiceStatus(val *FTPServiceStatus) *NullableFTPServiceStatus

func (NullableFTPServiceStatus) Get

func (NullableFTPServiceStatus) IsSet

func (v NullableFTPServiceStatus) IsSet() bool

func (NullableFTPServiceStatus) MarshalJSON

func (v NullableFTPServiceStatus) MarshalJSON() ([]byte, error)

func (*NullableFTPServiceStatus) Set

func (*NullableFTPServiceStatus) UnmarshalJSON

func (v *NullableFTPServiceStatus) UnmarshalJSON(src []byte) error

func (*NullableFTPServiceStatus) Unset

func (v *NullableFTPServiceStatus) Unset()

type NullableFilesystemConfig

type NullableFilesystemConfig struct {
	// contains filtered or unexported fields
}

func NewNullableFilesystemConfig

func NewNullableFilesystemConfig(val *FilesystemConfig) *NullableFilesystemConfig

func (NullableFilesystemConfig) Get

func (NullableFilesystemConfig) IsSet

func (v NullableFilesystemConfig) IsSet() bool

func (NullableFilesystemConfig) MarshalJSON

func (v NullableFilesystemConfig) MarshalJSON() ([]byte, error)

func (*NullableFilesystemConfig) Set

func (*NullableFilesystemConfig) UnmarshalJSON

func (v *NullableFilesystemConfig) UnmarshalJSON(src []byte) error

func (*NullableFilesystemConfig) Unset

func (v *NullableFilesystemConfig) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableFolderQuotaScan

type NullableFolderQuotaScan struct {
	// contains filtered or unexported fields
}

func NewNullableFolderQuotaScan

func NewNullableFolderQuotaScan(val *FolderQuotaScan) *NullableFolderQuotaScan

func (NullableFolderQuotaScan) Get

func (NullableFolderQuotaScan) IsSet

func (v NullableFolderQuotaScan) IsSet() bool

func (NullableFolderQuotaScan) MarshalJSON

func (v NullableFolderQuotaScan) MarshalJSON() ([]byte, error)

func (*NullableFolderQuotaScan) Set

func (*NullableFolderQuotaScan) UnmarshalJSON

func (v *NullableFolderQuotaScan) UnmarshalJSON(src []byte) error

func (*NullableFolderQuotaScan) Unset

func (v *NullableFolderQuotaScan) Unset()

type NullableFolderRetention

type NullableFolderRetention struct {
	// contains filtered or unexported fields
}

func NewNullableFolderRetention

func NewNullableFolderRetention(val *FolderRetention) *NullableFolderRetention

func (NullableFolderRetention) Get

func (NullableFolderRetention) IsSet

func (v NullableFolderRetention) IsSet() bool

func (NullableFolderRetention) MarshalJSON

func (v NullableFolderRetention) MarshalJSON() ([]byte, error)

func (*NullableFolderRetention) Set

func (*NullableFolderRetention) UnmarshalJSON

func (v *NullableFolderRetention) UnmarshalJSON(src []byte) error

func (*NullableFolderRetention) Unset

func (v *NullableFolderRetention) Unset()

type NullableFsEvent

type NullableFsEvent struct {
	// contains filtered or unexported fields
}

func NewNullableFsEvent

func NewNullableFsEvent(val *FsEvent) *NullableFsEvent

func (NullableFsEvent) Get

func (v NullableFsEvent) Get() *FsEvent

func (NullableFsEvent) IsSet

func (v NullableFsEvent) IsSet() bool

func (NullableFsEvent) MarshalJSON

func (v NullableFsEvent) MarshalJSON() ([]byte, error)

func (*NullableFsEvent) Set

func (v *NullableFsEvent) Set(val *FsEvent)

func (*NullableFsEvent) UnmarshalJSON

func (v *NullableFsEvent) UnmarshalJSON(src []byte) error

func (*NullableFsEvent) Unset

func (v *NullableFsEvent) Unset()

type NullableFsEventAction

type NullableFsEventAction struct {
	// contains filtered or unexported fields
}

func NewNullableFsEventAction

func NewNullableFsEventAction(val *FsEventAction) *NullableFsEventAction

func (NullableFsEventAction) Get

func (NullableFsEventAction) IsSet

func (v NullableFsEventAction) IsSet() bool

func (NullableFsEventAction) MarshalJSON

func (v NullableFsEventAction) MarshalJSON() ([]byte, error)

func (*NullableFsEventAction) Set

func (v *NullableFsEventAction) Set(val *FsEventAction)

func (*NullableFsEventAction) UnmarshalJSON

func (v *NullableFsEventAction) UnmarshalJSON(src []byte) error

func (*NullableFsEventAction) Unset

func (v *NullableFsEventAction) Unset()

type NullableFsEventStatus

type NullableFsEventStatus struct {
	// contains filtered or unexported fields
}

func NewNullableFsEventStatus

func NewNullableFsEventStatus(val *FsEventStatus) *NullableFsEventStatus

func (NullableFsEventStatus) Get

func (NullableFsEventStatus) IsSet

func (v NullableFsEventStatus) IsSet() bool

func (NullableFsEventStatus) MarshalJSON

func (v NullableFsEventStatus) MarshalJSON() ([]byte, error)

func (*NullableFsEventStatus) Set

func (v *NullableFsEventStatus) Set(val *FsEventStatus)

func (*NullableFsEventStatus) UnmarshalJSON

func (v *NullableFsEventStatus) UnmarshalJSON(src []byte) error

func (*NullableFsEventStatus) Unset

func (v *NullableFsEventStatus) Unset()

type NullableFsProviders

type NullableFsProviders struct {
	// contains filtered or unexported fields
}

func NewNullableFsProviders

func NewNullableFsProviders(val *FsProviders) *NullableFsProviders

func (NullableFsProviders) Get

func (NullableFsProviders) IsSet

func (v NullableFsProviders) IsSet() bool

func (NullableFsProviders) MarshalJSON

func (v NullableFsProviders) MarshalJSON() ([]byte, error)

func (*NullableFsProviders) Set

func (v *NullableFsProviders) Set(val *FsProviders)

func (*NullableFsProviders) UnmarshalJSON

func (v *NullableFsProviders) UnmarshalJSON(src []byte) error

func (*NullableFsProviders) Unset

func (v *NullableFsProviders) Unset()

type NullableGCSConfig

type NullableGCSConfig struct {
	// contains filtered or unexported fields
}

func NewNullableGCSConfig

func NewNullableGCSConfig(val *GCSConfig) *NullableGCSConfig

func (NullableGCSConfig) Get

func (v NullableGCSConfig) Get() *GCSConfig

func (NullableGCSConfig) IsSet

func (v NullableGCSConfig) IsSet() bool

func (NullableGCSConfig) MarshalJSON

func (v NullableGCSConfig) MarshalJSON() ([]byte, error)

func (*NullableGCSConfig) Set

func (v *NullableGCSConfig) Set(val *GCSConfig)

func (*NullableGCSConfig) UnmarshalJSON

func (v *NullableGCSConfig) UnmarshalJSON(src []byte) error

func (*NullableGCSConfig) Unset

func (v *NullableGCSConfig) Unset()

type NullableHooksFilter

type NullableHooksFilter struct {
	// contains filtered or unexported fields
}

func NewNullableHooksFilter

func NewNullableHooksFilter(val *HooksFilter) *NullableHooksFilter

func (NullableHooksFilter) Get

func (NullableHooksFilter) IsSet

func (v NullableHooksFilter) IsSet() bool

func (NullableHooksFilter) MarshalJSON

func (v NullableHooksFilter) MarshalJSON() ([]byte, error)

func (*NullableHooksFilter) Set

func (v *NullableHooksFilter) Set(val *HooksFilter)

func (*NullableHooksFilter) UnmarshalJSON

func (v *NullableHooksFilter) UnmarshalJSON(src []byte) error

func (*NullableHooksFilter) Unset

func (v *NullableHooksFilter) Unset()

type NullableInlineObject1

type NullableInlineObject1 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject1

func NewNullableInlineObject1(val *InlineObject1) *NullableInlineObject1

func (NullableInlineObject1) Get

func (NullableInlineObject1) IsSet

func (v NullableInlineObject1) IsSet() bool

func (NullableInlineObject1) MarshalJSON

func (v NullableInlineObject1) MarshalJSON() ([]byte, error)

func (*NullableInlineObject1) Set

func (v *NullableInlineObject1) Set(val *InlineObject1)

func (*NullableInlineObject1) UnmarshalJSON

func (v *NullableInlineObject1) UnmarshalJSON(src []byte) error

func (*NullableInlineObject1) Unset

func (v *NullableInlineObject1) Unset()

type NullableInlineObject2

type NullableInlineObject2 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject2

func NewNullableInlineObject2(val *InlineObject2) *NullableInlineObject2

func (NullableInlineObject2) Get

func (NullableInlineObject2) IsSet

func (v NullableInlineObject2) IsSet() bool

func (NullableInlineObject2) MarshalJSON

func (v NullableInlineObject2) MarshalJSON() ([]byte, error)

func (*NullableInlineObject2) Set

func (v *NullableInlineObject2) Set(val *InlineObject2)

func (*NullableInlineObject2) UnmarshalJSON

func (v *NullableInlineObject2) UnmarshalJSON(src []byte) error

func (*NullableInlineObject2) Unset

func (v *NullableInlineObject2) Unset()

type NullableInlineObject3

type NullableInlineObject3 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject3

func NewNullableInlineObject3(val *InlineObject3) *NullableInlineObject3

func (NullableInlineObject3) Get

func (NullableInlineObject3) IsSet

func (v NullableInlineObject3) IsSet() bool

func (NullableInlineObject3) MarshalJSON

func (v NullableInlineObject3) MarshalJSON() ([]byte, error)

func (*NullableInlineObject3) Set

func (v *NullableInlineObject3) Set(val *InlineObject3)

func (*NullableInlineObject3) UnmarshalJSON

func (v *NullableInlineObject3) UnmarshalJSON(src []byte) error

func (*NullableInlineObject3) Unset

func (v *NullableInlineObject3) Unset()

type NullableInlineObject4

type NullableInlineObject4 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject4

func NewNullableInlineObject4(val *InlineObject4) *NullableInlineObject4

func (NullableInlineObject4) Get

func (NullableInlineObject4) IsSet

func (v NullableInlineObject4) IsSet() bool

func (NullableInlineObject4) MarshalJSON

func (v NullableInlineObject4) MarshalJSON() ([]byte, error)

func (*NullableInlineObject4) Set

func (v *NullableInlineObject4) Set(val *InlineObject4)

func (*NullableInlineObject4) UnmarshalJSON

func (v *NullableInlineObject4) UnmarshalJSON(src []byte) error

func (*NullableInlineObject4) Unset

func (v *NullableInlineObject4) Unset()

type NullableInlineObject5

type NullableInlineObject5 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject5

func NewNullableInlineObject5(val *InlineObject5) *NullableInlineObject5

func (NullableInlineObject5) Get

func (NullableInlineObject5) IsSet

func (v NullableInlineObject5) IsSet() bool

func (NullableInlineObject5) MarshalJSON

func (v NullableInlineObject5) MarshalJSON() ([]byte, error)

func (*NullableInlineObject5) Set

func (v *NullableInlineObject5) Set(val *InlineObject5)

func (*NullableInlineObject5) UnmarshalJSON

func (v *NullableInlineObject5) UnmarshalJSON(src []byte) error

func (*NullableInlineObject5) Unset

func (v *NullableInlineObject5) Unset()

type NullableInlineObject6

type NullableInlineObject6 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject6

func NewNullableInlineObject6(val *InlineObject6) *NullableInlineObject6

func (NullableInlineObject6) Get

func (NullableInlineObject6) IsSet

func (v NullableInlineObject6) IsSet() bool

func (NullableInlineObject6) MarshalJSON

func (v NullableInlineObject6) MarshalJSON() ([]byte, error)

func (*NullableInlineObject6) Set

func (v *NullableInlineObject6) Set(val *InlineObject6)

func (*NullableInlineObject6) UnmarshalJSON

func (v *NullableInlineObject6) UnmarshalJSON(src []byte) error

func (*NullableInlineObject6) Unset

func (v *NullableInlineObject6) Unset()

type NullableInlineObject7

type NullableInlineObject7 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject7

func NewNullableInlineObject7(val *InlineObject7) *NullableInlineObject7

func (NullableInlineObject7) Get

func (NullableInlineObject7) IsSet

func (v NullableInlineObject7) IsSet() bool

func (NullableInlineObject7) MarshalJSON

func (v NullableInlineObject7) MarshalJSON() ([]byte, error)

func (*NullableInlineObject7) Set

func (v *NullableInlineObject7) Set(val *InlineObject7)

func (*NullableInlineObject7) UnmarshalJSON

func (v *NullableInlineObject7) UnmarshalJSON(src []byte) error

func (*NullableInlineObject7) Unset

func (v *NullableInlineObject7) Unset()

type NullableInlineObject9

type NullableInlineObject9 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineObject9

func NewNullableInlineObject9(val *InlineObject9) *NullableInlineObject9

func (NullableInlineObject9) Get

func (NullableInlineObject9) IsSet

func (v NullableInlineObject9) IsSet() bool

func (NullableInlineObject9) MarshalJSON

func (v NullableInlineObject9) MarshalJSON() ([]byte, error)

func (*NullableInlineObject9) Set

func (v *NullableInlineObject9) Set(val *InlineObject9)

func (*NullableInlineObject9) UnmarshalJSON

func (v *NullableInlineObject9) UnmarshalJSON(src []byte) error

func (*NullableInlineObject9) Unset

func (v *NullableInlineObject9) Unset()

type NullableInlineResponse200

type NullableInlineResponse200 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineResponse200

func NewNullableInlineResponse200(val *InlineResponse200) *NullableInlineResponse200

func (NullableInlineResponse200) Get

func (NullableInlineResponse200) IsSet

func (v NullableInlineResponse200) IsSet() bool

func (NullableInlineResponse200) MarshalJSON

func (v NullableInlineResponse200) MarshalJSON() ([]byte, error)

func (*NullableInlineResponse200) Set

func (*NullableInlineResponse200) UnmarshalJSON

func (v *NullableInlineResponse200) UnmarshalJSON(src []byte) error

func (*NullableInlineResponse200) Unset

func (v *NullableInlineResponse200) Unset()

type NullableInlineResponse201

type NullableInlineResponse201 struct {
	// contains filtered or unexported fields
}

func NewNullableInlineResponse201

func NewNullableInlineResponse201(val *InlineResponse201) *NullableInlineResponse201

func (NullableInlineResponse201) Get

func (NullableInlineResponse201) IsSet

func (v NullableInlineResponse201) IsSet() bool

func (NullableInlineResponse201) MarshalJSON

func (v NullableInlineResponse201) MarshalJSON() ([]byte, error)

func (*NullableInlineResponse201) Set

func (*NullableInlineResponse201) UnmarshalJSON

func (v *NullableInlineResponse201) UnmarshalJSON(src []byte) error

func (*NullableInlineResponse201) Unset

func (v *NullableInlineResponse201) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLoginMethods

type NullableLoginMethods struct {
	// contains filtered or unexported fields
}

func NewNullableLoginMethods

func NewNullableLoginMethods(val *LoginMethods) *NullableLoginMethods

func (NullableLoginMethods) Get

func (NullableLoginMethods) IsSet

func (v NullableLoginMethods) IsSet() bool

func (NullableLoginMethods) MarshalJSON

func (v NullableLoginMethods) MarshalJSON() ([]byte, error)

func (*NullableLoginMethods) Set

func (v *NullableLoginMethods) Set(val *LoginMethods)

func (*NullableLoginMethods) UnmarshalJSON

func (v *NullableLoginMethods) UnmarshalJSON(src []byte) error

func (*NullableLoginMethods) Unset

func (v *NullableLoginMethods) Unset()

type NullableMFAProtocols

type NullableMFAProtocols struct {
	// contains filtered or unexported fields
}

func NewNullableMFAProtocols

func NewNullableMFAProtocols(val *MFAProtocols) *NullableMFAProtocols

func (NullableMFAProtocols) Get

func (NullableMFAProtocols) IsSet

func (v NullableMFAProtocols) IsSet() bool

func (NullableMFAProtocols) MarshalJSON

func (v NullableMFAProtocols) MarshalJSON() ([]byte, error)

func (*NullableMFAProtocols) Set

func (v *NullableMFAProtocols) Set(val *MFAProtocols)

func (*NullableMFAProtocols) UnmarshalJSON

func (v *NullableMFAProtocols) UnmarshalJSON(src []byte) error

func (*NullableMFAProtocols) Unset

func (v *NullableMFAProtocols) Unset()

type NullableMFAStatus

type NullableMFAStatus struct {
	// contains filtered or unexported fields
}

func NewNullableMFAStatus

func NewNullableMFAStatus(val *MFAStatus) *NullableMFAStatus

func (NullableMFAStatus) Get

func (v NullableMFAStatus) Get() *MFAStatus

func (NullableMFAStatus) IsSet

func (v NullableMFAStatus) IsSet() bool

func (NullableMFAStatus) MarshalJSON

func (v NullableMFAStatus) MarshalJSON() ([]byte, error)

func (*NullableMFAStatus) Set

func (v *NullableMFAStatus) Set(val *MFAStatus)

func (*NullableMFAStatus) UnmarshalJSON

func (v *NullableMFAStatus) UnmarshalJSON(src []byte) error

func (*NullableMFAStatus) Unset

func (v *NullableMFAStatus) Unset()

type NullableMetadataCheck

type NullableMetadataCheck struct {
	// contains filtered or unexported fields
}

func NewNullableMetadataCheck

func NewNullableMetadataCheck(val *MetadataCheck) *NullableMetadataCheck

func (NullableMetadataCheck) Get

func (NullableMetadataCheck) IsSet

func (v NullableMetadataCheck) IsSet() bool

func (NullableMetadataCheck) MarshalJSON

func (v NullableMetadataCheck) MarshalJSON() ([]byte, error)

func (*NullableMetadataCheck) Set

func (v *NullableMetadataCheck) Set(val *MetadataCheck)

func (*NullableMetadataCheck) UnmarshalJSON

func (v *NullableMetadataCheck) UnmarshalJSON(src []byte) error

func (*NullableMetadataCheck) Unset

func (v *NullableMetadataCheck) Unset()

type NullablePatternsFilter

type NullablePatternsFilter struct {
	// contains filtered or unexported fields
}

func NewNullablePatternsFilter

func NewNullablePatternsFilter(val *PatternsFilter) *NullablePatternsFilter

func (NullablePatternsFilter) Get

func (NullablePatternsFilter) IsSet

func (v NullablePatternsFilter) IsSet() bool

func (NullablePatternsFilter) MarshalJSON

func (v NullablePatternsFilter) MarshalJSON() ([]byte, error)

func (*NullablePatternsFilter) Set

func (*NullablePatternsFilter) UnmarshalJSON

func (v *NullablePatternsFilter) UnmarshalJSON(src []byte) error

func (*NullablePatternsFilter) Unset

func (v *NullablePatternsFilter) Unset()

type NullablePermission

type NullablePermission struct {
	// contains filtered or unexported fields
}

func NewNullablePermission

func NewNullablePermission(val *Permission) *NullablePermission

func (NullablePermission) Get

func (v NullablePermission) Get() *Permission

func (NullablePermission) IsSet

func (v NullablePermission) IsSet() bool

func (NullablePermission) MarshalJSON

func (v NullablePermission) MarshalJSON() ([]byte, error)

func (*NullablePermission) Set

func (v *NullablePermission) Set(val *Permission)

func (*NullablePermission) UnmarshalJSON

func (v *NullablePermission) UnmarshalJSON(src []byte) error

func (*NullablePermission) Unset

func (v *NullablePermission) Unset()

type NullableProviderEvent

type NullableProviderEvent struct {
	// contains filtered or unexported fields
}

func NewNullableProviderEvent

func NewNullableProviderEvent(val *ProviderEvent) *NullableProviderEvent

func (NullableProviderEvent) Get

func (NullableProviderEvent) IsSet

func (v NullableProviderEvent) IsSet() bool

func (NullableProviderEvent) MarshalJSON

func (v NullableProviderEvent) MarshalJSON() ([]byte, error)

func (*NullableProviderEvent) Set

func (v *NullableProviderEvent) Set(val *ProviderEvent)

func (*NullableProviderEvent) UnmarshalJSON

func (v *NullableProviderEvent) UnmarshalJSON(src []byte) error

func (*NullableProviderEvent) Unset

func (v *NullableProviderEvent) Unset()

type NullableProviderEventAction

type NullableProviderEventAction struct {
	// contains filtered or unexported fields
}

func NewNullableProviderEventAction

func NewNullableProviderEventAction(val *ProviderEventAction) *NullableProviderEventAction

func (NullableProviderEventAction) Get

func (NullableProviderEventAction) IsSet

func (NullableProviderEventAction) MarshalJSON

func (v NullableProviderEventAction) MarshalJSON() ([]byte, error)

func (*NullableProviderEventAction) Set

func (*NullableProviderEventAction) UnmarshalJSON

func (v *NullableProviderEventAction) UnmarshalJSON(src []byte) error

func (*NullableProviderEventAction) Unset

func (v *NullableProviderEventAction) Unset()

type NullableProviderEventObjectType

type NullableProviderEventObjectType struct {
	// contains filtered or unexported fields
}

func (NullableProviderEventObjectType) Get

func (NullableProviderEventObjectType) IsSet

func (NullableProviderEventObjectType) MarshalJSON

func (v NullableProviderEventObjectType) MarshalJSON() ([]byte, error)

func (*NullableProviderEventObjectType) Set

func (*NullableProviderEventObjectType) UnmarshalJSON

func (v *NullableProviderEventObjectType) UnmarshalJSON(src []byte) error

func (*NullableProviderEventObjectType) Unset

type NullablePwdChange

type NullablePwdChange struct {
	// contains filtered or unexported fields
}

func NewNullablePwdChange

func NewNullablePwdChange(val *PwdChange) *NullablePwdChange

func (NullablePwdChange) Get

func (v NullablePwdChange) Get() *PwdChange

func (NullablePwdChange) IsSet

func (v NullablePwdChange) IsSet() bool

func (NullablePwdChange) MarshalJSON

func (v NullablePwdChange) MarshalJSON() ([]byte, error)

func (*NullablePwdChange) Set

func (v *NullablePwdChange) Set(val *PwdChange)

func (*NullablePwdChange) UnmarshalJSON

func (v *NullablePwdChange) UnmarshalJSON(src []byte) error

func (*NullablePwdChange) Unset

func (v *NullablePwdChange) Unset()

type NullableQuotaScan

type NullableQuotaScan struct {
	// contains filtered or unexported fields
}

func NewNullableQuotaScan

func NewNullableQuotaScan(val *QuotaScan) *NullableQuotaScan

func (NullableQuotaScan) Get

func (v NullableQuotaScan) Get() *QuotaScan

func (NullableQuotaScan) IsSet

func (v NullableQuotaScan) IsSet() bool

func (NullableQuotaScan) MarshalJSON

func (v NullableQuotaScan) MarshalJSON() ([]byte, error)

func (*NullableQuotaScan) Set

func (v *NullableQuotaScan) Set(val *QuotaScan)

func (*NullableQuotaScan) UnmarshalJSON

func (v *NullableQuotaScan) UnmarshalJSON(src []byte) error

func (*NullableQuotaScan) Unset

func (v *NullableQuotaScan) Unset()

type NullableQuotaUsage

type NullableQuotaUsage struct {
	// contains filtered or unexported fields
}

func NewNullableQuotaUsage

func NewNullableQuotaUsage(val *QuotaUsage) *NullableQuotaUsage

func (NullableQuotaUsage) Get

func (v NullableQuotaUsage) Get() *QuotaUsage

func (NullableQuotaUsage) IsSet

func (v NullableQuotaUsage) IsSet() bool

func (NullableQuotaUsage) MarshalJSON

func (v NullableQuotaUsage) MarshalJSON() ([]byte, error)

func (*NullableQuotaUsage) Set

func (v *NullableQuotaUsage) Set(val *QuotaUsage)

func (*NullableQuotaUsage) UnmarshalJSON

func (v *NullableQuotaUsage) UnmarshalJSON(src []byte) error

func (*NullableQuotaUsage) Unset

func (v *NullableQuotaUsage) Unset()

type NullableRecoveryCode

type NullableRecoveryCode struct {
	// contains filtered or unexported fields
}

func NewNullableRecoveryCode

func NewNullableRecoveryCode(val *RecoveryCode) *NullableRecoveryCode

func (NullableRecoveryCode) Get

func (NullableRecoveryCode) IsSet

func (v NullableRecoveryCode) IsSet() bool

func (NullableRecoveryCode) MarshalJSON

func (v NullableRecoveryCode) MarshalJSON() ([]byte, error)

func (*NullableRecoveryCode) Set

func (v *NullableRecoveryCode) Set(val *RecoveryCode)

func (*NullableRecoveryCode) UnmarshalJSON

func (v *NullableRecoveryCode) UnmarshalJSON(src []byte) error

func (*NullableRecoveryCode) Unset

func (v *NullableRecoveryCode) Unset()

type NullableRetentionCheck

type NullableRetentionCheck struct {
	// contains filtered or unexported fields
}

func NewNullableRetentionCheck

func NewNullableRetentionCheck(val *RetentionCheck) *NullableRetentionCheck

func (NullableRetentionCheck) Get

func (NullableRetentionCheck) IsSet

func (v NullableRetentionCheck) IsSet() bool

func (NullableRetentionCheck) MarshalJSON

func (v NullableRetentionCheck) MarshalJSON() ([]byte, error)

func (*NullableRetentionCheck) Set

func (*NullableRetentionCheck) UnmarshalJSON

func (v *NullableRetentionCheck) UnmarshalJSON(src []byte) error

func (*NullableRetentionCheck) Unset

func (v *NullableRetentionCheck) Unset()

type NullableRetentionCheckNotification

type NullableRetentionCheckNotification struct {
	// contains filtered or unexported fields
}

func (NullableRetentionCheckNotification) Get

func (NullableRetentionCheckNotification) IsSet

func (NullableRetentionCheckNotification) MarshalJSON

func (v NullableRetentionCheckNotification) MarshalJSON() ([]byte, error)

func (*NullableRetentionCheckNotification) Set

func (*NullableRetentionCheckNotification) UnmarshalJSON

func (v *NullableRetentionCheckNotification) UnmarshalJSON(src []byte) error

func (*NullableRetentionCheckNotification) Unset

type NullableS3Config

type NullableS3Config struct {
	// contains filtered or unexported fields
}

func NewNullableS3Config

func NewNullableS3Config(val *S3Config) *NullableS3Config

func (NullableS3Config) Get

func (v NullableS3Config) Get() *S3Config

func (NullableS3Config) IsSet

func (v NullableS3Config) IsSet() bool

func (NullableS3Config) MarshalJSON

func (v NullableS3Config) MarshalJSON() ([]byte, error)

func (*NullableS3Config) Set

func (v *NullableS3Config) Set(val *S3Config)

func (*NullableS3Config) UnmarshalJSON

func (v *NullableS3Config) UnmarshalJSON(src []byte) error

func (*NullableS3Config) Unset

func (v *NullableS3Config) Unset()

type NullableSFTPFsConfig

type NullableSFTPFsConfig struct {
	// contains filtered or unexported fields
}

func NewNullableSFTPFsConfig

func NewNullableSFTPFsConfig(val *SFTPFsConfig) *NullableSFTPFsConfig

func (NullableSFTPFsConfig) Get

func (NullableSFTPFsConfig) IsSet

func (v NullableSFTPFsConfig) IsSet() bool

func (NullableSFTPFsConfig) MarshalJSON

func (v NullableSFTPFsConfig) MarshalJSON() ([]byte, error)

func (*NullableSFTPFsConfig) Set

func (v *NullableSFTPFsConfig) Set(val *SFTPFsConfig)

func (*NullableSFTPFsConfig) UnmarshalJSON

func (v *NullableSFTPFsConfig) UnmarshalJSON(src []byte) error

func (*NullableSFTPFsConfig) Unset

func (v *NullableSFTPFsConfig) Unset()

type NullableSSHBinding

type NullableSSHBinding struct {
	// contains filtered or unexported fields
}

func NewNullableSSHBinding

func NewNullableSSHBinding(val *SSHBinding) *NullableSSHBinding

func (NullableSSHBinding) Get

func (v NullableSSHBinding) Get() *SSHBinding

func (NullableSSHBinding) IsSet

func (v NullableSSHBinding) IsSet() bool

func (NullableSSHBinding) MarshalJSON

func (v NullableSSHBinding) MarshalJSON() ([]byte, error)

func (*NullableSSHBinding) Set

func (v *NullableSSHBinding) Set(val *SSHBinding)

func (*NullableSSHBinding) UnmarshalJSON

func (v *NullableSSHBinding) UnmarshalJSON(src []byte) error

func (*NullableSSHBinding) Unset

func (v *NullableSSHBinding) Unset()

type NullableSSHHostKey

type NullableSSHHostKey struct {
	// contains filtered or unexported fields
}

func NewNullableSSHHostKey

func NewNullableSSHHostKey(val *SSHHostKey) *NullableSSHHostKey

func (NullableSSHHostKey) Get

func (v NullableSSHHostKey) Get() *SSHHostKey

func (NullableSSHHostKey) IsSet

func (v NullableSSHHostKey) IsSet() bool

func (NullableSSHHostKey) MarshalJSON

func (v NullableSSHHostKey) MarshalJSON() ([]byte, error)

func (*NullableSSHHostKey) Set

func (v *NullableSSHHostKey) Set(val *SSHHostKey)

func (*NullableSSHHostKey) UnmarshalJSON

func (v *NullableSSHHostKey) UnmarshalJSON(src []byte) error

func (*NullableSSHHostKey) Unset

func (v *NullableSSHHostKey) Unset()

type NullableSSHServiceStatus

type NullableSSHServiceStatus struct {
	// contains filtered or unexported fields
}

func NewNullableSSHServiceStatus

func NewNullableSSHServiceStatus(val *SSHServiceStatus) *NullableSSHServiceStatus

func (NullableSSHServiceStatus) Get

func (NullableSSHServiceStatus) IsSet

func (v NullableSSHServiceStatus) IsSet() bool

func (NullableSSHServiceStatus) MarshalJSON

func (v NullableSSHServiceStatus) MarshalJSON() ([]byte, error)

func (*NullableSSHServiceStatus) Set

func (*NullableSSHServiceStatus) UnmarshalJSON

func (v *NullableSSHServiceStatus) UnmarshalJSON(src []byte) error

func (*NullableSSHServiceStatus) Unset

func (v *NullableSSHServiceStatus) Unset()

type NullableScoreStatus

type NullableScoreStatus struct {
	// contains filtered or unexported fields
}

func NewNullableScoreStatus

func NewNullableScoreStatus(val *ScoreStatus) *NullableScoreStatus

func (NullableScoreStatus) Get

func (NullableScoreStatus) IsSet

func (v NullableScoreStatus) IsSet() bool

func (NullableScoreStatus) MarshalJSON

func (v NullableScoreStatus) MarshalJSON() ([]byte, error)

func (*NullableScoreStatus) Set

func (v *NullableScoreStatus) Set(val *ScoreStatus)

func (*NullableScoreStatus) UnmarshalJSON

func (v *NullableScoreStatus) UnmarshalJSON(src []byte) error

func (*NullableScoreStatus) Unset

func (v *NullableScoreStatus) Unset()

type NullableSecret

type NullableSecret struct {
	// contains filtered or unexported fields
}

func NewNullableSecret

func NewNullableSecret(val *Secret) *NullableSecret

func (NullableSecret) Get

func (v NullableSecret) Get() *Secret

func (NullableSecret) IsSet

func (v NullableSecret) IsSet() bool

func (NullableSecret) MarshalJSON

func (v NullableSecret) MarshalJSON() ([]byte, error)

func (*NullableSecret) Set

func (v *NullableSecret) Set(val *Secret)

func (*NullableSecret) UnmarshalJSON

func (v *NullableSecret) UnmarshalJSON(src []byte) error

func (*NullableSecret) Unset

func (v *NullableSecret) Unset()

type NullableServicesStatus

type NullableServicesStatus struct {
	// contains filtered or unexported fields
}

func NewNullableServicesStatus

func NewNullableServicesStatus(val *ServicesStatus) *NullableServicesStatus

func (NullableServicesStatus) Get

func (NullableServicesStatus) IsSet

func (v NullableServicesStatus) IsSet() bool

func (NullableServicesStatus) MarshalJSON

func (v NullableServicesStatus) MarshalJSON() ([]byte, error)

func (*NullableServicesStatus) Set

func (*NullableServicesStatus) UnmarshalJSON

func (v *NullableServicesStatus) UnmarshalJSON(src []byte) error

func (*NullableServicesStatus) Unset

func (v *NullableServicesStatus) Unset()

type NullableServicesStatusDefender

type NullableServicesStatusDefender struct {
	// contains filtered or unexported fields
}

func (NullableServicesStatusDefender) Get

func (NullableServicesStatusDefender) IsSet

func (NullableServicesStatusDefender) MarshalJSON

func (v NullableServicesStatusDefender) MarshalJSON() ([]byte, error)

func (*NullableServicesStatusDefender) Set

func (*NullableServicesStatusDefender) UnmarshalJSON

func (v *NullableServicesStatusDefender) UnmarshalJSON(src []byte) error

func (*NullableServicesStatusDefender) Unset

func (v *NullableServicesStatusDefender) Unset()

type NullableShare

type NullableShare struct {
	// contains filtered or unexported fields
}

func NewNullableShare

func NewNullableShare(val *Share) *NullableShare

func (NullableShare) Get

func (v NullableShare) Get() *Share

func (NullableShare) IsSet

func (v NullableShare) IsSet() bool

func (NullableShare) MarshalJSON

func (v NullableShare) MarshalJSON() ([]byte, error)

func (*NullableShare) Set

func (v *NullableShare) Set(val *Share)

func (*NullableShare) UnmarshalJSON

func (v *NullableShare) UnmarshalJSON(src []byte) error

func (*NullableShare) Unset

func (v *NullableShare) Unset()

type NullableShareScope

type NullableShareScope struct {
	// contains filtered or unexported fields
}

func NewNullableShareScope

func NewNullableShareScope(val *ShareScope) *NullableShareScope

func (NullableShareScope) Get

func (v NullableShareScope) Get() *ShareScope

func (NullableShareScope) IsSet

func (v NullableShareScope) IsSet() bool

func (NullableShareScope) MarshalJSON

func (v NullableShareScope) MarshalJSON() ([]byte, error)

func (*NullableShareScope) Set

func (v *NullableShareScope) Set(val *ShareScope)

func (*NullableShareScope) UnmarshalJSON

func (v *NullableShareScope) UnmarshalJSON(src []byte) error

func (*NullableShareScope) Unset

func (v *NullableShareScope) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSupportedProtocols

type NullableSupportedProtocols struct {
	// contains filtered or unexported fields
}

func NewNullableSupportedProtocols

func NewNullableSupportedProtocols(val *SupportedProtocols) *NullableSupportedProtocols

func (NullableSupportedProtocols) Get

func (NullableSupportedProtocols) IsSet

func (v NullableSupportedProtocols) IsSet() bool

func (NullableSupportedProtocols) MarshalJSON

func (v NullableSupportedProtocols) MarshalJSON() ([]byte, error)

func (*NullableSupportedProtocols) Set

func (*NullableSupportedProtocols) UnmarshalJSON

func (v *NullableSupportedProtocols) UnmarshalJSON(src []byte) error

func (*NullableSupportedProtocols) Unset

func (v *NullableSupportedProtocols) Unset()

type NullableTOTPConfig

type NullableTOTPConfig struct {
	// contains filtered or unexported fields
}

func NewNullableTOTPConfig

func NewNullableTOTPConfig(val *TOTPConfig) *NullableTOTPConfig

func (NullableTOTPConfig) Get

func (v NullableTOTPConfig) Get() *TOTPConfig

func (NullableTOTPConfig) IsSet

func (v NullableTOTPConfig) IsSet() bool

func (NullableTOTPConfig) MarshalJSON

func (v NullableTOTPConfig) MarshalJSON() ([]byte, error)

func (*NullableTOTPConfig) Set

func (v *NullableTOTPConfig) Set(val *TOTPConfig)

func (*NullableTOTPConfig) UnmarshalJSON

func (v *NullableTOTPConfig) UnmarshalJSON(src []byte) error

func (*NullableTOTPConfig) Unset

func (v *NullableTOTPConfig) Unset()

type NullableTOTPHMacAlgo

type NullableTOTPHMacAlgo struct {
	// contains filtered or unexported fields
}

func NewNullableTOTPHMacAlgo

func NewNullableTOTPHMacAlgo(val *TOTPHMacAlgo) *NullableTOTPHMacAlgo

func (NullableTOTPHMacAlgo) Get

func (NullableTOTPHMacAlgo) IsSet

func (v NullableTOTPHMacAlgo) IsSet() bool

func (NullableTOTPHMacAlgo) MarshalJSON

func (v NullableTOTPHMacAlgo) MarshalJSON() ([]byte, error)

func (*NullableTOTPHMacAlgo) Set

func (v *NullableTOTPHMacAlgo) Set(val *TOTPHMacAlgo)

func (*NullableTOTPHMacAlgo) UnmarshalJSON

func (v *NullableTOTPHMacAlgo) UnmarshalJSON(src []byte) error

func (*NullableTOTPHMacAlgo) Unset

func (v *NullableTOTPHMacAlgo) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableToken

type NullableToken struct {
	// contains filtered or unexported fields
}

func NewNullableToken

func NewNullableToken(val *Token) *NullableToken

func (NullableToken) Get

func (v NullableToken) Get() *Token

func (NullableToken) IsSet

func (v NullableToken) IsSet() bool

func (NullableToken) MarshalJSON

func (v NullableToken) MarshalJSON() ([]byte, error)

func (*NullableToken) Set

func (v *NullableToken) Set(val *Token)

func (*NullableToken) UnmarshalJSON

func (v *NullableToken) UnmarshalJSON(src []byte) error

func (*NullableToken) Unset

func (v *NullableToken) Unset()

type NullableTransfer

type NullableTransfer struct {
	// contains filtered or unexported fields
}

func NewNullableTransfer

func NewNullableTransfer(val *Transfer) *NullableTransfer

func (NullableTransfer) Get

func (v NullableTransfer) Get() *Transfer

func (NullableTransfer) IsSet

func (v NullableTransfer) IsSet() bool

func (NullableTransfer) MarshalJSON

func (v NullableTransfer) MarshalJSON() ([]byte, error)

func (*NullableTransfer) Set

func (v *NullableTransfer) Set(val *Transfer)

func (*NullableTransfer) UnmarshalJSON

func (v *NullableTransfer) UnmarshalJSON(src []byte) error

func (*NullableTransfer) Unset

func (v *NullableTransfer) Unset()

type NullableTransferQuotaUsage

type NullableTransferQuotaUsage struct {
	// contains filtered or unexported fields
}

func NewNullableTransferQuotaUsage

func NewNullableTransferQuotaUsage(val *TransferQuotaUsage) *NullableTransferQuotaUsage

func (NullableTransferQuotaUsage) Get

func (NullableTransferQuotaUsage) IsSet

func (v NullableTransferQuotaUsage) IsSet() bool

func (NullableTransferQuotaUsage) MarshalJSON

func (v NullableTransferQuotaUsage) MarshalJSON() ([]byte, error)

func (*NullableTransferQuotaUsage) Set

func (*NullableTransferQuotaUsage) UnmarshalJSON

func (v *NullableTransferQuotaUsage) UnmarshalJSON(src []byte) error

func (*NullableTransferQuotaUsage) Unset

func (v *NullableTransferQuotaUsage) Unset()

type NullableUser

type NullableUser struct {
	// contains filtered or unexported fields
}

func NewNullableUser

func NewNullableUser(val *User) *NullableUser

func (NullableUser) Get

func (v NullableUser) Get() *User

func (NullableUser) IsSet

func (v NullableUser) IsSet() bool

func (NullableUser) MarshalJSON

func (v NullableUser) MarshalJSON() ([]byte, error)

func (*NullableUser) Set

func (v *NullableUser) Set(val *User)

func (*NullableUser) UnmarshalJSON

func (v *NullableUser) UnmarshalJSON(src []byte) error

func (*NullableUser) Unset

func (v *NullableUser) Unset()

type NullableUserFilters

type NullableUserFilters struct {
	// contains filtered or unexported fields
}

func NewNullableUserFilters

func NewNullableUserFilters(val *UserFilters) *NullableUserFilters

func (NullableUserFilters) Get

func (NullableUserFilters) IsSet

func (v NullableUserFilters) IsSet() bool

func (NullableUserFilters) MarshalJSON

func (v NullableUserFilters) MarshalJSON() ([]byte, error)

func (*NullableUserFilters) Set

func (v *NullableUserFilters) Set(val *UserFilters)

func (*NullableUserFilters) UnmarshalJSON

func (v *NullableUserFilters) UnmarshalJSON(src []byte) error

func (*NullableUserFilters) Unset

func (v *NullableUserFilters) Unset()

type NullableUserProfile

type NullableUserProfile struct {
	// contains filtered or unexported fields
}

func NewNullableUserProfile

func NewNullableUserProfile(val *UserProfile) *NullableUserProfile

func (NullableUserProfile) Get

func (NullableUserProfile) IsSet

func (v NullableUserProfile) IsSet() bool

func (NullableUserProfile) MarshalJSON

func (v NullableUserProfile) MarshalJSON() ([]byte, error)

func (*NullableUserProfile) Set

func (v *NullableUserProfile) Set(val *UserProfile)

func (*NullableUserProfile) UnmarshalJSON

func (v *NullableUserProfile) UnmarshalJSON(src []byte) error

func (*NullableUserProfile) Unset

func (v *NullableUserProfile) Unset()

type NullableUserTOTPConfig

type NullableUserTOTPConfig struct {
	// contains filtered or unexported fields
}

func NewNullableUserTOTPConfig

func NewNullableUserTOTPConfig(val *UserTOTPConfig) *NullableUserTOTPConfig

func (NullableUserTOTPConfig) Get

func (NullableUserTOTPConfig) IsSet

func (v NullableUserTOTPConfig) IsSet() bool

func (NullableUserTOTPConfig) MarshalJSON

func (v NullableUserTOTPConfig) MarshalJSON() ([]byte, error)

func (*NullableUserTOTPConfig) Set

func (*NullableUserTOTPConfig) UnmarshalJSON

func (v *NullableUserTOTPConfig) UnmarshalJSON(src []byte) error

func (*NullableUserTOTPConfig) Unset

func (v *NullableUserTOTPConfig) Unset()

type NullableUserTOTPConfigAllOf

type NullableUserTOTPConfigAllOf struct {
	// contains filtered or unexported fields
}

func NewNullableUserTOTPConfigAllOf

func NewNullableUserTOTPConfigAllOf(val *UserTOTPConfigAllOf) *NullableUserTOTPConfigAllOf

func (NullableUserTOTPConfigAllOf) Get

func (NullableUserTOTPConfigAllOf) IsSet

func (NullableUserTOTPConfigAllOf) MarshalJSON

func (v NullableUserTOTPConfigAllOf) MarshalJSON() ([]byte, error)

func (*NullableUserTOTPConfigAllOf) Set

func (*NullableUserTOTPConfigAllOf) UnmarshalJSON

func (v *NullableUserTOTPConfigAllOf) UnmarshalJSON(src []byte) error

func (*NullableUserTOTPConfigAllOf) Unset

func (v *NullableUserTOTPConfigAllOf) Unset()

type NullableUserType

type NullableUserType struct {
	// contains filtered or unexported fields
}

func NewNullableUserType

func NewNullableUserType(val *UserType) *NullableUserType

func (NullableUserType) Get

func (v NullableUserType) Get() *UserType

func (NullableUserType) IsSet

func (v NullableUserType) IsSet() bool

func (NullableUserType) MarshalJSON

func (v NullableUserType) MarshalJSON() ([]byte, error)

func (*NullableUserType) Set

func (v *NullableUserType) Set(val *UserType)

func (*NullableUserType) UnmarshalJSON

func (v *NullableUserType) UnmarshalJSON(src []byte) error

func (*NullableUserType) Unset

func (v *NullableUserType) Unset()

type NullableVersionInfo

type NullableVersionInfo struct {
	// contains filtered or unexported fields
}

func NewNullableVersionInfo

func NewNullableVersionInfo(val *VersionInfo) *NullableVersionInfo

func (NullableVersionInfo) Get

func (NullableVersionInfo) IsSet

func (v NullableVersionInfo) IsSet() bool

func (NullableVersionInfo) MarshalJSON

func (v NullableVersionInfo) MarshalJSON() ([]byte, error)

func (*NullableVersionInfo) Set

func (v *NullableVersionInfo) Set(val *VersionInfo)

func (*NullableVersionInfo) UnmarshalJSON

func (v *NullableVersionInfo) UnmarshalJSON(src []byte) error

func (*NullableVersionInfo) Unset

func (v *NullableVersionInfo) Unset()

type NullableVirtualFolder

type NullableVirtualFolder struct {
	// contains filtered or unexported fields
}

func NewNullableVirtualFolder

func NewNullableVirtualFolder(val *VirtualFolder) *NullableVirtualFolder

func (NullableVirtualFolder) Get

func (NullableVirtualFolder) IsSet

func (v NullableVirtualFolder) IsSet() bool

func (NullableVirtualFolder) MarshalJSON

func (v NullableVirtualFolder) MarshalJSON() ([]byte, error)

func (*NullableVirtualFolder) Set

func (v *NullableVirtualFolder) Set(val *VirtualFolder)

func (*NullableVirtualFolder) UnmarshalJSON

func (v *NullableVirtualFolder) UnmarshalJSON(src []byte) error

func (*NullableVirtualFolder) Unset

func (v *NullableVirtualFolder) Unset()

type NullableVirtualFolderAllOf

type NullableVirtualFolderAllOf struct {
	// contains filtered or unexported fields
}

func NewNullableVirtualFolderAllOf

func NewNullableVirtualFolderAllOf(val *VirtualFolderAllOf) *NullableVirtualFolderAllOf

func (NullableVirtualFolderAllOf) Get

func (NullableVirtualFolderAllOf) IsSet

func (v NullableVirtualFolderAllOf) IsSet() bool

func (NullableVirtualFolderAllOf) MarshalJSON

func (v NullableVirtualFolderAllOf) MarshalJSON() ([]byte, error)

func (*NullableVirtualFolderAllOf) Set

func (*NullableVirtualFolderAllOf) UnmarshalJSON

func (v *NullableVirtualFolderAllOf) UnmarshalJSON(src []byte) error

func (*NullableVirtualFolderAllOf) Unset

func (v *NullableVirtualFolderAllOf) Unset()

type NullableWebClientOptions

type NullableWebClientOptions struct {
	// contains filtered or unexported fields
}

func NewNullableWebClientOptions

func NewNullableWebClientOptions(val *WebClientOptions) *NullableWebClientOptions

func (NullableWebClientOptions) Get

func (NullableWebClientOptions) IsSet

func (v NullableWebClientOptions) IsSet() bool

func (NullableWebClientOptions) MarshalJSON

func (v NullableWebClientOptions) MarshalJSON() ([]byte, error)

func (*NullableWebClientOptions) Set

func (*NullableWebClientOptions) UnmarshalJSON

func (v *NullableWebClientOptions) UnmarshalJSON(src []byte) error

func (*NullableWebClientOptions) Unset

func (v *NullableWebClientOptions) Unset()

type NullableWebDAVBinding

type NullableWebDAVBinding struct {
	// contains filtered or unexported fields
}

func NewNullableWebDAVBinding

func NewNullableWebDAVBinding(val *WebDAVBinding) *NullableWebDAVBinding

func (NullableWebDAVBinding) Get

func (NullableWebDAVBinding) IsSet

func (v NullableWebDAVBinding) IsSet() bool

func (NullableWebDAVBinding) MarshalJSON

func (v NullableWebDAVBinding) MarshalJSON() ([]byte, error)

func (*NullableWebDAVBinding) Set

func (v *NullableWebDAVBinding) Set(val *WebDAVBinding)

func (*NullableWebDAVBinding) UnmarshalJSON

func (v *NullableWebDAVBinding) UnmarshalJSON(src []byte) error

func (*NullableWebDAVBinding) Unset

func (v *NullableWebDAVBinding) Unset()

type NullableWebDAVServiceStatus

type NullableWebDAVServiceStatus struct {
	// contains filtered or unexported fields
}

func NewNullableWebDAVServiceStatus

func NewNullableWebDAVServiceStatus(val *WebDAVServiceStatus) *NullableWebDAVServiceStatus

func (NullableWebDAVServiceStatus) Get

func (NullableWebDAVServiceStatus) IsSet

func (NullableWebDAVServiceStatus) MarshalJSON

func (v NullableWebDAVServiceStatus) MarshalJSON() ([]byte, error)

func (*NullableWebDAVServiceStatus) Set

func (*NullableWebDAVServiceStatus) UnmarshalJSON

func (v *NullableWebDAVServiceStatus) UnmarshalJSON(src []byte) error

func (*NullableWebDAVServiceStatus) Unset

func (v *NullableWebDAVServiceStatus) Unset()

type PatternsFilter

type PatternsFilter struct {
	// exposed virtual path, if no other specific filter is defined, the filter applies for sub directories too. For example if filters are defined for the paths \"/\" and \"/sub\" then the filters for \"/\" are applied for any file outside the \"/sub\" directory
	Path *string `json:"path,omitempty"`
	// list of, case insensitive, allowed shell like patterns.
	AllowedPatterns []string `json:"allowed_patterns,omitempty"`
	// list of, case insensitive, denied shell like patterns. Denied patterns are evaluated before the allowed ones
	DeniedPatterns []string `json:"denied_patterns,omitempty"`
	// Deny policies   * `0` - default policy. Denied files/directories matching the filters are visible in directory listing but cannot be uploaded/downloaded/overwritten/renamed   * `1` - deny policy hide. This policy applies the same restrictions as the default one and denied files/directories matching the filters will also be hidden in directory listing. This mode may cause performance issues for large directories
	DenyPolicy *int32 `json:"deny_policy,omitempty"`
}

PatternsFilter struct for PatternsFilter

func NewPatternsFilter

func NewPatternsFilter() *PatternsFilter

NewPatternsFilter instantiates a new PatternsFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPatternsFilterWithDefaults

func NewPatternsFilterWithDefaults() *PatternsFilter

NewPatternsFilterWithDefaults instantiates a new PatternsFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PatternsFilter) GetAllowedPatterns

func (o *PatternsFilter) GetAllowedPatterns() []string

GetAllowedPatterns returns the AllowedPatterns field value if set, zero value otherwise.

func (*PatternsFilter) GetAllowedPatternsOk

func (o *PatternsFilter) GetAllowedPatternsOk() ([]string, bool)

GetAllowedPatternsOk returns a tuple with the AllowedPatterns field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatternsFilter) GetDeniedPatterns

func (o *PatternsFilter) GetDeniedPatterns() []string

GetDeniedPatterns returns the DeniedPatterns field value if set, zero value otherwise.

func (*PatternsFilter) GetDeniedPatternsOk

func (o *PatternsFilter) GetDeniedPatternsOk() ([]string, bool)

GetDeniedPatternsOk returns a tuple with the DeniedPatterns field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatternsFilter) GetDenyPolicy

func (o *PatternsFilter) GetDenyPolicy() int32

GetDenyPolicy returns the DenyPolicy field value if set, zero value otherwise.

func (*PatternsFilter) GetDenyPolicyOk

func (o *PatternsFilter) GetDenyPolicyOk() (*int32, bool)

GetDenyPolicyOk returns a tuple with the DenyPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatternsFilter) GetPath

func (o *PatternsFilter) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*PatternsFilter) GetPathOk

func (o *PatternsFilter) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatternsFilter) HasAllowedPatterns

func (o *PatternsFilter) HasAllowedPatterns() bool

HasAllowedPatterns returns a boolean if a field has been set.

func (*PatternsFilter) HasDeniedPatterns

func (o *PatternsFilter) HasDeniedPatterns() bool

HasDeniedPatterns returns a boolean if a field has been set.

func (*PatternsFilter) HasDenyPolicy

func (o *PatternsFilter) HasDenyPolicy() bool

HasDenyPolicy returns a boolean if a field has been set.

func (*PatternsFilter) HasPath

func (o *PatternsFilter) HasPath() bool

HasPath returns a boolean if a field has been set.

func (PatternsFilter) MarshalJSON

func (o PatternsFilter) MarshalJSON() ([]byte, error)

func (*PatternsFilter) SetAllowedPatterns

func (o *PatternsFilter) SetAllowedPatterns(v []string)

SetAllowedPatterns gets a reference to the given []string and assigns it to the AllowedPatterns field.

func (*PatternsFilter) SetDeniedPatterns

func (o *PatternsFilter) SetDeniedPatterns(v []string)

SetDeniedPatterns gets a reference to the given []string and assigns it to the DeniedPatterns field.

func (*PatternsFilter) SetDenyPolicy

func (o *PatternsFilter) SetDenyPolicy(v int32)

SetDenyPolicy gets a reference to the given int32 and assigns it to the DenyPolicy field.

func (*PatternsFilter) SetPath

func (o *PatternsFilter) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

type Permission

type Permission string

Permission Permissions: * `*` - all permissions are granted * `list` - list items is allowed * `download` - download files is allowed * `upload` - upload files is allowed * `overwrite` - overwrite an existing file, while uploading, is allowed. upload permission is required to allow file overwrite * `delete` - delete files or directories is allowed * `delete_files` - delete files is allowed * `delete_dirs` - delete directories is allowed * `rename` - rename files or directories is allowed * `rename_files` - rename files is allowed * `rename_dirs` - rename directories is allowed * `create_dirs` - create directories is allowed * `create_symlinks` - create links is allowed * `chmod` changing file or directory permissions is allowed * `chown` changing file or directory owner and group is allowed * `chtimes` changing file or directory access and modification time is allowed

const (
	PERMISSION_STAR            Permission = "*"
	PERMISSION_LIST            Permission = "list"
	PERMISSION_DOWNLOAD        Permission = "download"
	PERMISSION_UPLOAD          Permission = "upload"
	PERMISSION_OVERWRITE       Permission = "overwrite"
	PERMISSION_DELETE          Permission = "delete"
	PERMISSION_DELETE_FILES    Permission = "delete_files"
	PERMISSION_DELETE_DIRS     Permission = "delete_dirs"
	PERMISSION_RENAME          Permission = "rename"
	PERMISSION_RENAME_FILES    Permission = "rename_files"
	PERMISSION_RENAME_DIRS     Permission = "rename_dirs"
	PERMISSION_CREATE_DIRS     Permission = "create_dirs"
	PERMISSION_CREATE_SYMLINKS Permission = "create_symlinks"
	PERMISSION_CHMOD           Permission = "chmod"
	PERMISSION_CHOWN           Permission = "chown"
	PERMISSION_CHTIMES         Permission = "chtimes"
)

List of Permission

func NewPermissionFromValue

func NewPermissionFromValue(v string) (*Permission, error)

NewPermissionFromValue returns a pointer to a valid Permission for the value passed as argument, or an error if the value passed is not allowed by the enum

func (Permission) IsValid

func (v Permission) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (Permission) Ptr

func (v Permission) Ptr() *Permission

Ptr returns reference to Permission value

func (*Permission) UnmarshalJSON

func (v *Permission) UnmarshalJSON(src []byte) error

type ProviderEvent

type ProviderEvent struct {
	Id *string `json:"id,omitempty"`
	// unix timestamp in nanoseconds
	Timestamp  *int64                   `json:"timestamp,omitempty"`
	Action     *ProviderEventAction     `json:"action,omitempty"`
	Username   *string                  `json:"username,omitempty"`
	Ip         *string                  `json:"ip,omitempty"`
	ObjectType *ProviderEventObjectType `json:"object_type,omitempty"`
	ObjectName *string                  `json:"object_name,omitempty"`
	InstanceId *string                  `json:"instance_id,omitempty"`
}

ProviderEvent struct for ProviderEvent

func NewProviderEvent

func NewProviderEvent() *ProviderEvent

NewProviderEvent instantiates a new ProviderEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProviderEventWithDefaults

func NewProviderEventWithDefaults() *ProviderEvent

NewProviderEventWithDefaults instantiates a new ProviderEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProviderEvent) GetAction

func (o *ProviderEvent) GetAction() ProviderEventAction

GetAction returns the Action field value if set, zero value otherwise.

func (*ProviderEvent) GetActionOk

func (o *ProviderEvent) GetActionOk() (*ProviderEventAction, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetId

func (o *ProviderEvent) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ProviderEvent) GetIdOk

func (o *ProviderEvent) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetInstanceId

func (o *ProviderEvent) GetInstanceId() string

GetInstanceId returns the InstanceId field value if set, zero value otherwise.

func (*ProviderEvent) GetInstanceIdOk

func (o *ProviderEvent) GetInstanceIdOk() (*string, bool)

GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetIp

func (o *ProviderEvent) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*ProviderEvent) GetIpOk

func (o *ProviderEvent) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetObjectName

func (o *ProviderEvent) GetObjectName() string

GetObjectName returns the ObjectName field value if set, zero value otherwise.

func (*ProviderEvent) GetObjectNameOk

func (o *ProviderEvent) GetObjectNameOk() (*string, bool)

GetObjectNameOk returns a tuple with the ObjectName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetObjectType

func (o *ProviderEvent) GetObjectType() ProviderEventObjectType

GetObjectType returns the ObjectType field value if set, zero value otherwise.

func (*ProviderEvent) GetObjectTypeOk

func (o *ProviderEvent) GetObjectTypeOk() (*ProviderEventObjectType, bool)

GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetTimestamp

func (o *ProviderEvent) GetTimestamp() int64

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*ProviderEvent) GetTimestampOk

func (o *ProviderEvent) GetTimestampOk() (*int64, bool)

GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) GetUsername

func (o *ProviderEvent) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*ProviderEvent) GetUsernameOk

func (o *ProviderEvent) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderEvent) HasAction

func (o *ProviderEvent) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*ProviderEvent) HasId

func (o *ProviderEvent) HasId() bool

HasId returns a boolean if a field has been set.

func (*ProviderEvent) HasInstanceId

func (o *ProviderEvent) HasInstanceId() bool

HasInstanceId returns a boolean if a field has been set.

func (*ProviderEvent) HasIp

func (o *ProviderEvent) HasIp() bool

HasIp returns a boolean if a field has been set.

func (*ProviderEvent) HasObjectName

func (o *ProviderEvent) HasObjectName() bool

HasObjectName returns a boolean if a field has been set.

func (*ProviderEvent) HasObjectType

func (o *ProviderEvent) HasObjectType() bool

HasObjectType returns a boolean if a field has been set.

func (*ProviderEvent) HasTimestamp

func (o *ProviderEvent) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (*ProviderEvent) HasUsername

func (o *ProviderEvent) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (ProviderEvent) MarshalJSON

func (o ProviderEvent) MarshalJSON() ([]byte, error)

func (*ProviderEvent) SetAction

func (o *ProviderEvent) SetAction(v ProviderEventAction)

SetAction gets a reference to the given ProviderEventAction and assigns it to the Action field.

func (*ProviderEvent) SetId

func (o *ProviderEvent) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ProviderEvent) SetInstanceId

func (o *ProviderEvent) SetInstanceId(v string)

SetInstanceId gets a reference to the given string and assigns it to the InstanceId field.

func (*ProviderEvent) SetIp

func (o *ProviderEvent) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

func (*ProviderEvent) SetObjectName

func (o *ProviderEvent) SetObjectName(v string)

SetObjectName gets a reference to the given string and assigns it to the ObjectName field.

func (*ProviderEvent) SetObjectType

func (o *ProviderEvent) SetObjectType(v ProviderEventObjectType)

SetObjectType gets a reference to the given ProviderEventObjectType and assigns it to the ObjectType field.

func (*ProviderEvent) SetTimestamp

func (o *ProviderEvent) SetTimestamp(v int64)

SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field.

func (*ProviderEvent) SetUsername

func (o *ProviderEvent) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type ProviderEventAction

type ProviderEventAction string

ProviderEventAction the model 'ProviderEventAction'

const (
	PROVIDEREVENTACTION_ADD    ProviderEventAction = "add"
	PROVIDEREVENTACTION_UPDATE ProviderEventAction = "update"
	PROVIDEREVENTACTION_DELETE ProviderEventAction = "delete"
)

List of ProviderEventAction

func NewProviderEventActionFromValue

func NewProviderEventActionFromValue(v string) (*ProviderEventAction, error)

NewProviderEventActionFromValue returns a pointer to a valid ProviderEventAction for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ProviderEventAction) IsValid

func (v ProviderEventAction) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ProviderEventAction) Ptr

Ptr returns reference to ProviderEventAction value

func (*ProviderEventAction) UnmarshalJSON

func (v *ProviderEventAction) UnmarshalJSON(src []byte) error

type ProviderEventObjectType

type ProviderEventObjectType string

ProviderEventObjectType the model 'ProviderEventObjectType'

const (
	PROVIDEREVENTOBJECTTYPE_USER    ProviderEventObjectType = "user"
	PROVIDEREVENTOBJECTTYPE_ADMIN   ProviderEventObjectType = "admin"
	PROVIDEREVENTOBJECTTYPE_API_KEY ProviderEventObjectType = "api_key"
	PROVIDEREVENTOBJECTTYPE_SHARE   ProviderEventObjectType = "share"
)

List of ProviderEventObjectType

func NewProviderEventObjectTypeFromValue

func NewProviderEventObjectTypeFromValue(v string) (*ProviderEventObjectType, error)

NewProviderEventObjectTypeFromValue returns a pointer to a valid ProviderEventObjectType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ProviderEventObjectType) IsValid

func (v ProviderEventObjectType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ProviderEventObjectType) Ptr

Ptr returns reference to ProviderEventObjectType value

func (*ProviderEventObjectType) UnmarshalJSON

func (v *ProviderEventObjectType) UnmarshalJSON(src []byte) error

type PublicSharesApiApiDownloadShareFileRequest

type PublicSharesApiApiDownloadShareFileRequest struct {
	ApiService *PublicSharesApiService
	// contains filtered or unexported fields
}

func (PublicSharesApiApiDownloadShareFileRequest) Execute

func (PublicSharesApiApiDownloadShareFileRequest) Inline

If set, the response will not have the Content-Disposition header set to `attachment`

func (PublicSharesApiApiDownloadShareFileRequest) Path

Path to the file to download. It must be URL encoded, for example the path \"my dir/àdir/file.txt\" must be sent as \"my%20dir%2F%C3%A0dir%2Ffile.txt\"

type PublicSharesApiApiGetShareDirContentsRequest

type PublicSharesApiApiGetShareDirContentsRequest struct {
	ApiService *PublicSharesApiService
	// contains filtered or unexported fields
}

func (PublicSharesApiApiGetShareDirContentsRequest) Execute

func (PublicSharesApiApiGetShareDirContentsRequest) Path

Path to the folder to read. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\". If empty or missing the root folder is assumed

type PublicSharesApiApiGetShareRequest

type PublicSharesApiApiGetShareRequest struct {
	ApiService *PublicSharesApiService
	// contains filtered or unexported fields
}

func (PublicSharesApiApiGetShareRequest) Compress

func (PublicSharesApiApiGetShareRequest) Execute

type PublicSharesApiApiUploadSingleToShareRequest

type PublicSharesApiApiUploadSingleToShareRequest struct {
	ApiService *PublicSharesApiService
	// contains filtered or unexported fields
}

func (PublicSharesApiApiUploadSingleToShareRequest) Body

func (PublicSharesApiApiUploadSingleToShareRequest) Execute

func (PublicSharesApiApiUploadSingleToShareRequest) XSFTPGOMTIME

File modification time as unix timestamp in milliseconds

type PublicSharesApiApiUploadToShareRequest

type PublicSharesApiApiUploadToShareRequest struct {
	ApiService *PublicSharesApiService
	// contains filtered or unexported fields
}

func (PublicSharesApiApiUploadToShareRequest) Execute

func (PublicSharesApiApiUploadToShareRequest) Filenames

type PublicSharesApiService

type PublicSharesApiService service

PublicSharesApiService PublicSharesApi service

func (*PublicSharesApiService) DownloadShareFile

DownloadShareFile Download a single file

Returns the file contents as response body. The share must have exactly one path defined and it must be a directory for this to work

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return PublicSharesApiApiDownloadShareFileRequest

func (*PublicSharesApiService) DownloadShareFileExecute

Execute executes the request

@return *os.File

func (*PublicSharesApiService) GetShare

GetShare Download shared files and folders as a single zip file

A zip file, containing the shared files and folders, will be generated on the fly and returned as response body. Only folders and regular files will be included in the zip. The share must be defined with the read scope and the associated user must have list and download permissions

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return PublicSharesApiApiGetShareRequest

func (*PublicSharesApiService) GetShareDirContents

GetShareDirContents Read directory contents

Returns the contents of the specified directory for the specified share. The share must have exactly one path defined and it must be a directory for this to work

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return PublicSharesApiApiGetShareDirContentsRequest

func (*PublicSharesApiService) GetShareDirContentsExecute

Execute executes the request

@return []DirEntry

func (*PublicSharesApiService) GetShareExecute

Execute executes the request

@return *os.File

func (*PublicSharesApiService) UploadSingleToShare

UploadSingleToShare Upload a single file to the shared path

The share must be defined with the write scope and the associated user must have the upload/overwrite permissions

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@param fileName the name of the new file. It must be path encoded. Sub directories are not accepted
@return PublicSharesApiApiUploadSingleToShareRequest

func (*PublicSharesApiService) UploadSingleToShareExecute

Execute executes the request

@return []ApiResponse

func (*PublicSharesApiService) UploadToShare

UploadToShare Upload one or more files to the shared path

The share must be defined with the write scope and the associated user must have the upload permission

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return PublicSharesApiApiUploadToShareRequest

func (*PublicSharesApiService) UploadToShareExecute

Execute executes the request

@return []ApiResponse

type PwdChange

type PwdChange struct {
	CurrentPassword *string `json:"current_password,omitempty"`
	NewPassword     *string `json:"new_password,omitempty"`
}

PwdChange struct for PwdChange

func NewPwdChange

func NewPwdChange() *PwdChange

NewPwdChange instantiates a new PwdChange object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPwdChangeWithDefaults

func NewPwdChangeWithDefaults() *PwdChange

NewPwdChangeWithDefaults instantiates a new PwdChange object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PwdChange) GetCurrentPassword

func (o *PwdChange) GetCurrentPassword() string

GetCurrentPassword returns the CurrentPassword field value if set, zero value otherwise.

func (*PwdChange) GetCurrentPasswordOk

func (o *PwdChange) GetCurrentPasswordOk() (*string, bool)

GetCurrentPasswordOk returns a tuple with the CurrentPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PwdChange) GetNewPassword

func (o *PwdChange) GetNewPassword() string

GetNewPassword returns the NewPassword field value if set, zero value otherwise.

func (*PwdChange) GetNewPasswordOk

func (o *PwdChange) GetNewPasswordOk() (*string, bool)

GetNewPasswordOk returns a tuple with the NewPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PwdChange) HasCurrentPassword

func (o *PwdChange) HasCurrentPassword() bool

HasCurrentPassword returns a boolean if a field has been set.

func (*PwdChange) HasNewPassword

func (o *PwdChange) HasNewPassword() bool

HasNewPassword returns a boolean if a field has been set.

func (PwdChange) MarshalJSON

func (o PwdChange) MarshalJSON() ([]byte, error)

func (*PwdChange) SetCurrentPassword

func (o *PwdChange) SetCurrentPassword(v string)

SetCurrentPassword gets a reference to the given string and assigns it to the CurrentPassword field.

func (*PwdChange) SetNewPassword

func (o *PwdChange) SetNewPassword(v string)

SetNewPassword gets a reference to the given string and assigns it to the NewPassword field.

type QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest

type QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest) BaseVirtualFolder

The only folder mandatory fields are mapped_path,used_quota_size and used_quota_files. Please note that if the used quota fields are missing they will default to 0, this means that if mode is \"add\" the current value will remain unchanged, if mode is \"reset\" the missing field is set to 0

func (QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest) Execute

func (QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest) Mode

the update mode specifies if the given quota usage values should be added or replace the current ones

type QuotaApiApiFolderQuotaUpdateUsageRequest

type QuotaApiApiFolderQuotaUpdateUsageRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiFolderQuotaUpdateUsageRequest) Execute

func (QuotaApiApiFolderQuotaUpdateUsageRequest) Mode

the update mode specifies if the given quota usage values should be added or replace the current ones

func (QuotaApiApiFolderQuotaUpdateUsageRequest) QuotaUsage

If used_quota_size and used_quota_files are missing they will default to 0, this means that if mode is \"add\" the current value, for the missing field, will remain unchanged, if mode is \"reset\" the missing field is set to 0

type QuotaApiApiGetFoldersQuotaScansDeprecatedRequest

type QuotaApiApiGetFoldersQuotaScansDeprecatedRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiGetFoldersQuotaScansDeprecatedRequest) Execute

type QuotaApiApiGetFoldersQuotaScansRequest

type QuotaApiApiGetFoldersQuotaScansRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiGetFoldersQuotaScansRequest) Execute

type QuotaApiApiGetUsersQuotaScansDeprecatedRequest

type QuotaApiApiGetUsersQuotaScansDeprecatedRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiGetUsersQuotaScansDeprecatedRequest) Execute

type QuotaApiApiGetUsersQuotaScansRequest

type QuotaApiApiGetUsersQuotaScansRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiGetUsersQuotaScansRequest) Execute

type QuotaApiApiStartFolderQuotaScanDeprecatedRequest

type QuotaApiApiStartFolderQuotaScanDeprecatedRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiStartFolderQuotaScanDeprecatedRequest) BaseVirtualFolder

func (QuotaApiApiStartFolderQuotaScanDeprecatedRequest) Execute

type QuotaApiApiStartFolderQuotaScanRequest

type QuotaApiApiStartFolderQuotaScanRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiStartFolderQuotaScanRequest) Execute

type QuotaApiApiStartUserQuotaScanDeprecatedRequest

type QuotaApiApiStartUserQuotaScanDeprecatedRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiStartUserQuotaScanDeprecatedRequest) Execute

func (QuotaApiApiStartUserQuotaScanDeprecatedRequest) User

type QuotaApiApiStartUserQuotaScanRequest

type QuotaApiApiStartUserQuotaScanRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiStartUserQuotaScanRequest) Execute

type QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest

type QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest) Execute

func (QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest) Mode

the update mode specifies if the given quota usage values should be added or replace the current ones

func (QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest) User

The only user mandatory fields are username, used_quota_size and used_quota_files. Please note that if the quota fields are missing they will default to 0, this means that if mode is \"add\" the current value will remain unchanged, if mode is \"reset\" the missing field is set to 0

type QuotaApiApiUserQuotaUpdateUsageRequest

type QuotaApiApiUserQuotaUpdateUsageRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiUserQuotaUpdateUsageRequest) Execute

func (QuotaApiApiUserQuotaUpdateUsageRequest) Mode

the update mode specifies if the given quota usage values should be added or replace the current ones

func (QuotaApiApiUserQuotaUpdateUsageRequest) QuotaUsage

If used_quota_size and used_quota_files are missing they will default to 0, this means that if mode is \"add\" the current value, for the missing field, will remain unchanged, if mode is \"reset\" the missing field is set to 0

type QuotaApiApiUserTransferQuotaUpdateUsageRequest

type QuotaApiApiUserTransferQuotaUpdateUsageRequest struct {
	ApiService *QuotaApiService
	// contains filtered or unexported fields
}

func (QuotaApiApiUserTransferQuotaUpdateUsageRequest) Execute

func (QuotaApiApiUserTransferQuotaUpdateUsageRequest) Mode

the update mode specifies if the given quota usage values should be added or replace the current ones

func (QuotaApiApiUserTransferQuotaUpdateUsageRequest) TransferQuotaUsage

If used_upload_data_transfer and used_download_data_transfer are missing they will default to 0, this means that if mode is \"add\" the current value, for the missing field, will remain unchanged, if mode is \"reset\" the missing field is set to 0

type QuotaApiService

type QuotaApiService service

QuotaApiService QuotaApi service

func (*QuotaApiService) FolderQuotaUpdateUsage

func (a *QuotaApiService) FolderQuotaUpdateUsage(ctx context.Context, name string) QuotaApiApiFolderQuotaUpdateUsageRequest

FolderQuotaUpdateUsage Update folder quota usage limits

Sets the current used quota limits for the given folder

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name folder name
@return QuotaApiApiFolderQuotaUpdateUsageRequest

func (*QuotaApiService) FolderQuotaUpdateUsageDeprecated

func (a *QuotaApiService) FolderQuotaUpdateUsageDeprecated(ctx context.Context) QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest

FolderQuotaUpdateUsageDeprecated Update folder quota limits

Deprecated, please use '/quotas/folders/{name}/usage' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest

Deprecated

func (*QuotaApiService) FolderQuotaUpdateUsageDeprecatedExecute

func (a *QuotaApiService) FolderQuotaUpdateUsageDeprecatedExecute(r QuotaApiApiFolderQuotaUpdateUsageDeprecatedRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

Deprecated

func (*QuotaApiService) FolderQuotaUpdateUsageExecute

func (a *QuotaApiService) FolderQuotaUpdateUsageExecute(r QuotaApiApiFolderQuotaUpdateUsageRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

func (*QuotaApiService) GetFoldersQuotaScans

GetFoldersQuotaScans Get active folder quota scans

Returns the active folder quota scans

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiGetFoldersQuotaScansRequest

func (*QuotaApiService) GetFoldersQuotaScansDeprecated

GetFoldersQuotaScansDeprecated Get folders quota scans

Deprecated, please use '/quotas/folders/scans' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiGetFoldersQuotaScansDeprecatedRequest

Deprecated

func (*QuotaApiService) GetFoldersQuotaScansDeprecatedExecute

func (a *QuotaApiService) GetFoldersQuotaScansDeprecatedExecute(r QuotaApiApiGetFoldersQuotaScansDeprecatedRequest) ([]FolderQuotaScan, *http.Response, error)

Execute executes the request

@return []FolderQuotaScan

Deprecated

func (*QuotaApiService) GetFoldersQuotaScansExecute

Execute executes the request

@return []FolderQuotaScan

func (*QuotaApiService) GetUsersQuotaScans

GetUsersQuotaScans Get active user quota scans

Returns the active user quota scans

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiGetUsersQuotaScansRequest

func (*QuotaApiService) GetUsersQuotaScansDeprecated

GetUsersQuotaScansDeprecated Get quota scans

Deprecated, please use '/quotas/users/scans' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiGetUsersQuotaScansDeprecatedRequest

Deprecated

func (*QuotaApiService) GetUsersQuotaScansDeprecatedExecute

func (a *QuotaApiService) GetUsersQuotaScansDeprecatedExecute(r QuotaApiApiGetUsersQuotaScansDeprecatedRequest) ([]QuotaScan, *http.Response, error)

Execute executes the request

@return []QuotaScan

Deprecated

func (*QuotaApiService) GetUsersQuotaScansExecute

func (a *QuotaApiService) GetUsersQuotaScansExecute(r QuotaApiApiGetUsersQuotaScansRequest) ([]QuotaScan, *http.Response, error)

Execute executes the request

@return []QuotaScan

func (*QuotaApiService) StartFolderQuotaScan

StartFolderQuotaScan Start a folder quota scan

Starts a new quota scan for the given folder. A quota scan update the number of files and their total size for the specified folder

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name folder name
@return QuotaApiApiStartFolderQuotaScanRequest

func (*QuotaApiService) StartFolderQuotaScanDeprecated

StartFolderQuotaScanDeprecated Start a folder quota scan

Deprecated, please use '/quotas/folders/{name}/scan' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiStartFolderQuotaScanDeprecatedRequest

Deprecated

func (*QuotaApiService) StartFolderQuotaScanDeprecatedExecute

func (a *QuotaApiService) StartFolderQuotaScanDeprecatedExecute(r QuotaApiApiStartFolderQuotaScanDeprecatedRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

Deprecated

func (*QuotaApiService) StartFolderQuotaScanExecute

func (a *QuotaApiService) StartFolderQuotaScanExecute(r QuotaApiApiStartFolderQuotaScanRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

func (*QuotaApiService) StartUserQuotaScan

func (a *QuotaApiService) StartUserQuotaScan(ctx context.Context, username string) QuotaApiApiStartUserQuotaScanRequest

StartUserQuotaScan Start a user quota scan

Starts a new quota scan for the given user. A quota scan updates the number of files and their total size for the specified user and the virtual folders, if any, included in his quota

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return QuotaApiApiStartUserQuotaScanRequest

func (*QuotaApiService) StartUserQuotaScanDeprecated

StartUserQuotaScanDeprecated Start user quota scan

Deprecated, please use '/quotas/users/{username}/scan' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiStartUserQuotaScanDeprecatedRequest

Deprecated

func (*QuotaApiService) StartUserQuotaScanDeprecatedExecute

func (a *QuotaApiService) StartUserQuotaScanDeprecatedExecute(r QuotaApiApiStartUserQuotaScanDeprecatedRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

Deprecated

func (*QuotaApiService) StartUserQuotaScanExecute

Execute executes the request

@return ApiResponse

func (*QuotaApiService) UserQuotaUpdateUsage

func (a *QuotaApiService) UserQuotaUpdateUsage(ctx context.Context, username string) QuotaApiApiUserQuotaUpdateUsageRequest

UserQuotaUpdateUsage Update disk quota usage limits

Sets the current used quota limits for the given user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return QuotaApiApiUserQuotaUpdateUsageRequest

func (*QuotaApiService) UserQuotaUpdateUsageDeprecated

UserQuotaUpdateUsageDeprecated Update quota usage limits

Deprecated, please use '/quotas/users/{username}/usage' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest

Deprecated

func (*QuotaApiService) UserQuotaUpdateUsageDeprecatedExecute

func (a *QuotaApiService) UserQuotaUpdateUsageDeprecatedExecute(r QuotaApiApiUserQuotaUpdateUsageDeprecatedRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

Deprecated

func (*QuotaApiService) UserQuotaUpdateUsageExecute

func (a *QuotaApiService) UserQuotaUpdateUsageExecute(r QuotaApiApiUserQuotaUpdateUsageRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

func (*QuotaApiService) UserTransferQuotaUpdateUsage

func (a *QuotaApiService) UserTransferQuotaUpdateUsage(ctx context.Context, username string) QuotaApiApiUserTransferQuotaUpdateUsageRequest

UserTransferQuotaUpdateUsage Update transfer quota usage limits

Sets the current used transfer quota limits for the given user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return QuotaApiApiUserTransferQuotaUpdateUsageRequest

func (*QuotaApiService) UserTransferQuotaUpdateUsageExecute

func (a *QuotaApiService) UserTransferQuotaUpdateUsageExecute(r QuotaApiApiUserTransferQuotaUpdateUsageRequest) (*ApiResponse, *http.Response, error)

Execute executes the request

@return ApiResponse

type QuotaScan

type QuotaScan struct {
	// username to which the quota scan refers
	Username *string `json:"username,omitempty"`
	// scan start time as unix timestamp in milliseconds
	StartTime *int64 `json:"start_time,omitempty"`
}

QuotaScan struct for QuotaScan

func NewQuotaScan

func NewQuotaScan() *QuotaScan

NewQuotaScan instantiates a new QuotaScan object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQuotaScanWithDefaults

func NewQuotaScanWithDefaults() *QuotaScan

NewQuotaScanWithDefaults instantiates a new QuotaScan object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QuotaScan) GetStartTime

func (o *QuotaScan) GetStartTime() int64

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*QuotaScan) GetStartTimeOk

func (o *QuotaScan) GetStartTimeOk() (*int64, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QuotaScan) GetUsername

func (o *QuotaScan) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*QuotaScan) GetUsernameOk

func (o *QuotaScan) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QuotaScan) HasStartTime

func (o *QuotaScan) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*QuotaScan) HasUsername

func (o *QuotaScan) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (QuotaScan) MarshalJSON

func (o QuotaScan) MarshalJSON() ([]byte, error)

func (*QuotaScan) SetStartTime

func (o *QuotaScan) SetStartTime(v int64)

SetStartTime gets a reference to the given int64 and assigns it to the StartTime field.

func (*QuotaScan) SetUsername

func (o *QuotaScan) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type QuotaUsage

type QuotaUsage struct {
	UsedQuotaSize  *int64 `json:"used_quota_size,omitempty"`
	UsedQuotaFiles *int32 `json:"used_quota_files,omitempty"`
}

QuotaUsage struct for QuotaUsage

func NewQuotaUsage

func NewQuotaUsage() *QuotaUsage

NewQuotaUsage instantiates a new QuotaUsage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQuotaUsageWithDefaults

func NewQuotaUsageWithDefaults() *QuotaUsage

NewQuotaUsageWithDefaults instantiates a new QuotaUsage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QuotaUsage) GetUsedQuotaFiles

func (o *QuotaUsage) GetUsedQuotaFiles() int32

GetUsedQuotaFiles returns the UsedQuotaFiles field value if set, zero value otherwise.

func (*QuotaUsage) GetUsedQuotaFilesOk

func (o *QuotaUsage) GetUsedQuotaFilesOk() (*int32, bool)

GetUsedQuotaFilesOk returns a tuple with the UsedQuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QuotaUsage) GetUsedQuotaSize

func (o *QuotaUsage) GetUsedQuotaSize() int64

GetUsedQuotaSize returns the UsedQuotaSize field value if set, zero value otherwise.

func (*QuotaUsage) GetUsedQuotaSizeOk

func (o *QuotaUsage) GetUsedQuotaSizeOk() (*int64, bool)

GetUsedQuotaSizeOk returns a tuple with the UsedQuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QuotaUsage) HasUsedQuotaFiles

func (o *QuotaUsage) HasUsedQuotaFiles() bool

HasUsedQuotaFiles returns a boolean if a field has been set.

func (*QuotaUsage) HasUsedQuotaSize

func (o *QuotaUsage) HasUsedQuotaSize() bool

HasUsedQuotaSize returns a boolean if a field has been set.

func (QuotaUsage) MarshalJSON

func (o QuotaUsage) MarshalJSON() ([]byte, error)

func (*QuotaUsage) SetUsedQuotaFiles

func (o *QuotaUsage) SetUsedQuotaFiles(v int32)

SetUsedQuotaFiles gets a reference to the given int32 and assigns it to the UsedQuotaFiles field.

func (*QuotaUsage) SetUsedQuotaSize

func (o *QuotaUsage) SetUsedQuotaSize(v int64)

SetUsedQuotaSize gets a reference to the given int64 and assigns it to the UsedQuotaSize field.

type RecoveryCode

type RecoveryCode struct {
	Secret *Secret `json:"secret,omitempty"`
	Used   *bool   `json:"used,omitempty"`
}

RecoveryCode Recovery codes to use if the user loses access to their second factor auth device. Each code can only be used once, you should use these codes to login and disable or reset 2FA for your account

func NewRecoveryCode

func NewRecoveryCode() *RecoveryCode

NewRecoveryCode instantiates a new RecoveryCode object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRecoveryCodeWithDefaults

func NewRecoveryCodeWithDefaults() *RecoveryCode

NewRecoveryCodeWithDefaults instantiates a new RecoveryCode object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RecoveryCode) GetSecret

func (o *RecoveryCode) GetSecret() Secret

GetSecret returns the Secret field value if set, zero value otherwise.

func (*RecoveryCode) GetSecretOk

func (o *RecoveryCode) GetSecretOk() (*Secret, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecoveryCode) GetUsed

func (o *RecoveryCode) GetUsed() bool

GetUsed returns the Used field value if set, zero value otherwise.

func (*RecoveryCode) GetUsedOk

func (o *RecoveryCode) GetUsedOk() (*bool, bool)

GetUsedOk returns a tuple with the Used field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecoveryCode) HasSecret

func (o *RecoveryCode) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (*RecoveryCode) HasUsed

func (o *RecoveryCode) HasUsed() bool

HasUsed returns a boolean if a field has been set.

func (RecoveryCode) MarshalJSON

func (o RecoveryCode) MarshalJSON() ([]byte, error)

func (*RecoveryCode) SetSecret

func (o *RecoveryCode) SetSecret(v Secret)

SetSecret gets a reference to the given Secret and assigns it to the Secret field.

func (*RecoveryCode) SetUsed

func (o *RecoveryCode) SetUsed(v bool)

SetUsed gets a reference to the given bool and assigns it to the Used field.

type RetentionCheck

type RetentionCheck struct {
	// username to which the retention check refers
	Username *string           `json:"username,omitempty"`
	Folders  []FolderRetention `json:"folders,omitempty"`
	// check start time as unix timestamp in milliseconds
	StartTime     *int64                       `json:"start_time,omitempty"`
	Notifications []RetentionCheckNotification `json:"notifications,omitempty"`
	// if the notification method is set to \"Email\", this is the e-mail address that receives the retention check report. This field is automatically set to the email address associated with the administrator starting the check
	Email *string `json:"email,omitempty"`
}

RetentionCheck struct for RetentionCheck

func NewRetentionCheck

func NewRetentionCheck() *RetentionCheck

NewRetentionCheck instantiates a new RetentionCheck object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRetentionCheckWithDefaults

func NewRetentionCheckWithDefaults() *RetentionCheck

NewRetentionCheckWithDefaults instantiates a new RetentionCheck object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RetentionCheck) GetEmail

func (o *RetentionCheck) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*RetentionCheck) GetEmailOk

func (o *RetentionCheck) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetentionCheck) GetFolders

func (o *RetentionCheck) GetFolders() []FolderRetention

GetFolders returns the Folders field value if set, zero value otherwise.

func (*RetentionCheck) GetFoldersOk

func (o *RetentionCheck) GetFoldersOk() ([]FolderRetention, bool)

GetFoldersOk returns a tuple with the Folders field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetentionCheck) GetNotifications

func (o *RetentionCheck) GetNotifications() []RetentionCheckNotification

GetNotifications returns the Notifications field value if set, zero value otherwise.

func (*RetentionCheck) GetNotificationsOk

func (o *RetentionCheck) GetNotificationsOk() ([]RetentionCheckNotification, bool)

GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetentionCheck) GetStartTime

func (o *RetentionCheck) GetStartTime() int64

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*RetentionCheck) GetStartTimeOk

func (o *RetentionCheck) GetStartTimeOk() (*int64, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetentionCheck) GetUsername

func (o *RetentionCheck) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*RetentionCheck) GetUsernameOk

func (o *RetentionCheck) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetentionCheck) HasEmail

func (o *RetentionCheck) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*RetentionCheck) HasFolders

func (o *RetentionCheck) HasFolders() bool

HasFolders returns a boolean if a field has been set.

func (*RetentionCheck) HasNotifications

func (o *RetentionCheck) HasNotifications() bool

HasNotifications returns a boolean if a field has been set.

func (*RetentionCheck) HasStartTime

func (o *RetentionCheck) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*RetentionCheck) HasUsername

func (o *RetentionCheck) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (RetentionCheck) MarshalJSON

func (o RetentionCheck) MarshalJSON() ([]byte, error)

func (*RetentionCheck) SetEmail

func (o *RetentionCheck) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*RetentionCheck) SetFolders

func (o *RetentionCheck) SetFolders(v []FolderRetention)

SetFolders gets a reference to the given []FolderRetention and assigns it to the Folders field.

func (*RetentionCheck) SetNotifications

func (o *RetentionCheck) SetNotifications(v []RetentionCheckNotification)

SetNotifications gets a reference to the given []RetentionCheckNotification and assigns it to the Notifications field.

func (*RetentionCheck) SetStartTime

func (o *RetentionCheck) SetStartTime(v int64)

SetStartTime gets a reference to the given int64 and assigns it to the StartTime field.

func (*RetentionCheck) SetUsername

func (o *RetentionCheck) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type RetentionCheckNotification

type RetentionCheckNotification string

RetentionCheckNotification Options: * `Hook` - notify result using the defined hook. A \"data_retention_hook\" must be defined in your configuration file for this to work * `Email` - notify results by email. The admin starting the retention check must have an associated email address and the SMTP server must be configured for this to work

const (
	RETENTIONCHECKNOTIFICATION_HOOK  RetentionCheckNotification = "Hook"
	RETENTIONCHECKNOTIFICATION_EMAIL RetentionCheckNotification = "Email"
)

List of RetentionCheckNotification

func NewRetentionCheckNotificationFromValue

func NewRetentionCheckNotificationFromValue(v string) (*RetentionCheckNotification, error)

NewRetentionCheckNotificationFromValue returns a pointer to a valid RetentionCheckNotification for the value passed as argument, or an error if the value passed is not allowed by the enum

func (RetentionCheckNotification) IsValid

func (v RetentionCheckNotification) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (RetentionCheckNotification) Ptr

Ptr returns reference to RetentionCheckNotification value

func (*RetentionCheckNotification) UnmarshalJSON

func (v *RetentionCheckNotification) UnmarshalJSON(src []byte) error

type S3Config

type S3Config struct {
	Bucket       *string `json:"bucket,omitempty"`
	Region       *string `json:"region,omitempty"`
	AccessKey    *string `json:"access_key,omitempty"`
	AccessSecret *Secret `json:"access_secret,omitempty"`
	// optional endpoint
	Endpoint     *string `json:"endpoint,omitempty"`
	StorageClass *string `json:"storage_class,omitempty"`
	// The canned ACL to apply to uploaded objects. Leave empty to use the default ACL. For more information and available ACLs, see here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl
	Acl *string `json:"acl,omitempty"`
	// the buffer size (in MB) to use for multipart uploads. The minimum allowed part size is 5MB, and if this value is set to zero, the default value (5MB) for the AWS SDK will be used. The minimum allowed value is 5.
	UploadPartSize *int32 `json:"upload_part_size,omitempty"`
	// the number of parts to upload in parallel. If this value is set to zero, the default value (5) will be used
	UploadConcurrency *int32 `json:"upload_concurrency,omitempty"`
	// the maximum time allowed, in seconds, to upload a single chunk (the chunk size is defined via \"upload_part_size\"). 0 means no timeout
	UploadPartMaxTime *int32 `json:"upload_part_max_time,omitempty"`
	// the buffer size (in MB) to use for multipart downloads. The minimum allowed part size is 5MB, and if this value is set to zero, the default value (5MB) for the AWS SDK will be used. The minimum allowed value is 5. Ignored for partial downloads
	DownloadPartSize *int32 `json:"download_part_size,omitempty"`
	// the number of parts to download in parallel. If this value is set to zero, the default value (5) will be used. Ignored for partial downloads
	DownloadConcurrency *int32 `json:"download_concurrency,omitempty"`
	// the maximum time allowed, in seconds, to download a single chunk (the chunk size is defined via \"download_part_size\"). 0 means no timeout. Ignored for partial downloads.
	DownloadPartMaxTime *int32 `json:"download_part_max_time,omitempty"`
	// Set this to \"true\" to force the request to use path-style addressing, i.e., \"http://s3.amazonaws.com/BUCKET/KEY\". By default, the S3 client will use virtual hosted bucket addressing when possible (\"http://BUCKET.s3.amazonaws.com/KEY\")
	ForcePathStyle *bool `json:"force_path_style,omitempty"`
	// key_prefix is similar to a chroot directory for a local filesystem. If specified the user will only see contents that starts with this prefix and so you can restrict access to a specific virtual folder. The prefix, if not empty, must not start with \"/\" and must end with \"/\". If empty the whole bucket contents will be available
	KeyPrefix *string `json:"key_prefix,omitempty"`
}

S3Config S3 Compatible Object Storage configuration details

func NewS3Config

func NewS3Config() *S3Config

NewS3Config instantiates a new S3Config object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewS3ConfigWithDefaults

func NewS3ConfigWithDefaults() *S3Config

NewS3ConfigWithDefaults instantiates a new S3Config object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*S3Config) GetAccessKey

func (o *S3Config) GetAccessKey() string

GetAccessKey returns the AccessKey field value if set, zero value otherwise.

func (*S3Config) GetAccessKeyOk

func (o *S3Config) GetAccessKeyOk() (*string, bool)

GetAccessKeyOk returns a tuple with the AccessKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetAccessSecret

func (o *S3Config) GetAccessSecret() Secret

GetAccessSecret returns the AccessSecret field value if set, zero value otherwise.

func (*S3Config) GetAccessSecretOk

func (o *S3Config) GetAccessSecretOk() (*Secret, bool)

GetAccessSecretOk returns a tuple with the AccessSecret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetAcl

func (o *S3Config) GetAcl() string

GetAcl returns the Acl field value if set, zero value otherwise.

func (*S3Config) GetAclOk

func (o *S3Config) GetAclOk() (*string, bool)

GetAclOk returns a tuple with the Acl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetBucket

func (o *S3Config) GetBucket() string

GetBucket returns the Bucket field value if set, zero value otherwise.

func (*S3Config) GetBucketOk

func (o *S3Config) GetBucketOk() (*string, bool)

GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetDownloadConcurrency

func (o *S3Config) GetDownloadConcurrency() int32

GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise.

func (*S3Config) GetDownloadConcurrencyOk

func (o *S3Config) GetDownloadConcurrencyOk() (*int32, bool)

GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetDownloadPartMaxTime

func (o *S3Config) GetDownloadPartMaxTime() int32

GetDownloadPartMaxTime returns the DownloadPartMaxTime field value if set, zero value otherwise.

func (*S3Config) GetDownloadPartMaxTimeOk

func (o *S3Config) GetDownloadPartMaxTimeOk() (*int32, bool)

GetDownloadPartMaxTimeOk returns a tuple with the DownloadPartMaxTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetDownloadPartSize

func (o *S3Config) GetDownloadPartSize() int32

GetDownloadPartSize returns the DownloadPartSize field value if set, zero value otherwise.

func (*S3Config) GetDownloadPartSizeOk

func (o *S3Config) GetDownloadPartSizeOk() (*int32, bool)

GetDownloadPartSizeOk returns a tuple with the DownloadPartSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetEndpoint

func (o *S3Config) GetEndpoint() string

GetEndpoint returns the Endpoint field value if set, zero value otherwise.

func (*S3Config) GetEndpointOk

func (o *S3Config) GetEndpointOk() (*string, bool)

GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetForcePathStyle

func (o *S3Config) GetForcePathStyle() bool

GetForcePathStyle returns the ForcePathStyle field value if set, zero value otherwise.

func (*S3Config) GetForcePathStyleOk

func (o *S3Config) GetForcePathStyleOk() (*bool, bool)

GetForcePathStyleOk returns a tuple with the ForcePathStyle field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetKeyPrefix

func (o *S3Config) GetKeyPrefix() string

GetKeyPrefix returns the KeyPrefix field value if set, zero value otherwise.

func (*S3Config) GetKeyPrefixOk

func (o *S3Config) GetKeyPrefixOk() (*string, bool)

GetKeyPrefixOk returns a tuple with the KeyPrefix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetRegion

func (o *S3Config) GetRegion() string

GetRegion returns the Region field value if set, zero value otherwise.

func (*S3Config) GetRegionOk

func (o *S3Config) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetStorageClass

func (o *S3Config) GetStorageClass() string

GetStorageClass returns the StorageClass field value if set, zero value otherwise.

func (*S3Config) GetStorageClassOk

func (o *S3Config) GetStorageClassOk() (*string, bool)

GetStorageClassOk returns a tuple with the StorageClass field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetUploadConcurrency

func (o *S3Config) GetUploadConcurrency() int32

GetUploadConcurrency returns the UploadConcurrency field value if set, zero value otherwise.

func (*S3Config) GetUploadConcurrencyOk

func (o *S3Config) GetUploadConcurrencyOk() (*int32, bool)

GetUploadConcurrencyOk returns a tuple with the UploadConcurrency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetUploadPartMaxTime

func (o *S3Config) GetUploadPartMaxTime() int32

GetUploadPartMaxTime returns the UploadPartMaxTime field value if set, zero value otherwise.

func (*S3Config) GetUploadPartMaxTimeOk

func (o *S3Config) GetUploadPartMaxTimeOk() (*int32, bool)

GetUploadPartMaxTimeOk returns a tuple with the UploadPartMaxTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) GetUploadPartSize

func (o *S3Config) GetUploadPartSize() int32

GetUploadPartSize returns the UploadPartSize field value if set, zero value otherwise.

func (*S3Config) GetUploadPartSizeOk

func (o *S3Config) GetUploadPartSizeOk() (*int32, bool)

GetUploadPartSizeOk returns a tuple with the UploadPartSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*S3Config) HasAccessKey

func (o *S3Config) HasAccessKey() bool

HasAccessKey returns a boolean if a field has been set.

func (*S3Config) HasAccessSecret

func (o *S3Config) HasAccessSecret() bool

HasAccessSecret returns a boolean if a field has been set.

func (*S3Config) HasAcl

func (o *S3Config) HasAcl() bool

HasAcl returns a boolean if a field has been set.

func (*S3Config) HasBucket

func (o *S3Config) HasBucket() bool

HasBucket returns a boolean if a field has been set.

func (*S3Config) HasDownloadConcurrency

func (o *S3Config) HasDownloadConcurrency() bool

HasDownloadConcurrency returns a boolean if a field has been set.

func (*S3Config) HasDownloadPartMaxTime

func (o *S3Config) HasDownloadPartMaxTime() bool

HasDownloadPartMaxTime returns a boolean if a field has been set.

func (*S3Config) HasDownloadPartSize

func (o *S3Config) HasDownloadPartSize() bool

HasDownloadPartSize returns a boolean if a field has been set.

func (*S3Config) HasEndpoint

func (o *S3Config) HasEndpoint() bool

HasEndpoint returns a boolean if a field has been set.

func (*S3Config) HasForcePathStyle

func (o *S3Config) HasForcePathStyle() bool

HasForcePathStyle returns a boolean if a field has been set.

func (*S3Config) HasKeyPrefix

func (o *S3Config) HasKeyPrefix() bool

HasKeyPrefix returns a boolean if a field has been set.

func (*S3Config) HasRegion

func (o *S3Config) HasRegion() bool

HasRegion returns a boolean if a field has been set.

func (*S3Config) HasStorageClass

func (o *S3Config) HasStorageClass() bool

HasStorageClass returns a boolean if a field has been set.

func (*S3Config) HasUploadConcurrency

func (o *S3Config) HasUploadConcurrency() bool

HasUploadConcurrency returns a boolean if a field has been set.

func (*S3Config) HasUploadPartMaxTime

func (o *S3Config) HasUploadPartMaxTime() bool

HasUploadPartMaxTime returns a boolean if a field has been set.

func (*S3Config) HasUploadPartSize

func (o *S3Config) HasUploadPartSize() bool

HasUploadPartSize returns a boolean if a field has been set.

func (S3Config) MarshalJSON

func (o S3Config) MarshalJSON() ([]byte, error)

func (*S3Config) SetAccessKey

func (o *S3Config) SetAccessKey(v string)

SetAccessKey gets a reference to the given string and assigns it to the AccessKey field.

func (*S3Config) SetAccessSecret

func (o *S3Config) SetAccessSecret(v Secret)

SetAccessSecret gets a reference to the given Secret and assigns it to the AccessSecret field.

func (*S3Config) SetAcl

func (o *S3Config) SetAcl(v string)

SetAcl gets a reference to the given string and assigns it to the Acl field.

func (*S3Config) SetBucket

func (o *S3Config) SetBucket(v string)

SetBucket gets a reference to the given string and assigns it to the Bucket field.

func (*S3Config) SetDownloadConcurrency

func (o *S3Config) SetDownloadConcurrency(v int32)

SetDownloadConcurrency gets a reference to the given int32 and assigns it to the DownloadConcurrency field.

func (*S3Config) SetDownloadPartMaxTime

func (o *S3Config) SetDownloadPartMaxTime(v int32)

SetDownloadPartMaxTime gets a reference to the given int32 and assigns it to the DownloadPartMaxTime field.

func (*S3Config) SetDownloadPartSize

func (o *S3Config) SetDownloadPartSize(v int32)

SetDownloadPartSize gets a reference to the given int32 and assigns it to the DownloadPartSize field.

func (*S3Config) SetEndpoint

func (o *S3Config) SetEndpoint(v string)

SetEndpoint gets a reference to the given string and assigns it to the Endpoint field.

func (*S3Config) SetForcePathStyle

func (o *S3Config) SetForcePathStyle(v bool)

SetForcePathStyle gets a reference to the given bool and assigns it to the ForcePathStyle field.

func (*S3Config) SetKeyPrefix

func (o *S3Config) SetKeyPrefix(v string)

SetKeyPrefix gets a reference to the given string and assigns it to the KeyPrefix field.

func (*S3Config) SetRegion

func (o *S3Config) SetRegion(v string)

SetRegion gets a reference to the given string and assigns it to the Region field.

func (*S3Config) SetStorageClass

func (o *S3Config) SetStorageClass(v string)

SetStorageClass gets a reference to the given string and assigns it to the StorageClass field.

func (*S3Config) SetUploadConcurrency

func (o *S3Config) SetUploadConcurrency(v int32)

SetUploadConcurrency gets a reference to the given int32 and assigns it to the UploadConcurrency field.

func (*S3Config) SetUploadPartMaxTime

func (o *S3Config) SetUploadPartMaxTime(v int32)

SetUploadPartMaxTime gets a reference to the given int32 and assigns it to the UploadPartMaxTime field.

func (*S3Config) SetUploadPartSize

func (o *S3Config) SetUploadPartSize(v int32)

SetUploadPartSize gets a reference to the given int32 and assigns it to the UploadPartSize field.

type SFTPFsConfig

type SFTPFsConfig struct {
	// remote SFTP endpoint as host:port
	Endpoint *string `json:"endpoint,omitempty"`
	// you can specify a password or private key or both. In the latter case the private key will be tried first.
	Username   *string `json:"username,omitempty"`
	Password   *Secret `json:"password,omitempty"`
	PrivateKey *Secret `json:"private_key,omitempty"`
	// SHA256 fingerprints to use for host key verification. If you don't provide any fingerprint the remote host key will not be verified, this is a security risk
	Fingerprints []string `json:"fingerprints,omitempty"`
	// Specifying a prefix you can restrict all operations to a given path within the remote SFTP server.
	Prefix *string `json:"prefix,omitempty"`
	// Concurrent reads are safe to use and disabling them will degrade performance. Some servers automatically delete files once they are downloaded. Using concurrent reads is problematic with such servers.
	DisableConcurrentReads *bool `json:"disable_concurrent_reads,omitempty"`
	// The size of the buffer (in MB) to use for transfers. By enabling buffering, the reads and writes, from/to the remote SFTP server, are split in multiple concurrent requests and this allows data to be transferred at a faster rate, over high latency networks, by overlapping round-trip times. With buffering enabled, resuming uploads is not supported and a file cannot be opened for both reading and writing at the same time. 0 means disabled.
	BufferSize *int32 `json:"buffer_size,omitempty"`
}

SFTPFsConfig struct for SFTPFsConfig

func NewSFTPFsConfig

func NewSFTPFsConfig() *SFTPFsConfig

NewSFTPFsConfig instantiates a new SFTPFsConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSFTPFsConfigWithDefaults

func NewSFTPFsConfigWithDefaults() *SFTPFsConfig

NewSFTPFsConfigWithDefaults instantiates a new SFTPFsConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SFTPFsConfig) GetBufferSize

func (o *SFTPFsConfig) GetBufferSize() int32

GetBufferSize returns the BufferSize field value if set, zero value otherwise.

func (*SFTPFsConfig) GetBufferSizeOk

func (o *SFTPFsConfig) GetBufferSizeOk() (*int32, bool)

GetBufferSizeOk returns a tuple with the BufferSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetDisableConcurrentReads

func (o *SFTPFsConfig) GetDisableConcurrentReads() bool

GetDisableConcurrentReads returns the DisableConcurrentReads field value if set, zero value otherwise.

func (*SFTPFsConfig) GetDisableConcurrentReadsOk

func (o *SFTPFsConfig) GetDisableConcurrentReadsOk() (*bool, bool)

GetDisableConcurrentReadsOk returns a tuple with the DisableConcurrentReads field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetEndpoint

func (o *SFTPFsConfig) GetEndpoint() string

GetEndpoint returns the Endpoint field value if set, zero value otherwise.

func (*SFTPFsConfig) GetEndpointOk

func (o *SFTPFsConfig) GetEndpointOk() (*string, bool)

GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetFingerprints

func (o *SFTPFsConfig) GetFingerprints() []string

GetFingerprints returns the Fingerprints field value if set, zero value otherwise.

func (*SFTPFsConfig) GetFingerprintsOk

func (o *SFTPFsConfig) GetFingerprintsOk() ([]string, bool)

GetFingerprintsOk returns a tuple with the Fingerprints field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetPassword

func (o *SFTPFsConfig) GetPassword() Secret

GetPassword returns the Password field value if set, zero value otherwise.

func (*SFTPFsConfig) GetPasswordOk

func (o *SFTPFsConfig) GetPasswordOk() (*Secret, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetPrefix

func (o *SFTPFsConfig) GetPrefix() string

GetPrefix returns the Prefix field value if set, zero value otherwise.

func (*SFTPFsConfig) GetPrefixOk

func (o *SFTPFsConfig) GetPrefixOk() (*string, bool)

GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetPrivateKey

func (o *SFTPFsConfig) GetPrivateKey() Secret

GetPrivateKey returns the PrivateKey field value if set, zero value otherwise.

func (*SFTPFsConfig) GetPrivateKeyOk

func (o *SFTPFsConfig) GetPrivateKeyOk() (*Secret, bool)

GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) GetUsername

func (o *SFTPFsConfig) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*SFTPFsConfig) GetUsernameOk

func (o *SFTPFsConfig) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SFTPFsConfig) HasBufferSize

func (o *SFTPFsConfig) HasBufferSize() bool

HasBufferSize returns a boolean if a field has been set.

func (*SFTPFsConfig) HasDisableConcurrentReads

func (o *SFTPFsConfig) HasDisableConcurrentReads() bool

HasDisableConcurrentReads returns a boolean if a field has been set.

func (*SFTPFsConfig) HasEndpoint

func (o *SFTPFsConfig) HasEndpoint() bool

HasEndpoint returns a boolean if a field has been set.

func (*SFTPFsConfig) HasFingerprints

func (o *SFTPFsConfig) HasFingerprints() bool

HasFingerprints returns a boolean if a field has been set.

func (*SFTPFsConfig) HasPassword

func (o *SFTPFsConfig) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*SFTPFsConfig) HasPrefix

func (o *SFTPFsConfig) HasPrefix() bool

HasPrefix returns a boolean if a field has been set.

func (*SFTPFsConfig) HasPrivateKey

func (o *SFTPFsConfig) HasPrivateKey() bool

HasPrivateKey returns a boolean if a field has been set.

func (*SFTPFsConfig) HasUsername

func (o *SFTPFsConfig) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (SFTPFsConfig) MarshalJSON

func (o SFTPFsConfig) MarshalJSON() ([]byte, error)

func (*SFTPFsConfig) SetBufferSize

func (o *SFTPFsConfig) SetBufferSize(v int32)

SetBufferSize gets a reference to the given int32 and assigns it to the BufferSize field.

func (*SFTPFsConfig) SetDisableConcurrentReads

func (o *SFTPFsConfig) SetDisableConcurrentReads(v bool)

SetDisableConcurrentReads gets a reference to the given bool and assigns it to the DisableConcurrentReads field.

func (*SFTPFsConfig) SetEndpoint

func (o *SFTPFsConfig) SetEndpoint(v string)

SetEndpoint gets a reference to the given string and assigns it to the Endpoint field.

func (*SFTPFsConfig) SetFingerprints

func (o *SFTPFsConfig) SetFingerprints(v []string)

SetFingerprints gets a reference to the given []string and assigns it to the Fingerprints field.

func (*SFTPFsConfig) SetPassword

func (o *SFTPFsConfig) SetPassword(v Secret)

SetPassword gets a reference to the given Secret and assigns it to the Password field.

func (*SFTPFsConfig) SetPrefix

func (o *SFTPFsConfig) SetPrefix(v string)

SetPrefix gets a reference to the given string and assigns it to the Prefix field.

func (*SFTPFsConfig) SetPrivateKey

func (o *SFTPFsConfig) SetPrivateKey(v Secret)

SetPrivateKey gets a reference to the given Secret and assigns it to the PrivateKey field.

func (*SFTPFsConfig) SetUsername

func (o *SFTPFsConfig) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type SSHBinding

type SSHBinding struct {
	// TCP address the server listen on
	Address *string `json:"address,omitempty"`
	// the port used for serving requests
	Port *int32 `json:"port,omitempty"`
	// apply the proxy configuration, if any
	ApplyProxyConfig *bool `json:"apply_proxy_config,omitempty"`
}

SSHBinding struct for SSHBinding

func NewSSHBinding

func NewSSHBinding() *SSHBinding

NewSSHBinding instantiates a new SSHBinding object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSSHBindingWithDefaults

func NewSSHBindingWithDefaults() *SSHBinding

NewSSHBindingWithDefaults instantiates a new SSHBinding object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SSHBinding) GetAddress

func (o *SSHBinding) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*SSHBinding) GetAddressOk

func (o *SSHBinding) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHBinding) GetApplyProxyConfig

func (o *SSHBinding) GetApplyProxyConfig() bool

GetApplyProxyConfig returns the ApplyProxyConfig field value if set, zero value otherwise.

func (*SSHBinding) GetApplyProxyConfigOk

func (o *SSHBinding) GetApplyProxyConfigOk() (*bool, bool)

GetApplyProxyConfigOk returns a tuple with the ApplyProxyConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHBinding) GetPort

func (o *SSHBinding) GetPort() int32

GetPort returns the Port field value if set, zero value otherwise.

func (*SSHBinding) GetPortOk

func (o *SSHBinding) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHBinding) HasAddress

func (o *SSHBinding) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*SSHBinding) HasApplyProxyConfig

func (o *SSHBinding) HasApplyProxyConfig() bool

HasApplyProxyConfig returns a boolean if a field has been set.

func (*SSHBinding) HasPort

func (o *SSHBinding) HasPort() bool

HasPort returns a boolean if a field has been set.

func (SSHBinding) MarshalJSON

func (o SSHBinding) MarshalJSON() ([]byte, error)

func (*SSHBinding) SetAddress

func (o *SSHBinding) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*SSHBinding) SetApplyProxyConfig

func (o *SSHBinding) SetApplyProxyConfig(v bool)

SetApplyProxyConfig gets a reference to the given bool and assigns it to the ApplyProxyConfig field.

func (*SSHBinding) SetPort

func (o *SSHBinding) SetPort(v int32)

SetPort gets a reference to the given int32 and assigns it to the Port field.

type SSHHostKey

type SSHHostKey struct {
	Path        *string `json:"path,omitempty"`
	Fingerprint *string `json:"fingerprint,omitempty"`
}

SSHHostKey struct for SSHHostKey

func NewSSHHostKey

func NewSSHHostKey() *SSHHostKey

NewSSHHostKey instantiates a new SSHHostKey object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSSHHostKeyWithDefaults

func NewSSHHostKeyWithDefaults() *SSHHostKey

NewSSHHostKeyWithDefaults instantiates a new SSHHostKey object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SSHHostKey) GetFingerprint

func (o *SSHHostKey) GetFingerprint() string

GetFingerprint returns the Fingerprint field value if set, zero value otherwise.

func (*SSHHostKey) GetFingerprintOk

func (o *SSHHostKey) GetFingerprintOk() (*string, bool)

GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHHostKey) GetPath

func (o *SSHHostKey) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*SSHHostKey) GetPathOk

func (o *SSHHostKey) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHHostKey) HasFingerprint

func (o *SSHHostKey) HasFingerprint() bool

HasFingerprint returns a boolean if a field has been set.

func (*SSHHostKey) HasPath

func (o *SSHHostKey) HasPath() bool

HasPath returns a boolean if a field has been set.

func (SSHHostKey) MarshalJSON

func (o SSHHostKey) MarshalJSON() ([]byte, error)

func (*SSHHostKey) SetFingerprint

func (o *SSHHostKey) SetFingerprint(v string)

SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field.

func (*SSHHostKey) SetPath

func (o *SSHHostKey) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

type SSHServiceStatus

type SSHServiceStatus struct {
	IsActive    *bool        `json:"is_active,omitempty"`
	Bindings    []SSHBinding `json:"bindings,omitempty"`
	HostKeys    []SSHHostKey `json:"host_keys,omitempty"`
	SshCommands []string     `json:"ssh_commands,omitempty"`
}

SSHServiceStatus struct for SSHServiceStatus

func NewSSHServiceStatus

func NewSSHServiceStatus() *SSHServiceStatus

NewSSHServiceStatus instantiates a new SSHServiceStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSSHServiceStatusWithDefaults

func NewSSHServiceStatusWithDefaults() *SSHServiceStatus

NewSSHServiceStatusWithDefaults instantiates a new SSHServiceStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SSHServiceStatus) GetBindings

func (o *SSHServiceStatus) GetBindings() []SSHBinding

GetBindings returns the Bindings field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SSHServiceStatus) GetBindingsOk

func (o *SSHServiceStatus) GetBindingsOk() ([]SSHBinding, bool)

GetBindingsOk returns a tuple with the Bindings field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SSHServiceStatus) GetHostKeys

func (o *SSHServiceStatus) GetHostKeys() []SSHHostKey

GetHostKeys returns the HostKeys field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SSHServiceStatus) GetHostKeysOk

func (o *SSHServiceStatus) GetHostKeysOk() ([]SSHHostKey, bool)

GetHostKeysOk returns a tuple with the HostKeys field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SSHServiceStatus) GetIsActive

func (o *SSHServiceStatus) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*SSHServiceStatus) GetIsActiveOk

func (o *SSHServiceStatus) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHServiceStatus) GetSshCommands

func (o *SSHServiceStatus) GetSshCommands() []string

GetSshCommands returns the SshCommands field value if set, zero value otherwise.

func (*SSHServiceStatus) GetSshCommandsOk

func (o *SSHServiceStatus) GetSshCommandsOk() ([]string, bool)

GetSshCommandsOk returns a tuple with the SshCommands field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SSHServiceStatus) HasBindings

func (o *SSHServiceStatus) HasBindings() bool

HasBindings returns a boolean if a field has been set.

func (*SSHServiceStatus) HasHostKeys

func (o *SSHServiceStatus) HasHostKeys() bool

HasHostKeys returns a boolean if a field has been set.

func (*SSHServiceStatus) HasIsActive

func (o *SSHServiceStatus) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (*SSHServiceStatus) HasSshCommands

func (o *SSHServiceStatus) HasSshCommands() bool

HasSshCommands returns a boolean if a field has been set.

func (SSHServiceStatus) MarshalJSON

func (o SSHServiceStatus) MarshalJSON() ([]byte, error)

func (*SSHServiceStatus) SetBindings

func (o *SSHServiceStatus) SetBindings(v []SSHBinding)

SetBindings gets a reference to the given []SSHBinding and assigns it to the Bindings field.

func (*SSHServiceStatus) SetHostKeys

func (o *SSHServiceStatus) SetHostKeys(v []SSHHostKey)

SetHostKeys gets a reference to the given []SSHHostKey and assigns it to the HostKeys field.

func (*SSHServiceStatus) SetIsActive

func (o *SSHServiceStatus) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

func (*SSHServiceStatus) SetSshCommands

func (o *SSHServiceStatus) SetSshCommands(v []string)

SetSshCommands gets a reference to the given []string and assigns it to the SshCommands field.

type ScoreStatus

type ScoreStatus struct {
	// if 0 the host is not listed
	Score *int32 `json:"score,omitempty"`
}

ScoreStatus struct for ScoreStatus

func NewScoreStatus

func NewScoreStatus() *ScoreStatus

NewScoreStatus instantiates a new ScoreStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewScoreStatusWithDefaults

func NewScoreStatusWithDefaults() *ScoreStatus

NewScoreStatusWithDefaults instantiates a new ScoreStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ScoreStatus) GetScore

func (o *ScoreStatus) GetScore() int32

GetScore returns the Score field value if set, zero value otherwise.

func (*ScoreStatus) GetScoreOk

func (o *ScoreStatus) GetScoreOk() (*int32, bool)

GetScoreOk returns a tuple with the Score field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ScoreStatus) HasScore

func (o *ScoreStatus) HasScore() bool

HasScore returns a boolean if a field has been set.

func (ScoreStatus) MarshalJSON

func (o ScoreStatus) MarshalJSON() ([]byte, error)

func (*ScoreStatus) SetScore

func (o *ScoreStatus) SetScore(v int32)

SetScore gets a reference to the given int32 and assigns it to the Score field.

type Secret

type Secret struct {
	// Set to \"Plain\" to add or update an existing secret, set to \"Redacted\" to preserve the existing value
	Status         *string `json:"status,omitempty"`
	Payload        *string `json:"payload,omitempty"`
	Key            *string `json:"key,omitempty"`
	AdditionalData *string `json:"additional_data,omitempty"`
	// 1 means encrypted using a master key
	Mode *int32 `json:"mode,omitempty"`
}

Secret The secret is encrypted before saving, so to set a new secret you must provide a payload and set the status to \"Plain\". The encryption key and additional data will be generated automatically. If you set the status to \"Redacted\" the existig secret will be preserved

func NewSecret

func NewSecret() *Secret

NewSecret instantiates a new Secret object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSecretWithDefaults

func NewSecretWithDefaults() *Secret

NewSecretWithDefaults instantiates a new Secret object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Secret) GetAdditionalData

func (o *Secret) GetAdditionalData() string

GetAdditionalData returns the AdditionalData field value if set, zero value otherwise.

func (*Secret) GetAdditionalDataOk

func (o *Secret) GetAdditionalDataOk() (*string, bool)

GetAdditionalDataOk returns a tuple with the AdditionalData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Secret) GetKey

func (o *Secret) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*Secret) GetKeyOk

func (o *Secret) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Secret) GetMode

func (o *Secret) GetMode() int32

GetMode returns the Mode field value if set, zero value otherwise.

func (*Secret) GetModeOk

func (o *Secret) GetModeOk() (*int32, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Secret) GetPayload

func (o *Secret) GetPayload() string

GetPayload returns the Payload field value if set, zero value otherwise.

func (*Secret) GetPayloadOk

func (o *Secret) GetPayloadOk() (*string, bool)

GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Secret) GetStatus

func (o *Secret) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*Secret) GetStatusOk

func (o *Secret) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Secret) HasAdditionalData

func (o *Secret) HasAdditionalData() bool

HasAdditionalData returns a boolean if a field has been set.

func (*Secret) HasKey

func (o *Secret) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*Secret) HasMode

func (o *Secret) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*Secret) HasPayload

func (o *Secret) HasPayload() bool

HasPayload returns a boolean if a field has been set.

func (*Secret) HasStatus

func (o *Secret) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (Secret) MarshalJSON

func (o Secret) MarshalJSON() ([]byte, error)

func (*Secret) SetAdditionalData

func (o *Secret) SetAdditionalData(v string)

SetAdditionalData gets a reference to the given string and assigns it to the AdditionalData field.

func (*Secret) SetKey

func (o *Secret) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*Secret) SetMode

func (o *Secret) SetMode(v int32)

SetMode gets a reference to the given int32 and assigns it to the Mode field.

func (*Secret) SetPayload

func (o *Secret) SetPayload(v string)

SetPayload gets a reference to the given string and assigns it to the Payload field.

func (*Secret) SetStatus

func (o *Secret) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type ServicesStatus

type ServicesStatus struct {
	Ssh          *SSHServiceStatus       `json:"ssh,omitempty"`
	Ftp          *FTPServiceStatus       `json:"ftp,omitempty"`
	Webdav       *WebDAVServiceStatus    `json:"webdav,omitempty"`
	DataProvider *DataProviderStatus     `json:"data_provider,omitempty"`
	Defender     *ServicesStatusDefender `json:"defender,omitempty"`
	Mfa          *MFAStatus              `json:"mfa,omitempty"`
}

ServicesStatus struct for ServicesStatus

func NewServicesStatus

func NewServicesStatus() *ServicesStatus

NewServicesStatus instantiates a new ServicesStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServicesStatusWithDefaults

func NewServicesStatusWithDefaults() *ServicesStatus

NewServicesStatusWithDefaults instantiates a new ServicesStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServicesStatus) GetDataProvider

func (o *ServicesStatus) GetDataProvider() DataProviderStatus

GetDataProvider returns the DataProvider field value if set, zero value otherwise.

func (*ServicesStatus) GetDataProviderOk

func (o *ServicesStatus) GetDataProviderOk() (*DataProviderStatus, bool)

GetDataProviderOk returns a tuple with the DataProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatus) GetDefender

func (o *ServicesStatus) GetDefender() ServicesStatusDefender

GetDefender returns the Defender field value if set, zero value otherwise.

func (*ServicesStatus) GetDefenderOk

func (o *ServicesStatus) GetDefenderOk() (*ServicesStatusDefender, bool)

GetDefenderOk returns a tuple with the Defender field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatus) GetFtp

func (o *ServicesStatus) GetFtp() FTPServiceStatus

GetFtp returns the Ftp field value if set, zero value otherwise.

func (*ServicesStatus) GetFtpOk

func (o *ServicesStatus) GetFtpOk() (*FTPServiceStatus, bool)

GetFtpOk returns a tuple with the Ftp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatus) GetMfa

func (o *ServicesStatus) GetMfa() MFAStatus

GetMfa returns the Mfa field value if set, zero value otherwise.

func (*ServicesStatus) GetMfaOk

func (o *ServicesStatus) GetMfaOk() (*MFAStatus, bool)

GetMfaOk returns a tuple with the Mfa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatus) GetSsh

func (o *ServicesStatus) GetSsh() SSHServiceStatus

GetSsh returns the Ssh field value if set, zero value otherwise.

func (*ServicesStatus) GetSshOk

func (o *ServicesStatus) GetSshOk() (*SSHServiceStatus, bool)

GetSshOk returns a tuple with the Ssh field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatus) GetWebdav

func (o *ServicesStatus) GetWebdav() WebDAVServiceStatus

GetWebdav returns the Webdav field value if set, zero value otherwise.

func (*ServicesStatus) GetWebdavOk

func (o *ServicesStatus) GetWebdavOk() (*WebDAVServiceStatus, bool)

GetWebdavOk returns a tuple with the Webdav field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatus) HasDataProvider

func (o *ServicesStatus) HasDataProvider() bool

HasDataProvider returns a boolean if a field has been set.

func (*ServicesStatus) HasDefender

func (o *ServicesStatus) HasDefender() bool

HasDefender returns a boolean if a field has been set.

func (*ServicesStatus) HasFtp

func (o *ServicesStatus) HasFtp() bool

HasFtp returns a boolean if a field has been set.

func (*ServicesStatus) HasMfa

func (o *ServicesStatus) HasMfa() bool

HasMfa returns a boolean if a field has been set.

func (*ServicesStatus) HasSsh

func (o *ServicesStatus) HasSsh() bool

HasSsh returns a boolean if a field has been set.

func (*ServicesStatus) HasWebdav

func (o *ServicesStatus) HasWebdav() bool

HasWebdav returns a boolean if a field has been set.

func (ServicesStatus) MarshalJSON

func (o ServicesStatus) MarshalJSON() ([]byte, error)

func (*ServicesStatus) SetDataProvider

func (o *ServicesStatus) SetDataProvider(v DataProviderStatus)

SetDataProvider gets a reference to the given DataProviderStatus and assigns it to the DataProvider field.

func (*ServicesStatus) SetDefender

func (o *ServicesStatus) SetDefender(v ServicesStatusDefender)

SetDefender gets a reference to the given ServicesStatusDefender and assigns it to the Defender field.

func (*ServicesStatus) SetFtp

func (o *ServicesStatus) SetFtp(v FTPServiceStatus)

SetFtp gets a reference to the given FTPServiceStatus and assigns it to the Ftp field.

func (*ServicesStatus) SetMfa

func (o *ServicesStatus) SetMfa(v MFAStatus)

SetMfa gets a reference to the given MFAStatus and assigns it to the Mfa field.

func (*ServicesStatus) SetSsh

func (o *ServicesStatus) SetSsh(v SSHServiceStatus)

SetSsh gets a reference to the given SSHServiceStatus and assigns it to the Ssh field.

func (*ServicesStatus) SetWebdav

func (o *ServicesStatus) SetWebdav(v WebDAVServiceStatus)

SetWebdav gets a reference to the given WebDAVServiceStatus and assigns it to the Webdav field.

type ServicesStatusDefender

type ServicesStatusDefender struct {
	IsActive *bool `json:"is_active,omitempty"`
}

ServicesStatusDefender struct for ServicesStatusDefender

func NewServicesStatusDefender

func NewServicesStatusDefender() *ServicesStatusDefender

NewServicesStatusDefender instantiates a new ServicesStatusDefender object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServicesStatusDefenderWithDefaults

func NewServicesStatusDefenderWithDefaults() *ServicesStatusDefender

NewServicesStatusDefenderWithDefaults instantiates a new ServicesStatusDefender object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServicesStatusDefender) GetIsActive

func (o *ServicesStatusDefender) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*ServicesStatusDefender) GetIsActiveOk

func (o *ServicesStatusDefender) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServicesStatusDefender) HasIsActive

func (o *ServicesStatusDefender) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (ServicesStatusDefender) MarshalJSON

func (o ServicesStatusDefender) MarshalJSON() ([]byte, error)

func (*ServicesStatusDefender) SetIsActive

func (o *ServicesStatusDefender) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

type Share

type Share struct {
	// auto-generated unique share identifier
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	// optional description
	Description *string     `json:"description,omitempty"`
	Scope       *ShareScope `json:"scope,omitempty"`
	// paths to files or directories, for share scope write this array must contain exactly one directory. Paths will not be validated on save so you can also create them after creating the share
	Paths    []string `json:"paths,omitempty"`
	Username *string  `json:"username,omitempty"`
	// creation time as unix timestamp in milliseconds
	CreatedAt *int64 `json:"created_at,omitempty"`
	// last update time as unix timestamp in milliseconds
	UpdatedAt *int64 `json:"updated_at,omitempty"`
	// last use time as unix timestamp in milliseconds
	LastUseAt *int64 `json:"last_use_at,omitempty"`
	// optional share expiration, as unix timestamp in milliseconds. 0 means no expiration
	ExpiresAt *int64 `json:"expires_at,omitempty"`
	// optional password to protect the share. The special value \"[**redacted**]\" means that a password has been set, you can use this value if you want to preserve the current password when you update a share
	Password *string `json:"password,omitempty"`
	// maximum allowed access tokens. 0 means no limit
	MaxTokens  *int32 `json:"max_tokens,omitempty"`
	UsedTokens *int32 `json:"used_tokens,omitempty"`
	// Limit the share availability to these IP/Mask. IP/Mask must be in CIDR notation as defined in RFC 4632 and RFC 4291, for example \"192.0.2.0/24\" or \"2001:db8::/32\". An empty list means no restrictions
	AllowFrom []string `json:"allow_from,omitempty"`
}

Share struct for Share

func NewShare

func NewShare() *Share

NewShare instantiates a new Share object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewShareWithDefaults

func NewShareWithDefaults() *Share

NewShareWithDefaults instantiates a new Share object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Share) GetAllowFrom

func (o *Share) GetAllowFrom() []string

GetAllowFrom returns the AllowFrom field value if set, zero value otherwise.

func (*Share) GetAllowFromOk

func (o *Share) GetAllowFromOk() ([]string, bool)

GetAllowFromOk returns a tuple with the AllowFrom field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetCreatedAt

func (o *Share) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Share) GetCreatedAtOk

func (o *Share) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetDescription

func (o *Share) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Share) GetDescriptionOk

func (o *Share) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetExpiresAt

func (o *Share) GetExpiresAt() int64

GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.

func (*Share) GetExpiresAtOk

func (o *Share) GetExpiresAtOk() (*int64, bool)

GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetId

func (o *Share) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Share) GetIdOk

func (o *Share) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetLastUseAt

func (o *Share) GetLastUseAt() int64

GetLastUseAt returns the LastUseAt field value if set, zero value otherwise.

func (*Share) GetLastUseAtOk

func (o *Share) GetLastUseAtOk() (*int64, bool)

GetLastUseAtOk returns a tuple with the LastUseAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetMaxTokens

func (o *Share) GetMaxTokens() int32

GetMaxTokens returns the MaxTokens field value if set, zero value otherwise.

func (*Share) GetMaxTokensOk

func (o *Share) GetMaxTokensOk() (*int32, bool)

GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetName

func (o *Share) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Share) GetNameOk

func (o *Share) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetPassword

func (o *Share) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*Share) GetPasswordOk

func (o *Share) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetPaths

func (o *Share) GetPaths() []string

GetPaths returns the Paths field value if set, zero value otherwise.

func (*Share) GetPathsOk

func (o *Share) GetPathsOk() ([]string, bool)

GetPathsOk returns a tuple with the Paths field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetScope

func (o *Share) GetScope() ShareScope

GetScope returns the Scope field value if set, zero value otherwise.

func (*Share) GetScopeOk

func (o *Share) GetScopeOk() (*ShareScope, bool)

GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetUpdatedAt

func (o *Share) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Share) GetUpdatedAtOk

func (o *Share) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetUsedTokens

func (o *Share) GetUsedTokens() int32

GetUsedTokens returns the UsedTokens field value if set, zero value otherwise.

func (*Share) GetUsedTokensOk

func (o *Share) GetUsedTokensOk() (*int32, bool)

GetUsedTokensOk returns a tuple with the UsedTokens field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) GetUsername

func (o *Share) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*Share) GetUsernameOk

func (o *Share) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Share) HasAllowFrom

func (o *Share) HasAllowFrom() bool

HasAllowFrom returns a boolean if a field has been set.

func (*Share) HasCreatedAt

func (o *Share) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Share) HasDescription

func (o *Share) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Share) HasExpiresAt

func (o *Share) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (*Share) HasId

func (o *Share) HasId() bool

HasId returns a boolean if a field has been set.

func (*Share) HasLastUseAt

func (o *Share) HasLastUseAt() bool

HasLastUseAt returns a boolean if a field has been set.

func (*Share) HasMaxTokens

func (o *Share) HasMaxTokens() bool

HasMaxTokens returns a boolean if a field has been set.

func (*Share) HasName

func (o *Share) HasName() bool

HasName returns a boolean if a field has been set.

func (*Share) HasPassword

func (o *Share) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*Share) HasPaths

func (o *Share) HasPaths() bool

HasPaths returns a boolean if a field has been set.

func (*Share) HasScope

func (o *Share) HasScope() bool

HasScope returns a boolean if a field has been set.

func (*Share) HasUpdatedAt

func (o *Share) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*Share) HasUsedTokens

func (o *Share) HasUsedTokens() bool

HasUsedTokens returns a boolean if a field has been set.

func (*Share) HasUsername

func (o *Share) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (Share) MarshalJSON

func (o Share) MarshalJSON() ([]byte, error)

func (*Share) SetAllowFrom

func (o *Share) SetAllowFrom(v []string)

SetAllowFrom gets a reference to the given []string and assigns it to the AllowFrom field.

func (*Share) SetCreatedAt

func (o *Share) SetCreatedAt(v int64)

SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.

func (*Share) SetDescription

func (o *Share) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Share) SetExpiresAt

func (o *Share) SetExpiresAt(v int64)

SetExpiresAt gets a reference to the given int64 and assigns it to the ExpiresAt field.

func (*Share) SetId

func (o *Share) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Share) SetLastUseAt

func (o *Share) SetLastUseAt(v int64)

SetLastUseAt gets a reference to the given int64 and assigns it to the LastUseAt field.

func (*Share) SetMaxTokens

func (o *Share) SetMaxTokens(v int32)

SetMaxTokens gets a reference to the given int32 and assigns it to the MaxTokens field.

func (*Share) SetName

func (o *Share) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Share) SetPassword

func (o *Share) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*Share) SetPaths

func (o *Share) SetPaths(v []string)

SetPaths gets a reference to the given []string and assigns it to the Paths field.

func (*Share) SetScope

func (o *Share) SetScope(v ShareScope)

SetScope gets a reference to the given ShareScope and assigns it to the Scope field.

func (*Share) SetUpdatedAt

func (o *Share) SetUpdatedAt(v int64)

SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.

func (*Share) SetUsedTokens

func (o *Share) SetUsedTokens(v int32)

SetUsedTokens gets a reference to the given int32 and assigns it to the UsedTokens field.

func (*Share) SetUsername

func (o *Share) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

type ShareScope

type ShareScope int32

ShareScope Options: * `1` - read scope * `2` - write scope

const (
	SHARESCOPE__1 ShareScope = 1
	SHARESCOPE__2 ShareScope = 2
)

List of ShareScope

func NewShareScopeFromValue

func NewShareScopeFromValue(v int32) (*ShareScope, error)

NewShareScopeFromValue returns a pointer to a valid ShareScope for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ShareScope) IsValid

func (v ShareScope) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ShareScope) Ptr

func (v ShareScope) Ptr() *ShareScope

Ptr returns reference to ShareScope value

func (*ShareScope) UnmarshalJSON

func (v *ShareScope) UnmarshalJSON(src []byte) error

type SupportedProtocols

type SupportedProtocols string

SupportedProtocols Protocols: * `SSH` - includes both SFTP and SSH commands * `FTP` - plain FTP and FTPES/FTPS * `DAV` - WebDAV over HTTP/HTTPS * `HTTP` - WebClient/REST API

const (
	SUPPORTEDPROTOCOLS_SSH  SupportedProtocols = "SSH"
	SUPPORTEDPROTOCOLS_FTP  SupportedProtocols = "FTP"
	SUPPORTEDPROTOCOLS_DAV  SupportedProtocols = "DAV"
	SUPPORTEDPROTOCOLS_HTTP SupportedProtocols = "HTTP"
)

List of SupportedProtocols

func NewSupportedProtocolsFromValue

func NewSupportedProtocolsFromValue(v string) (*SupportedProtocols, error)

NewSupportedProtocolsFromValue returns a pointer to a valid SupportedProtocols for the value passed as argument, or an error if the value passed is not allowed by the enum

func (SupportedProtocols) IsValid

func (v SupportedProtocols) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (SupportedProtocols) Ptr

Ptr returns reference to SupportedProtocols value

func (*SupportedProtocols) UnmarshalJSON

func (v *SupportedProtocols) UnmarshalJSON(src []byte) error

type TOTPConfig

type TOTPConfig struct {
	Name   *string       `json:"name,omitempty"`
	Issuer *string       `json:"issuer,omitempty"`
	Algo   *TOTPHMacAlgo `json:"algo,omitempty"`
}

TOTPConfig struct for TOTPConfig

func NewTOTPConfig

func NewTOTPConfig() *TOTPConfig

NewTOTPConfig instantiates a new TOTPConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTOTPConfigWithDefaults

func NewTOTPConfigWithDefaults() *TOTPConfig

NewTOTPConfigWithDefaults instantiates a new TOTPConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TOTPConfig) GetAlgo

func (o *TOTPConfig) GetAlgo() TOTPHMacAlgo

GetAlgo returns the Algo field value if set, zero value otherwise.

func (*TOTPConfig) GetAlgoOk

func (o *TOTPConfig) GetAlgoOk() (*TOTPHMacAlgo, bool)

GetAlgoOk returns a tuple with the Algo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TOTPConfig) GetIssuer

func (o *TOTPConfig) GetIssuer() string

GetIssuer returns the Issuer field value if set, zero value otherwise.

func (*TOTPConfig) GetIssuerOk

func (o *TOTPConfig) GetIssuerOk() (*string, bool)

GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TOTPConfig) GetName

func (o *TOTPConfig) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*TOTPConfig) GetNameOk

func (o *TOTPConfig) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TOTPConfig) HasAlgo

func (o *TOTPConfig) HasAlgo() bool

HasAlgo returns a boolean if a field has been set.

func (*TOTPConfig) HasIssuer

func (o *TOTPConfig) HasIssuer() bool

HasIssuer returns a boolean if a field has been set.

func (*TOTPConfig) HasName

func (o *TOTPConfig) HasName() bool

HasName returns a boolean if a field has been set.

func (TOTPConfig) MarshalJSON

func (o TOTPConfig) MarshalJSON() ([]byte, error)

func (*TOTPConfig) SetAlgo

func (o *TOTPConfig) SetAlgo(v TOTPHMacAlgo)

SetAlgo gets a reference to the given TOTPHMacAlgo and assigns it to the Algo field.

func (*TOTPConfig) SetIssuer

func (o *TOTPConfig) SetIssuer(v string)

SetIssuer gets a reference to the given string and assigns it to the Issuer field.

func (*TOTPConfig) SetName

func (o *TOTPConfig) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type TOTPHMacAlgo

type TOTPHMacAlgo string

TOTPHMacAlgo Supported HMAC algorithms for Time-based one time passwords

const (
	TOTPHMACALGO_SHA1   TOTPHMacAlgo = "sha1"
	TOTPHMACALGO_SHA256 TOTPHMacAlgo = "sha256"
	TOTPHMACALGO_SHA512 TOTPHMacAlgo = "sha512"
)

List of TOTPHMacAlgo

func NewTOTPHMacAlgoFromValue

func NewTOTPHMacAlgoFromValue(v string) (*TOTPHMacAlgo, error)

NewTOTPHMacAlgoFromValue returns a pointer to a valid TOTPHMacAlgo for the value passed as argument, or an error if the value passed is not allowed by the enum

func (TOTPHMacAlgo) IsValid

func (v TOTPHMacAlgo) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (TOTPHMacAlgo) Ptr

func (v TOTPHMacAlgo) Ptr() *TOTPHMacAlgo

Ptr returns reference to TOTPHMacAlgo value

func (*TOTPHMacAlgo) UnmarshalJSON

func (v *TOTPHMacAlgo) UnmarshalJSON(src []byte) error

type Token

type Token struct {
	AccessToken *string    `json:"access_token,omitempty"`
	ExpiresAt   *time.Time `json:"expires_at,omitempty"`
}

Token struct for Token

func NewToken

func NewToken() *Token

NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokenWithDefaults

func NewTokenWithDefaults() *Token

NewTokenWithDefaults instantiates a new Token object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Token) GetAccessToken

func (o *Token) GetAccessToken() string

GetAccessToken returns the AccessToken field value if set, zero value otherwise.

func (*Token) GetAccessTokenOk

func (o *Token) GetAccessTokenOk() (*string, bool)

GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) GetExpiresAt

func (o *Token) GetExpiresAt() time.Time

GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.

func (*Token) GetExpiresAtOk

func (o *Token) GetExpiresAtOk() (*time.Time, bool)

GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) HasAccessToken

func (o *Token) HasAccessToken() bool

HasAccessToken returns a boolean if a field has been set.

func (*Token) HasExpiresAt

func (o *Token) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (Token) MarshalJSON

func (o Token) MarshalJSON() ([]byte, error)

func (*Token) SetAccessToken

func (o *Token) SetAccessToken(v string)

SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.

func (*Token) SetExpiresAt

func (o *Token) SetExpiresAt(v time.Time)

SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field.

type TokenApiApiClientLogoutRequest

type TokenApiApiClientLogoutRequest struct {
	ApiService *TokenApiService
	// contains filtered or unexported fields
}

func (TokenApiApiClientLogoutRequest) Execute

type TokenApiApiGetTokenRequest

type TokenApiApiGetTokenRequest struct {
	ApiService *TokenApiService
	// contains filtered or unexported fields
}

func (TokenApiApiGetTokenRequest) Execute

func (TokenApiApiGetTokenRequest) XSFTPGOOTP

If you have 2FA configured for the admin attempting to log in you need to set the authentication code using this header parameter

type TokenApiApiGetUserTokenRequest

type TokenApiApiGetUserTokenRequest struct {
	ApiService *TokenApiService
	// contains filtered or unexported fields
}

func (TokenApiApiGetUserTokenRequest) Execute

func (TokenApiApiGetUserTokenRequest) XSFTPGOOTP

If you have 2FA configured, for the HTTP protocol, for the user attempting to log in you need to set the authentication code using this header parameter

type TokenApiApiLogoutRequest

type TokenApiApiLogoutRequest struct {
	ApiService *TokenApiService
	// contains filtered or unexported fields
}

func (TokenApiApiLogoutRequest) Execute

type TokenApiService

type TokenApiService service

TokenApiService TokenApi service

func (*TokenApiService) ClientLogout

ClientLogout Invalidate a user access token

Allows to invalidate a client token before its expiration

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return TokenApiApiClientLogoutRequest

func (*TokenApiService) ClientLogoutExecute

Execute executes the request

@return ApiResponse

func (*TokenApiService) GetToken

GetToken Get a new admin access token

Returns an access token and its expiration

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return TokenApiApiGetTokenRequest

func (*TokenApiService) GetTokenExecute

func (a *TokenApiService) GetTokenExecute(r TokenApiApiGetTokenRequest) (*Token, *http.Response, error)

Execute executes the request

@return Token

func (*TokenApiService) GetUserToken

GetUserToken Get a new user access token

Returns an access token and its expiration

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return TokenApiApiGetUserTokenRequest

func (*TokenApiService) GetUserTokenExecute

func (a *TokenApiService) GetUserTokenExecute(r TokenApiApiGetUserTokenRequest) (*Token, *http.Response, error)

Execute executes the request

@return Token

func (*TokenApiService) Logout

Logout Invalidate an admin access token

Allows to invalidate an admin token before its expiration

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return TokenApiApiLogoutRequest

func (*TokenApiService) LogoutExecute

Execute executes the request

@return ApiResponse

type Transfer

type Transfer struct {
	// Operations:   * `upload`   * `download`
	OperationType *string `json:"operation_type,omitempty"`
	// file path for the upload/download
	Path *string `json:"path,omitempty"`
	// start time as unix timestamp in milliseconds
	StartTime *int64 `json:"start_time,omitempty"`
	// bytes transferred
	Size *int64 `json:"size,omitempty"`
}

Transfer struct for Transfer

func NewTransfer

func NewTransfer() *Transfer

NewTransfer instantiates a new Transfer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransferWithDefaults

func NewTransferWithDefaults() *Transfer

NewTransferWithDefaults instantiates a new Transfer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Transfer) GetOperationType

func (o *Transfer) GetOperationType() string

GetOperationType returns the OperationType field value if set, zero value otherwise.

func (*Transfer) GetOperationTypeOk

func (o *Transfer) GetOperationTypeOk() (*string, bool)

GetOperationTypeOk returns a tuple with the OperationType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transfer) GetPath

func (o *Transfer) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*Transfer) GetPathOk

func (o *Transfer) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transfer) GetSize

func (o *Transfer) GetSize() int64

GetSize returns the Size field value if set, zero value otherwise.

func (*Transfer) GetSizeOk

func (o *Transfer) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transfer) GetStartTime

func (o *Transfer) GetStartTime() int64

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*Transfer) GetStartTimeOk

func (o *Transfer) GetStartTimeOk() (*int64, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transfer) HasOperationType

func (o *Transfer) HasOperationType() bool

HasOperationType returns a boolean if a field has been set.

func (*Transfer) HasPath

func (o *Transfer) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*Transfer) HasSize

func (o *Transfer) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*Transfer) HasStartTime

func (o *Transfer) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (Transfer) MarshalJSON

func (o Transfer) MarshalJSON() ([]byte, error)

func (*Transfer) SetOperationType

func (o *Transfer) SetOperationType(v string)

SetOperationType gets a reference to the given string and assigns it to the OperationType field.

func (*Transfer) SetPath

func (o *Transfer) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*Transfer) SetSize

func (o *Transfer) SetSize(v int64)

SetSize gets a reference to the given int64 and assigns it to the Size field.

func (*Transfer) SetStartTime

func (o *Transfer) SetStartTime(v int64)

SetStartTime gets a reference to the given int64 and assigns it to the StartTime field.

type TransferQuotaUsage

type TransferQuotaUsage struct {
	// The value must be specified as bytes
	UsedUploadDataTransfer *int64 `json:"used_upload_data_transfer,omitempty"`
	// The value must be specified as bytes
	UsedDownloadDataTransfer *int64 `json:"used_download_data_transfer,omitempty"`
}

TransferQuotaUsage struct for TransferQuotaUsage

func NewTransferQuotaUsage

func NewTransferQuotaUsage() *TransferQuotaUsage

NewTransferQuotaUsage instantiates a new TransferQuotaUsage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransferQuotaUsageWithDefaults

func NewTransferQuotaUsageWithDefaults() *TransferQuotaUsage

NewTransferQuotaUsageWithDefaults instantiates a new TransferQuotaUsage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransferQuotaUsage) GetUsedDownloadDataTransfer

func (o *TransferQuotaUsage) GetUsedDownloadDataTransfer() int64

GetUsedDownloadDataTransfer returns the UsedDownloadDataTransfer field value if set, zero value otherwise.

func (*TransferQuotaUsage) GetUsedDownloadDataTransferOk

func (o *TransferQuotaUsage) GetUsedDownloadDataTransferOk() (*int64, bool)

GetUsedDownloadDataTransferOk returns a tuple with the UsedDownloadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransferQuotaUsage) GetUsedUploadDataTransfer

func (o *TransferQuotaUsage) GetUsedUploadDataTransfer() int64

GetUsedUploadDataTransfer returns the UsedUploadDataTransfer field value if set, zero value otherwise.

func (*TransferQuotaUsage) GetUsedUploadDataTransferOk

func (o *TransferQuotaUsage) GetUsedUploadDataTransferOk() (*int64, bool)

GetUsedUploadDataTransferOk returns a tuple with the UsedUploadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransferQuotaUsage) HasUsedDownloadDataTransfer

func (o *TransferQuotaUsage) HasUsedDownloadDataTransfer() bool

HasUsedDownloadDataTransfer returns a boolean if a field has been set.

func (*TransferQuotaUsage) HasUsedUploadDataTransfer

func (o *TransferQuotaUsage) HasUsedUploadDataTransfer() bool

HasUsedUploadDataTransfer returns a boolean if a field has been set.

func (TransferQuotaUsage) MarshalJSON

func (o TransferQuotaUsage) MarshalJSON() ([]byte, error)

func (*TransferQuotaUsage) SetUsedDownloadDataTransfer

func (o *TransferQuotaUsage) SetUsedDownloadDataTransfer(v int64)

SetUsedDownloadDataTransfer gets a reference to the given int64 and assigns it to the UsedDownloadDataTransfer field.

func (*TransferQuotaUsage) SetUsedUploadDataTransfer

func (o *TransferQuotaUsage) SetUsedUploadDataTransfer(v int64)

SetUsedUploadDataTransfer gets a reference to the given int64 and assigns it to the UsedUploadDataTransfer field.

type User

type User struct {
	Id *int32 `json:"id,omitempty"`
	// status:   * `0` user is disabled, login is not allowed   * `1` user is enabled
	Status *int32 `json:"status,omitempty"`
	// username is unique
	Username *string `json:"username,omitempty"`
	Email    *string `json:"email,omitempty"`
	// optional description, for example the user full name
	Description *string `json:"description,omitempty"`
	// expiration date as unix timestamp in milliseconds. An expired account cannot login. 0 means no expiration
	ExpirationDate *int64 `json:"expiration_date,omitempty"`
	// password or public key/SSH user certificate are mandatory. If the password has no known hashing algo prefix it will be stored, by default, using bcrypt, argon2id is supported too. You can send a password hashed as bcrypt ($2a$ prefix), argon2id, pbkdf2 or unix crypt and it will be stored as is. For security reasons this field is omitted when you search/get users
	Password *string `json:"password,omitempty"`
	// Public keys in OpenSSH format. A password or at least one public key/SSH user certificate are mandatory.
	PublicKeys []string `json:"public_keys,omitempty"`
	// path to the user home directory. The user cannot upload or download files outside this directory. SFTPGo tries to automatically create this folder if missing. Must be an absolute path
	HomeDir *string `json:"home_dir,omitempty"`
	// mapping between virtual SFTPGo paths and filesystem paths outside the user home directory. Supported for local filesystem only. If one or more of the specified folders are not inside the dataprovider they will be automatically created. You have to create the folder on the filesystem yourself
	VirtualFolders []VirtualFolder `json:"virtual_folders,omitempty"`
	// if you run SFTPGo as root user, the created files and directories will be assigned to this uid. 0 means no change, the owner will be the user that runs SFTPGo. Ignored on windows
	Uid *int32 `json:"uid,omitempty"`
	// if you run SFTPGo as root user, the created files and directories will be assigned to this gid. 0 means no change, the group will be the one of the user that runs SFTPGo. Ignored on windows
	Gid *int32 `json:"gid,omitempty"`
	// Limit the sessions that a user can open. 0 means unlimited
	MaxSessions *int32 `json:"max_sessions,omitempty"`
	// Quota as size in bytes. 0 menas unlimited. Please note that quota is updated if files are added/removed via SFTPGo otherwise a quota scan or a manual quota update is needed
	QuotaSize *int64 `json:"quota_size,omitempty"`
	// Quota as number of files. 0 menas unlimited. Please note that quota is updated if files are added/removed via SFTPGo otherwise a quota scan or a manual quota update is needed
	QuotaFiles     *int32                    `json:"quota_files,omitempty"`
	Permissions    []map[string][]Permission `json:"permissions,omitempty"`
	UsedQuotaSize  *int64                    `json:"used_quota_size,omitempty"`
	UsedQuotaFiles *int32                    `json:"used_quota_files,omitempty"`
	// Last quota update as unix timestamp in milliseconds
	LastQuotaUpdate *int64 `json:"last_quota_update,omitempty"`
	// Maximum upload bandwidth as KB/s, 0 means unlimited
	UploadBandwidth *int32 `json:"upload_bandwidth,omitempty"`
	// Maximum download bandwidth as KB/s, 0 means unlimited
	DownloadBandwidth *int32 `json:"download_bandwidth,omitempty"`
	// Maximum data transfer allowed for uploads as MB. 0 means no limit
	UploadDataTransfer *int32 `json:"upload_data_transfer,omitempty"`
	// Maximum data transfer allowed for downloads as MB. 0 means no limit
	DownloadDataTransfer *int32 `json:"download_data_transfer,omitempty"`
	// Maximum total data transfer as MB. 0 means unlimited. You can set a total data transfer instead of the individual values for uploads and downloads
	TotalDataTransfer *int32 `json:"total_data_transfer,omitempty"`
	// Uploaded size, as bytes, since the last reset
	UsedUploadDataTransfer *int32 `json:"used_upload_data_transfer,omitempty"`
	// Downloaded size, as bytes, since the last reset
	UsedDownloadDataTransfer *int32 `json:"used_download_data_transfer,omitempty"`
	// creation time as unix timestamp in milliseconds. It will be 0 for users created before v2.2.0
	CreatedAt *int64 `json:"created_at,omitempty"`
	// last update time as unix timestamp in milliseconds
	UpdatedAt *int64 `json:"updated_at,omitempty"`
	// Last user login as unix timestamp in milliseconds. It is saved at most once every 10 minutes
	LastLogin  *int64            `json:"last_login,omitempty"`
	Filters    *UserFilters      `json:"filters,omitempty"`
	Filesystem *FilesystemConfig `json:"filesystem,omitempty"`
	// Free form text field for external systems
	AdditionalInfo *string `json:"additional_info,omitempty"`
}

User struct for User

func NewUser

func NewUser() *User

NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*User) GetAdditionalInfo

func (o *User) GetAdditionalInfo() string

GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise.

func (*User) GetAdditionalInfoOk

func (o *User) GetAdditionalInfoOk() (*string, bool)

GetAdditionalInfoOk returns a tuple with the AdditionalInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetCreatedAt

func (o *User) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*User) GetCreatedAtOk

func (o *User) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetDescription

func (o *User) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*User) GetDescriptionOk

func (o *User) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetDownloadBandwidth

func (o *User) GetDownloadBandwidth() int32

GetDownloadBandwidth returns the DownloadBandwidth field value if set, zero value otherwise.

func (*User) GetDownloadBandwidthOk

func (o *User) GetDownloadBandwidthOk() (*int32, bool)

GetDownloadBandwidthOk returns a tuple with the DownloadBandwidth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetDownloadDataTransfer

func (o *User) GetDownloadDataTransfer() int32

GetDownloadDataTransfer returns the DownloadDataTransfer field value if set, zero value otherwise.

func (*User) GetDownloadDataTransferOk

func (o *User) GetDownloadDataTransferOk() (*int32, bool)

GetDownloadDataTransferOk returns a tuple with the DownloadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetEmail

func (o *User) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*User) GetEmailOk

func (o *User) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetExpirationDate

func (o *User) GetExpirationDate() int64

GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise.

func (*User) GetExpirationDateOk

func (o *User) GetExpirationDateOk() (*int64, bool)

GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetFilesystem

func (o *User) GetFilesystem() FilesystemConfig

GetFilesystem returns the Filesystem field value if set, zero value otherwise.

func (*User) GetFilesystemOk

func (o *User) GetFilesystemOk() (*FilesystemConfig, bool)

GetFilesystemOk returns a tuple with the Filesystem field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetFilters

func (o *User) GetFilters() UserFilters

GetFilters returns the Filters field value if set, zero value otherwise.

func (*User) GetFiltersOk

func (o *User) GetFiltersOk() (*UserFilters, bool)

GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetGid

func (o *User) GetGid() int32

GetGid returns the Gid field value if set, zero value otherwise.

func (*User) GetGidOk

func (o *User) GetGidOk() (*int32, bool)

GetGidOk returns a tuple with the Gid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetHomeDir

func (o *User) GetHomeDir() string

GetHomeDir returns the HomeDir field value if set, zero value otherwise.

func (*User) GetHomeDirOk

func (o *User) GetHomeDirOk() (*string, bool)

GetHomeDirOk returns a tuple with the HomeDir field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetId

func (o *User) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*User) GetIdOk

func (o *User) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetLastLogin

func (o *User) GetLastLogin() int64

GetLastLogin returns the LastLogin field value if set, zero value otherwise.

func (*User) GetLastLoginOk

func (o *User) GetLastLoginOk() (*int64, bool)

GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetLastQuotaUpdate

func (o *User) GetLastQuotaUpdate() int64

GetLastQuotaUpdate returns the LastQuotaUpdate field value if set, zero value otherwise.

func (*User) GetLastQuotaUpdateOk

func (o *User) GetLastQuotaUpdateOk() (*int64, bool)

GetLastQuotaUpdateOk returns a tuple with the LastQuotaUpdate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetMaxSessions

func (o *User) GetMaxSessions() int32

GetMaxSessions returns the MaxSessions field value if set, zero value otherwise.

func (*User) GetMaxSessionsOk

func (o *User) GetMaxSessionsOk() (*int32, bool)

GetMaxSessionsOk returns a tuple with the MaxSessions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetPassword

func (o *User) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*User) GetPasswordOk

func (o *User) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetPermissions

func (o *User) GetPermissions() []map[string][]Permission

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (*User) GetPermissionsOk

func (o *User) GetPermissionsOk() ([]map[string][]Permission, bool)

GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetPublicKeys

func (o *User) GetPublicKeys() []string

GetPublicKeys returns the PublicKeys field value if set, zero value otherwise.

func (*User) GetPublicKeysOk

func (o *User) GetPublicKeysOk() ([]string, bool)

GetPublicKeysOk returns a tuple with the PublicKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetQuotaFiles

func (o *User) GetQuotaFiles() int32

GetQuotaFiles returns the QuotaFiles field value if set, zero value otherwise.

func (*User) GetQuotaFilesOk

func (o *User) GetQuotaFilesOk() (*int32, bool)

GetQuotaFilesOk returns a tuple with the QuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetQuotaSize

func (o *User) GetQuotaSize() int64

GetQuotaSize returns the QuotaSize field value if set, zero value otherwise.

func (*User) GetQuotaSizeOk

func (o *User) GetQuotaSizeOk() (*int64, bool)

GetQuotaSizeOk returns a tuple with the QuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetStatus

func (o *User) GetStatus() int32

GetStatus returns the Status field value if set, zero value otherwise.

func (*User) GetStatusOk

func (o *User) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetTotalDataTransfer

func (o *User) GetTotalDataTransfer() int32

GetTotalDataTransfer returns the TotalDataTransfer field value if set, zero value otherwise.

func (*User) GetTotalDataTransferOk

func (o *User) GetTotalDataTransferOk() (*int32, bool)

GetTotalDataTransferOk returns a tuple with the TotalDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUid

func (o *User) GetUid() int32

GetUid returns the Uid field value if set, zero value otherwise.

func (*User) GetUidOk

func (o *User) GetUidOk() (*int32, bool)

GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUpdatedAt

func (o *User) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*User) GetUpdatedAtOk

func (o *User) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUploadBandwidth

func (o *User) GetUploadBandwidth() int32

GetUploadBandwidth returns the UploadBandwidth field value if set, zero value otherwise.

func (*User) GetUploadBandwidthOk

func (o *User) GetUploadBandwidthOk() (*int32, bool)

GetUploadBandwidthOk returns a tuple with the UploadBandwidth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUploadDataTransfer

func (o *User) GetUploadDataTransfer() int32

GetUploadDataTransfer returns the UploadDataTransfer field value if set, zero value otherwise.

func (*User) GetUploadDataTransferOk

func (o *User) GetUploadDataTransferOk() (*int32, bool)

GetUploadDataTransferOk returns a tuple with the UploadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUsedDownloadDataTransfer

func (o *User) GetUsedDownloadDataTransfer() int32

GetUsedDownloadDataTransfer returns the UsedDownloadDataTransfer field value if set, zero value otherwise.

func (*User) GetUsedDownloadDataTransferOk

func (o *User) GetUsedDownloadDataTransferOk() (*int32, bool)

GetUsedDownloadDataTransferOk returns a tuple with the UsedDownloadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUsedQuotaFiles

func (o *User) GetUsedQuotaFiles() int32

GetUsedQuotaFiles returns the UsedQuotaFiles field value if set, zero value otherwise.

func (*User) GetUsedQuotaFilesOk

func (o *User) GetUsedQuotaFilesOk() (*int32, bool)

GetUsedQuotaFilesOk returns a tuple with the UsedQuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUsedQuotaSize

func (o *User) GetUsedQuotaSize() int64

GetUsedQuotaSize returns the UsedQuotaSize field value if set, zero value otherwise.

func (*User) GetUsedQuotaSizeOk

func (o *User) GetUsedQuotaSizeOk() (*int64, bool)

GetUsedQuotaSizeOk returns a tuple with the UsedQuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUsedUploadDataTransfer

func (o *User) GetUsedUploadDataTransfer() int32

GetUsedUploadDataTransfer returns the UsedUploadDataTransfer field value if set, zero value otherwise.

func (*User) GetUsedUploadDataTransferOk

func (o *User) GetUsedUploadDataTransferOk() (*int32, bool)

GetUsedUploadDataTransferOk returns a tuple with the UsedUploadDataTransfer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUsername

func (o *User) GetUsername() string

GetUsername returns the Username field value if set, zero value otherwise.

func (*User) GetUsernameOk

func (o *User) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetVirtualFolders

func (o *User) GetVirtualFolders() []VirtualFolder

GetVirtualFolders returns the VirtualFolders field value if set, zero value otherwise.

func (*User) GetVirtualFoldersOk

func (o *User) GetVirtualFoldersOk() ([]VirtualFolder, bool)

GetVirtualFoldersOk returns a tuple with the VirtualFolders field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) HasAdditionalInfo

func (o *User) HasAdditionalInfo() bool

HasAdditionalInfo returns a boolean if a field has been set.

func (*User) HasCreatedAt

func (o *User) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*User) HasDescription

func (o *User) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*User) HasDownloadBandwidth

func (o *User) HasDownloadBandwidth() bool

HasDownloadBandwidth returns a boolean if a field has been set.

func (*User) HasDownloadDataTransfer

func (o *User) HasDownloadDataTransfer() bool

HasDownloadDataTransfer returns a boolean if a field has been set.

func (*User) HasEmail

func (o *User) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*User) HasExpirationDate

func (o *User) HasExpirationDate() bool

HasExpirationDate returns a boolean if a field has been set.

func (*User) HasFilesystem

func (o *User) HasFilesystem() bool

HasFilesystem returns a boolean if a field has been set.

func (*User) HasFilters

func (o *User) HasFilters() bool

HasFilters returns a boolean if a field has been set.

func (*User) HasGid

func (o *User) HasGid() bool

HasGid returns a boolean if a field has been set.

func (*User) HasHomeDir

func (o *User) HasHomeDir() bool

HasHomeDir returns a boolean if a field has been set.

func (*User) HasId

func (o *User) HasId() bool

HasId returns a boolean if a field has been set.

func (*User) HasLastLogin

func (o *User) HasLastLogin() bool

HasLastLogin returns a boolean if a field has been set.

func (*User) HasLastQuotaUpdate

func (o *User) HasLastQuotaUpdate() bool

HasLastQuotaUpdate returns a boolean if a field has been set.

func (*User) HasMaxSessions

func (o *User) HasMaxSessions() bool

HasMaxSessions returns a boolean if a field has been set.

func (*User) HasPassword

func (o *User) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*User) HasPermissions

func (o *User) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (*User) HasPublicKeys

func (o *User) HasPublicKeys() bool

HasPublicKeys returns a boolean if a field has been set.

func (*User) HasQuotaFiles

func (o *User) HasQuotaFiles() bool

HasQuotaFiles returns a boolean if a field has been set.

func (*User) HasQuotaSize

func (o *User) HasQuotaSize() bool

HasQuotaSize returns a boolean if a field has been set.

func (*User) HasStatus

func (o *User) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*User) HasTotalDataTransfer

func (o *User) HasTotalDataTransfer() bool

HasTotalDataTransfer returns a boolean if a field has been set.

func (*User) HasUid

func (o *User) HasUid() bool

HasUid returns a boolean if a field has been set.

func (*User) HasUpdatedAt

func (o *User) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*User) HasUploadBandwidth

func (o *User) HasUploadBandwidth() bool

HasUploadBandwidth returns a boolean if a field has been set.

func (*User) HasUploadDataTransfer

func (o *User) HasUploadDataTransfer() bool

HasUploadDataTransfer returns a boolean if a field has been set.

func (*User) HasUsedDownloadDataTransfer

func (o *User) HasUsedDownloadDataTransfer() bool

HasUsedDownloadDataTransfer returns a boolean if a field has been set.

func (*User) HasUsedQuotaFiles

func (o *User) HasUsedQuotaFiles() bool

HasUsedQuotaFiles returns a boolean if a field has been set.

func (*User) HasUsedQuotaSize

func (o *User) HasUsedQuotaSize() bool

HasUsedQuotaSize returns a boolean if a field has been set.

func (*User) HasUsedUploadDataTransfer

func (o *User) HasUsedUploadDataTransfer() bool

HasUsedUploadDataTransfer returns a boolean if a field has been set.

func (*User) HasUsername

func (o *User) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (*User) HasVirtualFolders

func (o *User) HasVirtualFolders() bool

HasVirtualFolders returns a boolean if a field has been set.

func (User) MarshalJSON

func (o User) MarshalJSON() ([]byte, error)

func (*User) SetAdditionalInfo

func (o *User) SetAdditionalInfo(v string)

SetAdditionalInfo gets a reference to the given string and assigns it to the AdditionalInfo field.

func (*User) SetCreatedAt

func (o *User) SetCreatedAt(v int64)

SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.

func (*User) SetDescription

func (o *User) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*User) SetDownloadBandwidth

func (o *User) SetDownloadBandwidth(v int32)

SetDownloadBandwidth gets a reference to the given int32 and assigns it to the DownloadBandwidth field.

func (*User) SetDownloadDataTransfer

func (o *User) SetDownloadDataTransfer(v int32)

SetDownloadDataTransfer gets a reference to the given int32 and assigns it to the DownloadDataTransfer field.

func (*User) SetEmail

func (o *User) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*User) SetExpirationDate

func (o *User) SetExpirationDate(v int64)

SetExpirationDate gets a reference to the given int64 and assigns it to the ExpirationDate field.

func (*User) SetFilesystem

func (o *User) SetFilesystem(v FilesystemConfig)

SetFilesystem gets a reference to the given FilesystemConfig and assigns it to the Filesystem field.

func (*User) SetFilters

func (o *User) SetFilters(v UserFilters)

SetFilters gets a reference to the given UserFilters and assigns it to the Filters field.

func (*User) SetGid

func (o *User) SetGid(v int32)

SetGid gets a reference to the given int32 and assigns it to the Gid field.

func (*User) SetHomeDir

func (o *User) SetHomeDir(v string)

SetHomeDir gets a reference to the given string and assigns it to the HomeDir field.

func (*User) SetId

func (o *User) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*User) SetLastLogin

func (o *User) SetLastLogin(v int64)

SetLastLogin gets a reference to the given int64 and assigns it to the LastLogin field.

func (*User) SetLastQuotaUpdate

func (o *User) SetLastQuotaUpdate(v int64)

SetLastQuotaUpdate gets a reference to the given int64 and assigns it to the LastQuotaUpdate field.

func (*User) SetMaxSessions

func (o *User) SetMaxSessions(v int32)

SetMaxSessions gets a reference to the given int32 and assigns it to the MaxSessions field.

func (*User) SetPassword

func (o *User) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*User) SetPermissions

func (o *User) SetPermissions(v []map[string][]Permission)

SetPermissions gets a reference to the given []map[string][]Permission and assigns it to the Permissions field.

func (*User) SetPublicKeys

func (o *User) SetPublicKeys(v []string)

SetPublicKeys gets a reference to the given []string and assigns it to the PublicKeys field.

func (*User) SetQuotaFiles

func (o *User) SetQuotaFiles(v int32)

SetQuotaFiles gets a reference to the given int32 and assigns it to the QuotaFiles field.

func (*User) SetQuotaSize

func (o *User) SetQuotaSize(v int64)

SetQuotaSize gets a reference to the given int64 and assigns it to the QuotaSize field.

func (*User) SetStatus

func (o *User) SetStatus(v int32)

SetStatus gets a reference to the given int32 and assigns it to the Status field.

func (*User) SetTotalDataTransfer

func (o *User) SetTotalDataTransfer(v int32)

SetTotalDataTransfer gets a reference to the given int32 and assigns it to the TotalDataTransfer field.

func (*User) SetUid

func (o *User) SetUid(v int32)

SetUid gets a reference to the given int32 and assigns it to the Uid field.

func (*User) SetUpdatedAt

func (o *User) SetUpdatedAt(v int64)

SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.

func (*User) SetUploadBandwidth

func (o *User) SetUploadBandwidth(v int32)

SetUploadBandwidth gets a reference to the given int32 and assigns it to the UploadBandwidth field.

func (*User) SetUploadDataTransfer

func (o *User) SetUploadDataTransfer(v int32)

SetUploadDataTransfer gets a reference to the given int32 and assigns it to the UploadDataTransfer field.

func (*User) SetUsedDownloadDataTransfer

func (o *User) SetUsedDownloadDataTransfer(v int32)

SetUsedDownloadDataTransfer gets a reference to the given int32 and assigns it to the UsedDownloadDataTransfer field.

func (*User) SetUsedQuotaFiles

func (o *User) SetUsedQuotaFiles(v int32)

SetUsedQuotaFiles gets a reference to the given int32 and assigns it to the UsedQuotaFiles field.

func (*User) SetUsedQuotaSize

func (o *User) SetUsedQuotaSize(v int64)

SetUsedQuotaSize gets a reference to the given int64 and assigns it to the UsedQuotaSize field.

func (*User) SetUsedUploadDataTransfer

func (o *User) SetUsedUploadDataTransfer(v int32)

SetUsedUploadDataTransfer gets a reference to the given int32 and assigns it to the UsedUploadDataTransfer field.

func (*User) SetUsername

func (o *User) SetUsername(v string)

SetUsername gets a reference to the given string and assigns it to the Username field.

func (*User) SetVirtualFolders

func (o *User) SetVirtualFolders(v []VirtualFolder)

SetVirtualFolders gets a reference to the given []VirtualFolder and assigns it to the VirtualFolders field.

type UserAPIsApiApiAddShareRequest

type UserAPIsApiApiAddShareRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiAddShareRequest) Execute

func (UserAPIsApiApiAddShareRequest) Share

type UserAPIsApiApiChangeUserPasswordRequest

type UserAPIsApiApiChangeUserPasswordRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiChangeUserPasswordRequest) Execute

func (UserAPIsApiApiChangeUserPasswordRequest) PwdChange

type UserAPIsApiApiCreateUserDirRequest

type UserAPIsApiApiCreateUserDirRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiCreateUserDirRequest) Execute

func (UserAPIsApiApiCreateUserDirRequest) MkdirParents

Create parent directories if they do not exist?

func (UserAPIsApiApiCreateUserDirRequest) Path

Path to the folder to create. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\"

type UserAPIsApiApiCreateUserFileRequest

type UserAPIsApiApiCreateUserFileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiCreateUserFileRequest) Body

func (UserAPIsApiApiCreateUserFileRequest) Execute

func (UserAPIsApiApiCreateUserFileRequest) MkdirParents

Create parent directories if they do not exist?

func (UserAPIsApiApiCreateUserFileRequest) Path

Full file path. It must be path encoded, for example the path \"my dir/àdir/file.txt\" must be sent as \"my%20dir%2F%C3%A0dir%2Ffile.txt\". The parent directory must exist. If a file with the same name already exists, it will be overwritten

func (UserAPIsApiApiCreateUserFileRequest) XSFTPGOMTIME

File modification time as unix timestamp in milliseconds

type UserAPIsApiApiCreateUserFilesRequest

type UserAPIsApiApiCreateUserFilesRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiCreateUserFilesRequest) Execute

func (UserAPIsApiApiCreateUserFilesRequest) Filenames

func (UserAPIsApiApiCreateUserFilesRequest) MkdirParents

Create parent directories if they do not exist?

func (UserAPIsApiApiCreateUserFilesRequest) Path

Parent directory for the uploaded files. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\". If empty or missing the root path is assumed. If a file with the same name already exists, it will be overwritten

type UserAPIsApiApiDeleteUserDirRequest

type UserAPIsApiApiDeleteUserDirRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiDeleteUserDirRequest) Execute

func (UserAPIsApiApiDeleteUserDirRequest) Path

Path to the folder to delete. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\"

type UserAPIsApiApiDeleteUserFileRequest

type UserAPIsApiApiDeleteUserFileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiDeleteUserFileRequest) Execute

func (UserAPIsApiApiDeleteUserFileRequest) Path

Path to the file to delete. It must be URL encoded

type UserAPIsApiApiDeleteUserShareRequest

type UserAPIsApiApiDeleteUserShareRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiDeleteUserShareRequest) Execute

type UserAPIsApiApiDownloadUserFileRequest

type UserAPIsApiApiDownloadUserFileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiDownloadUserFileRequest) Execute

func (UserAPIsApiApiDownloadUserFileRequest) Inline

If set, the response will not have the Content-Disposition header set to `attachment`

func (UserAPIsApiApiDownloadUserFileRequest) Path

Path to the file to download. It must be URL encoded, for example the path \"my dir/àdir/file.txt\" must be sent as \"my%20dir%2F%C3%A0dir%2Ffile.txt\"

type UserAPIsApiApiGenerateUserRecoveryCodesRequest

type UserAPIsApiApiGenerateUserRecoveryCodesRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGenerateUserRecoveryCodesRequest) Execute

type UserAPIsApiApiGenerateUserTotpSecretRequest

type UserAPIsApiApiGenerateUserTotpSecretRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGenerateUserTotpSecretRequest) Execute

func (UserAPIsApiApiGenerateUserTotpSecretRequest) InlineObject6

type UserAPIsApiApiGetUserDirContentsRequest

type UserAPIsApiApiGetUserDirContentsRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserDirContentsRequest) Execute

func (UserAPIsApiApiGetUserDirContentsRequest) Path

Path to the folder to read. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\". If empty or missing the root folder is assumed

type UserAPIsApiApiGetUserFileRequest

type UserAPIsApiApiGetUserFileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserFileRequest) Execute

func (UserAPIsApiApiGetUserFileRequest) Path

Path to the file to download. It must be URL encoded, for example the path \"my dir/àdir/file.txt\" must be sent as \"my%20dir%2F%C3%A0dir%2Ffile.txt\"

type UserAPIsApiApiGetUserFolderContentsRequest

type UserAPIsApiApiGetUserFolderContentsRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserFolderContentsRequest) Execute

func (UserAPIsApiApiGetUserFolderContentsRequest) Path

Path to the folder to read. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\". If empty or missing the root folder is assumed

type UserAPIsApiApiGetUserProfileRequest

type UserAPIsApiApiGetUserProfileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserProfileRequest) Execute

type UserAPIsApiApiGetUserPublicKeysRequest

type UserAPIsApiApiGetUserPublicKeysRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserPublicKeysRequest) Execute

type UserAPIsApiApiGetUserRecoveryCodesRequest

type UserAPIsApiApiGetUserRecoveryCodesRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserRecoveryCodesRequest) Execute

type UserAPIsApiApiGetUserShareByIdRequest

type UserAPIsApiApiGetUserShareByIdRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserShareByIdRequest) Execute

type UserAPIsApiApiGetUserSharesRequest

type UserAPIsApiApiGetUserSharesRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserSharesRequest) Execute

func (UserAPIsApiApiGetUserSharesRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (UserAPIsApiApiGetUserSharesRequest) Offset

func (UserAPIsApiApiGetUserSharesRequest) Order

Ordering shares by ID. Default ASC

type UserAPIsApiApiGetUserTotpConfigsRequest

type UserAPIsApiApiGetUserTotpConfigsRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiGetUserTotpConfigsRequest) Execute

type UserAPIsApiApiRenameUserDirRequest

type UserAPIsApiApiRenameUserDirRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiRenameUserDirRequest) Execute

func (UserAPIsApiApiRenameUserDirRequest) Path

Path to the folder to rename. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\"

func (UserAPIsApiApiRenameUserDirRequest) Target

New name. It must be URL encoded, for example the path \"my dir/àdir\" must be sent as \"my%20dir%2F%C3%A0dir\"

type UserAPIsApiApiRenameUserFileRequest

type UserAPIsApiApiRenameUserFileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiRenameUserFileRequest) Execute

func (UserAPIsApiApiRenameUserFileRequest) Path

Path to the file to rename. It must be URL encoded

func (UserAPIsApiApiRenameUserFileRequest) Target

New name. It must be URL encoded

type UserAPIsApiApiSaveUserTotpConfigRequest

type UserAPIsApiApiSaveUserTotpConfigRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiSaveUserTotpConfigRequest) Execute

func (UserAPIsApiApiSaveUserTotpConfigRequest) UserTOTPConfig

type UserAPIsApiApiSetUserPublicKeysRequest

type UserAPIsApiApiSetUserPublicKeysRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiSetUserPublicKeysRequest) Execute

func (UserAPIsApiApiSetUserPublicKeysRequest) RequestBody

type UserAPIsApiApiSetpropsUserFileRequest

type UserAPIsApiApiSetpropsUserFileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiSetpropsUserFileRequest) Execute

func (UserAPIsApiApiSetpropsUserFileRequest) InlineObject9

func (UserAPIsApiApiSetpropsUserFileRequest) Path

Full file/directory path. It must be URL encoded, for example the path \"my dir/àdir/file.txt\" must be sent as \"my%20dir%2F%C3%A0dir%2Ffile.txt\"

type UserAPIsApiApiStreamzipRequest

type UserAPIsApiApiStreamzipRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiStreamzipRequest) Execute

func (UserAPIsApiApiStreamzipRequest) RequestBody

type UserAPIsApiApiUpdateUserProfileRequest

type UserAPIsApiApiUpdateUserProfileRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiUpdateUserProfileRequest) Execute

func (UserAPIsApiApiUpdateUserProfileRequest) UserProfile

type UserAPIsApiApiUpdateUserShareRequest

type UserAPIsApiApiUpdateUserShareRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiUpdateUserShareRequest) Execute

func (UserAPIsApiApiUpdateUserShareRequest) Share

type UserAPIsApiApiValidateUserTotpSecretRequest

type UserAPIsApiApiValidateUserTotpSecretRequest struct {
	ApiService *UserAPIsApiService
	// contains filtered or unexported fields
}

func (UserAPIsApiApiValidateUserTotpSecretRequest) Execute

func (UserAPIsApiApiValidateUserTotpSecretRequest) InlineObject7

type UserAPIsApiService

type UserAPIsApiService service

UserAPIsApiService UserAPIsApi service

func (*UserAPIsApiService) AddShare

AddShare Add a share

Adds a new share. The share id will be auto-generated

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiAddShareRequest

func (*UserAPIsApiService) AddShareExecute

Execute executes the request

@return ApiResponse

func (*UserAPIsApiService) ChangeUserPassword

ChangeUserPassword Change user password

Changes the password for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiChangeUserPasswordRequest

func (*UserAPIsApiService) ChangeUserPasswordExecute

Execute executes the request

@return ApiResponse

func (*UserAPIsApiService) CreateUserDir

CreateUserDir Create a directory

Create a directory for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiCreateUserDirRequest

func (*UserAPIsApiService) CreateUserDirExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) CreateUserFile

CreateUserFile Upload a single file

Upload a single file for the logged in user to an existing directory. This API does not use multipart/form-data and so no temporary files are created server side but only a single file can be uploaded as POST body

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiCreateUserFileRequest

func (*UserAPIsApiService) CreateUserFileExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) CreateUserFiles

CreateUserFiles Upload files

Upload one or more files for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiCreateUserFilesRequest

func (*UserAPIsApiService) CreateUserFilesExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) DeleteUserDir

DeleteUserDir Delete a directory

Delete a directory for the logged in user. Only empty directories can be deleted

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiDeleteUserDirRequest

func (*UserAPIsApiService) DeleteUserDirExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) DeleteUserFile

DeleteUserFile Delete a file

Delete a file for the logged in user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiDeleteUserFileRequest

func (*UserAPIsApiService) DeleteUserFileExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) DeleteUserShare

DeleteUserShare Delete share

Deletes an existing share belonging to the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return UserAPIsApiApiDeleteUserShareRequest

func (*UserAPIsApiService) DeleteUserShareExecute

Execute executes the request

@return ApiResponse

func (*UserAPIsApiService) DownloadUserFile

DownloadUserFile Download a single file

Returns the file contents as response body

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiDownloadUserFileRequest

func (*UserAPIsApiService) DownloadUserFileExecute

func (a *UserAPIsApiService) DownloadUserFileExecute(r UserAPIsApiApiDownloadUserFileRequest) (**os.File, *http.Response, error)

Execute executes the request

@return *os.File

func (*UserAPIsApiService) GenerateUserRecoveryCodes

GenerateUserRecoveryCodes Generate recovery codes

Generates new recovery codes for the logged in user. Generating new recovery codes you automatically invalidate old ones

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGenerateUserRecoveryCodesRequest

func (*UserAPIsApiService) GenerateUserRecoveryCodesExecute

func (a *UserAPIsApiService) GenerateUserRecoveryCodesExecute(r UserAPIsApiApiGenerateUserRecoveryCodesRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*UserAPIsApiService) GenerateUserTotpSecret

GenerateUserTotpSecret Generate a new TOTP secret

Generates a new TOTP secret, including the QR code as png, using the specified configuration for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGenerateUserTotpSecretRequest

func (*UserAPIsApiService) GenerateUserTotpSecretExecute

Execute executes the request

@return InlineResponse200

func (*UserAPIsApiService) GetUserDirContents

GetUserDirContents Read directory contents

Returns the contents of the specified directory for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserDirContentsRequest

func (*UserAPIsApiService) GetUserDirContentsExecute

Execute executes the request

@return []DirEntry

func (*UserAPIsApiService) GetUserFile

GetUserFile Download a single file

Returns the file contents as response body. Please use '/user/files' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserFileRequest

Deprecated

func (*UserAPIsApiService) GetUserFileExecute

Execute executes the request

@return *os.File

Deprecated

func (*UserAPIsApiService) GetUserFolderContents

GetUserFolderContents Read folders contents

Returns the contents of the specified folder for the logged in user. Please use '/user/dirs' instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserFolderContentsRequest

Deprecated

func (*UserAPIsApiService) GetUserFolderContentsExecute

Execute executes the request

@return []DirEntry

Deprecated

func (*UserAPIsApiService) GetUserProfile

GetUserProfile Get user profile

Returns the profile for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserProfileRequest

func (*UserAPIsApiService) GetUserProfileExecute

Execute executes the request

@return UserProfile

func (*UserAPIsApiService) GetUserPublicKeys

GetUserPublicKeys Get the user's public keys

Returns the public keys for the logged in user. Deprecated please use "/user/profile" instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserPublicKeysRequest

Deprecated

func (*UserAPIsApiService) GetUserPublicKeysExecute

Execute executes the request

@return []string

Deprecated

func (*UserAPIsApiService) GetUserRecoveryCodes

GetUserRecoveryCodes Get recovery codes

Returns the recovery codes for the logged in user. Recovery codes can be used if the user loses access to their second factor auth device. Recovery codes are returned unencrypted

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserRecoveryCodesRequest

func (*UserAPIsApiService) GetUserRecoveryCodesExecute

Execute executes the request

@return []RecoveryCode

func (*UserAPIsApiService) GetUserShareById

GetUserShareById Get share by id

Returns a share by id for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return UserAPIsApiApiGetUserShareByIdRequest

func (*UserAPIsApiService) GetUserShareByIdExecute

Execute executes the request

@return Share

func (*UserAPIsApiService) GetUserShares

GetUserShares List user shares

Returns the share for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserSharesRequest

func (*UserAPIsApiService) GetUserSharesExecute

Execute executes the request

@return []Share

func (*UserAPIsApiService) GetUserTotpConfigs

GetUserTotpConfigs Get available TOTP configuration

Returns the available TOTP configurations for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiGetUserTotpConfigsRequest

func (*UserAPIsApiService) GetUserTotpConfigsExecute

Execute executes the request

@return []TOTPConfig

func (*UserAPIsApiService) RenameUserDir

RenameUserDir Rename a directory

Rename a directory for the logged in user. The rename is allowed for empty directory or for non empty local directories, with no virtual folders inside

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiRenameUserDirRequest

func (*UserAPIsApiService) RenameUserDirExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) RenameUserFile

RenameUserFile Rename a file

Rename a file for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiRenameUserFileRequest

func (*UserAPIsApiService) RenameUserFileExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) SaveUserTotpConfig

SaveUserTotpConfig Save a TOTP config

Saves the specified TOTP config for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiSaveUserTotpConfigRequest

func (*UserAPIsApiService) SaveUserTotpConfigExecute

Execute executes the request

@return ApiResponse

func (*UserAPIsApiService) SetUserPublicKeys

SetUserPublicKeys Set the user's public keys

Sets the public keys for the logged in user. Public keys must be in OpenSSH format. Deprecated please use "/user/profile" instead

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiSetUserPublicKeysRequest

Deprecated

func (*UserAPIsApiService) SetUserPublicKeysExecute

Execute executes the request

@return ApiResponse

Deprecated

func (*UserAPIsApiService) SetpropsUserFile

SetpropsUserFile Set metadata for a file/directory

Set supported metadata attributes for the specified file or directory

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiSetpropsUserFileRequest

func (*UserAPIsApiService) SetpropsUserFileExecute

Execute executes the request

@return []ApiResponse

func (*UserAPIsApiService) Streamzip

Streamzip Download multiple files and folders as a single zip file

A zip file, containing the specified files and folders, will be generated on the fly and returned as response body. Only folders and regular files will be included in the zip

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiStreamzipRequest

func (*UserAPIsApiService) StreamzipExecute

Execute executes the request

@return *os.File

func (*UserAPIsApiService) UpdateUserProfile

UpdateUserProfile Update user profile

Allows to update the profile for the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiUpdateUserProfileRequest

func (*UserAPIsApiService) UpdateUserProfileExecute

Execute executes the request

@return ApiResponse

func (*UserAPIsApiService) UpdateUserShare

UpdateUserShare Update share

Updates an existing share belonging to the logged in user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id the share id
@return UserAPIsApiApiUpdateUserShareRequest

func (*UserAPIsApiService) UpdateUserShareExecute

Execute executes the request

@return ApiResponse

func (*UserAPIsApiService) ValidateUserTotpSecret

ValidateUserTotpSecret Validate a one time authentication code

Checks if the given authentication code can be validated using the specified secret and config name

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UserAPIsApiApiValidateUserTotpSecretRequest

func (*UserAPIsApiService) ValidateUserTotpSecretExecute

Execute executes the request

@return ApiResponse

type UserFilters

type UserFilters struct {
	// only clients connecting from these IP/Mask are allowed. IP/Mask must be in CIDR notation as defined in RFC 4632 and RFC 4291, for example \"192.0.2.0/24\" or \"2001:db8::/32\"
	AllowedIp []string `json:"allowed_ip,omitempty"`
	// clients connecting from these IP/Mask are not allowed. Denied rules are evaluated before allowed ones
	DeniedIp []string `json:"denied_ip,omitempty"`
	// if null or empty any available login method is allowed
	DeniedLoginMethods []LoginMethods `json:"denied_login_methods,omitempty"`
	// if null or empty any available protocol is allowed
	DeniedProtocols []SupportedProtocols `json:"denied_protocols,omitempty"`
	// filters based on shell like file patterns. These restrictions do not apply to files listing for performance reasons, so a denied file cannot be downloaded/overwritten/renamed but it will still be in the list of files. Please note that these restrictions can be easily bypassed
	FilePatterns []PatternsFilter `json:"file_patterns,omitempty"`
	// maximum allowed size, as bytes, for a single file upload. The upload will be aborted if/when the size of the file being sent exceeds this limit. 0 means unlimited. This restriction does not apply for SSH system commands such as `git` and `rsync`
	MaxUploadFileSize *int64 `json:"max_upload_file_size,omitempty"`
	// defines the TLS certificate field to use as username. For FTP clients it must match the name provided using the \"USER\" command. For WebDAV, if no username is provided, the CN will be used as username. For WebDAV clients it must match the implicit or provided username. Ignored if mutual TLS is disabled
	TlsUsername *string      `json:"tls_username,omitempty"`
	Hooks       *HooksFilter `json:"hooks,omitempty"`
	// Disable checks for existence and automatic creation of home directory and virtual folders. SFTPGo requires that the user's home directory, virtual folder root, and intermediate paths to virtual folders exist to work properly. If you already know that the required directories exist, disabling these checks will speed up login. You could, for example, disable these checks after the first login
	DisableFsChecks *bool `json:"disable_fs_checks,omitempty"`
	// WebClient/user REST API related configuration options
	WebClient []WebClientOptions `json:"web_client,omitempty"`
	// API key authentication allows to impersonate this user with an API key
	AllowApiKeyAuth    *bool               `json:"allow_api_key_auth,omitempty"`
	UserType           *UserType           `json:"user_type,omitempty"`
	TotpConfig         *UserTOTPConfig     `json:"totp_config,omitempty"`
	RecoveryCodes      []RecoveryCode      `json:"recovery_codes,omitempty"`
	BandwidthLimits    []BandwidthLimit    `json:"bandwidth_limits,omitempty"`
	DataTransferLimits []DataTransferLimit `json:"data_transfer_limits,omitempty"`
}

UserFilters Additional user options

func NewUserFilters

func NewUserFilters() *UserFilters

NewUserFilters instantiates a new UserFilters object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserFiltersWithDefaults

func NewUserFiltersWithDefaults() *UserFilters

NewUserFiltersWithDefaults instantiates a new UserFilters object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserFilters) GetAllowApiKeyAuth

func (o *UserFilters) GetAllowApiKeyAuth() bool

GetAllowApiKeyAuth returns the AllowApiKeyAuth field value if set, zero value otherwise.

func (*UserFilters) GetAllowApiKeyAuthOk

func (o *UserFilters) GetAllowApiKeyAuthOk() (*bool, bool)

GetAllowApiKeyAuthOk returns a tuple with the AllowApiKeyAuth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetAllowedIp

func (o *UserFilters) GetAllowedIp() []string

GetAllowedIp returns the AllowedIp field value if set, zero value otherwise.

func (*UserFilters) GetAllowedIpOk

func (o *UserFilters) GetAllowedIpOk() ([]string, bool)

GetAllowedIpOk returns a tuple with the AllowedIp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetBandwidthLimits

func (o *UserFilters) GetBandwidthLimits() []BandwidthLimit

GetBandwidthLimits returns the BandwidthLimits field value if set, zero value otherwise.

func (*UserFilters) GetBandwidthLimitsOk

func (o *UserFilters) GetBandwidthLimitsOk() ([]BandwidthLimit, bool)

GetBandwidthLimitsOk returns a tuple with the BandwidthLimits field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetDataTransferLimits

func (o *UserFilters) GetDataTransferLimits() []DataTransferLimit

GetDataTransferLimits returns the DataTransferLimits field value if set, zero value otherwise.

func (*UserFilters) GetDataTransferLimitsOk

func (o *UserFilters) GetDataTransferLimitsOk() ([]DataTransferLimit, bool)

GetDataTransferLimitsOk returns a tuple with the DataTransferLimits field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetDeniedIp

func (o *UserFilters) GetDeniedIp() []string

GetDeniedIp returns the DeniedIp field value if set, zero value otherwise.

func (*UserFilters) GetDeniedIpOk

func (o *UserFilters) GetDeniedIpOk() ([]string, bool)

GetDeniedIpOk returns a tuple with the DeniedIp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetDeniedLoginMethods

func (o *UserFilters) GetDeniedLoginMethods() []LoginMethods

GetDeniedLoginMethods returns the DeniedLoginMethods field value if set, zero value otherwise.

func (*UserFilters) GetDeniedLoginMethodsOk

func (o *UserFilters) GetDeniedLoginMethodsOk() ([]LoginMethods, bool)

GetDeniedLoginMethodsOk returns a tuple with the DeniedLoginMethods field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetDeniedProtocols

func (o *UserFilters) GetDeniedProtocols() []SupportedProtocols

GetDeniedProtocols returns the DeniedProtocols field value if set, zero value otherwise.

func (*UserFilters) GetDeniedProtocolsOk

func (o *UserFilters) GetDeniedProtocolsOk() ([]SupportedProtocols, bool)

GetDeniedProtocolsOk returns a tuple with the DeniedProtocols field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetDisableFsChecks

func (o *UserFilters) GetDisableFsChecks() bool

GetDisableFsChecks returns the DisableFsChecks field value if set, zero value otherwise.

func (*UserFilters) GetDisableFsChecksOk

func (o *UserFilters) GetDisableFsChecksOk() (*bool, bool)

GetDisableFsChecksOk returns a tuple with the DisableFsChecks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetFilePatterns

func (o *UserFilters) GetFilePatterns() []PatternsFilter

GetFilePatterns returns the FilePatterns field value if set, zero value otherwise.

func (*UserFilters) GetFilePatternsOk

func (o *UserFilters) GetFilePatternsOk() ([]PatternsFilter, bool)

GetFilePatternsOk returns a tuple with the FilePatterns field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetHooks

func (o *UserFilters) GetHooks() HooksFilter

GetHooks returns the Hooks field value if set, zero value otherwise.

func (*UserFilters) GetHooksOk

func (o *UserFilters) GetHooksOk() (*HooksFilter, bool)

GetHooksOk returns a tuple with the Hooks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetMaxUploadFileSize

func (o *UserFilters) GetMaxUploadFileSize() int64

GetMaxUploadFileSize returns the MaxUploadFileSize field value if set, zero value otherwise.

func (*UserFilters) GetMaxUploadFileSizeOk

func (o *UserFilters) GetMaxUploadFileSizeOk() (*int64, bool)

GetMaxUploadFileSizeOk returns a tuple with the MaxUploadFileSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetRecoveryCodes

func (o *UserFilters) GetRecoveryCodes() []RecoveryCode

GetRecoveryCodes returns the RecoveryCodes field value if set, zero value otherwise.

func (*UserFilters) GetRecoveryCodesOk

func (o *UserFilters) GetRecoveryCodesOk() ([]RecoveryCode, bool)

GetRecoveryCodesOk returns a tuple with the RecoveryCodes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetTlsUsername

func (o *UserFilters) GetTlsUsername() string

GetTlsUsername returns the TlsUsername field value if set, zero value otherwise.

func (*UserFilters) GetTlsUsernameOk

func (o *UserFilters) GetTlsUsernameOk() (*string, bool)

GetTlsUsernameOk returns a tuple with the TlsUsername field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetTotpConfig

func (o *UserFilters) GetTotpConfig() UserTOTPConfig

GetTotpConfig returns the TotpConfig field value if set, zero value otherwise.

func (*UserFilters) GetTotpConfigOk

func (o *UserFilters) GetTotpConfigOk() (*UserTOTPConfig, bool)

GetTotpConfigOk returns a tuple with the TotpConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetUserType

func (o *UserFilters) GetUserType() UserType

GetUserType returns the UserType field value if set, zero value otherwise.

func (*UserFilters) GetUserTypeOk

func (o *UserFilters) GetUserTypeOk() (*UserType, bool)

GetUserTypeOk returns a tuple with the UserType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) GetWebClient

func (o *UserFilters) GetWebClient() []WebClientOptions

GetWebClient returns the WebClient field value if set, zero value otherwise.

func (*UserFilters) GetWebClientOk

func (o *UserFilters) GetWebClientOk() ([]WebClientOptions, bool)

GetWebClientOk returns a tuple with the WebClient field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserFilters) HasAllowApiKeyAuth

func (o *UserFilters) HasAllowApiKeyAuth() bool

HasAllowApiKeyAuth returns a boolean if a field has been set.

func (*UserFilters) HasAllowedIp

func (o *UserFilters) HasAllowedIp() bool

HasAllowedIp returns a boolean if a field has been set.

func (*UserFilters) HasBandwidthLimits

func (o *UserFilters) HasBandwidthLimits() bool

HasBandwidthLimits returns a boolean if a field has been set.

func (*UserFilters) HasDataTransferLimits

func (o *UserFilters) HasDataTransferLimits() bool

HasDataTransferLimits returns a boolean if a field has been set.

func (*UserFilters) HasDeniedIp

func (o *UserFilters) HasDeniedIp() bool

HasDeniedIp returns a boolean if a field has been set.

func (*UserFilters) HasDeniedLoginMethods

func (o *UserFilters) HasDeniedLoginMethods() bool

HasDeniedLoginMethods returns a boolean if a field has been set.

func (*UserFilters) HasDeniedProtocols

func (o *UserFilters) HasDeniedProtocols() bool

HasDeniedProtocols returns a boolean if a field has been set.

func (*UserFilters) HasDisableFsChecks

func (o *UserFilters) HasDisableFsChecks() bool

HasDisableFsChecks returns a boolean if a field has been set.

func (*UserFilters) HasFilePatterns

func (o *UserFilters) HasFilePatterns() bool

HasFilePatterns returns a boolean if a field has been set.

func (*UserFilters) HasHooks

func (o *UserFilters) HasHooks() bool

HasHooks returns a boolean if a field has been set.

func (*UserFilters) HasMaxUploadFileSize

func (o *UserFilters) HasMaxUploadFileSize() bool

HasMaxUploadFileSize returns a boolean if a field has been set.

func (*UserFilters) HasRecoveryCodes

func (o *UserFilters) HasRecoveryCodes() bool

HasRecoveryCodes returns a boolean if a field has been set.

func (*UserFilters) HasTlsUsername

func (o *UserFilters) HasTlsUsername() bool

HasTlsUsername returns a boolean if a field has been set.

func (*UserFilters) HasTotpConfig

func (o *UserFilters) HasTotpConfig() bool

HasTotpConfig returns a boolean if a field has been set.

func (*UserFilters) HasUserType

func (o *UserFilters) HasUserType() bool

HasUserType returns a boolean if a field has been set.

func (*UserFilters) HasWebClient

func (o *UserFilters) HasWebClient() bool

HasWebClient returns a boolean if a field has been set.

func (UserFilters) MarshalJSON

func (o UserFilters) MarshalJSON() ([]byte, error)

func (*UserFilters) SetAllowApiKeyAuth

func (o *UserFilters) SetAllowApiKeyAuth(v bool)

SetAllowApiKeyAuth gets a reference to the given bool and assigns it to the AllowApiKeyAuth field.

func (*UserFilters) SetAllowedIp

func (o *UserFilters) SetAllowedIp(v []string)

SetAllowedIp gets a reference to the given []string and assigns it to the AllowedIp field.

func (*UserFilters) SetBandwidthLimits

func (o *UserFilters) SetBandwidthLimits(v []BandwidthLimit)

SetBandwidthLimits gets a reference to the given []BandwidthLimit and assigns it to the BandwidthLimits field.

func (*UserFilters) SetDataTransferLimits

func (o *UserFilters) SetDataTransferLimits(v []DataTransferLimit)

SetDataTransferLimits gets a reference to the given []DataTransferLimit and assigns it to the DataTransferLimits field.

func (*UserFilters) SetDeniedIp

func (o *UserFilters) SetDeniedIp(v []string)

SetDeniedIp gets a reference to the given []string and assigns it to the DeniedIp field.

func (*UserFilters) SetDeniedLoginMethods

func (o *UserFilters) SetDeniedLoginMethods(v []LoginMethods)

SetDeniedLoginMethods gets a reference to the given []LoginMethods and assigns it to the DeniedLoginMethods field.

func (*UserFilters) SetDeniedProtocols

func (o *UserFilters) SetDeniedProtocols(v []SupportedProtocols)

SetDeniedProtocols gets a reference to the given []SupportedProtocols and assigns it to the DeniedProtocols field.

func (*UserFilters) SetDisableFsChecks

func (o *UserFilters) SetDisableFsChecks(v bool)

SetDisableFsChecks gets a reference to the given bool and assigns it to the DisableFsChecks field.

func (*UserFilters) SetFilePatterns

func (o *UserFilters) SetFilePatterns(v []PatternsFilter)

SetFilePatterns gets a reference to the given []PatternsFilter and assigns it to the FilePatterns field.

func (*UserFilters) SetHooks

func (o *UserFilters) SetHooks(v HooksFilter)

SetHooks gets a reference to the given HooksFilter and assigns it to the Hooks field.

func (*UserFilters) SetMaxUploadFileSize

func (o *UserFilters) SetMaxUploadFileSize(v int64)

SetMaxUploadFileSize gets a reference to the given int64 and assigns it to the MaxUploadFileSize field.

func (*UserFilters) SetRecoveryCodes

func (o *UserFilters) SetRecoveryCodes(v []RecoveryCode)

SetRecoveryCodes gets a reference to the given []RecoveryCode and assigns it to the RecoveryCodes field.

func (*UserFilters) SetTlsUsername

func (o *UserFilters) SetTlsUsername(v string)

SetTlsUsername gets a reference to the given string and assigns it to the TlsUsername field.

func (*UserFilters) SetTotpConfig

func (o *UserFilters) SetTotpConfig(v UserTOTPConfig)

SetTotpConfig gets a reference to the given UserTOTPConfig and assigns it to the TotpConfig field.

func (*UserFilters) SetUserType

func (o *UserFilters) SetUserType(v UserType)

SetUserType gets a reference to the given UserType and assigns it to the UserType field.

func (*UserFilters) SetWebClient

func (o *UserFilters) SetWebClient(v []WebClientOptions)

SetWebClient gets a reference to the given []WebClientOptions and assigns it to the WebClient field.

type UserProfile

type UserProfile struct {
	Email       *string `json:"email,omitempty"`
	Description *string `json:"description,omitempty"`
	// If enabled, you can impersonate this user, in REST API, using an API key. If disabled user credentials are required for impersonation
	AllowApiKeyAuth *bool    `json:"allow_api_key_auth,omitempty"`
	PublicKeys      []string `json:"public_keys,omitempty"`
}

UserProfile struct for UserProfile

func NewUserProfile

func NewUserProfile() *UserProfile

NewUserProfile instantiates a new UserProfile object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserProfileWithDefaults

func NewUserProfileWithDefaults() *UserProfile

NewUserProfileWithDefaults instantiates a new UserProfile object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserProfile) GetAllowApiKeyAuth

func (o *UserProfile) GetAllowApiKeyAuth() bool

GetAllowApiKeyAuth returns the AllowApiKeyAuth field value if set, zero value otherwise.

func (*UserProfile) GetAllowApiKeyAuthOk

func (o *UserProfile) GetAllowApiKeyAuthOk() (*bool, bool)

GetAllowApiKeyAuthOk returns a tuple with the AllowApiKeyAuth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetDescription

func (o *UserProfile) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*UserProfile) GetDescriptionOk

func (o *UserProfile) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetEmail

func (o *UserProfile) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*UserProfile) GetEmailOk

func (o *UserProfile) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetPublicKeys

func (o *UserProfile) GetPublicKeys() []string

GetPublicKeys returns the PublicKeys field value if set, zero value otherwise.

func (*UserProfile) GetPublicKeysOk

func (o *UserProfile) GetPublicKeysOk() ([]string, bool)

GetPublicKeysOk returns a tuple with the PublicKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) HasAllowApiKeyAuth

func (o *UserProfile) HasAllowApiKeyAuth() bool

HasAllowApiKeyAuth returns a boolean if a field has been set.

func (*UserProfile) HasDescription

func (o *UserProfile) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*UserProfile) HasEmail

func (o *UserProfile) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*UserProfile) HasPublicKeys

func (o *UserProfile) HasPublicKeys() bool

HasPublicKeys returns a boolean if a field has been set.

func (UserProfile) MarshalJSON

func (o UserProfile) MarshalJSON() ([]byte, error)

func (*UserProfile) SetAllowApiKeyAuth

func (o *UserProfile) SetAllowApiKeyAuth(v bool)

SetAllowApiKeyAuth gets a reference to the given bool and assigns it to the AllowApiKeyAuth field.

func (*UserProfile) SetDescription

func (o *UserProfile) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*UserProfile) SetEmail

func (o *UserProfile) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*UserProfile) SetPublicKeys

func (o *UserProfile) SetPublicKeys(v []string)

SetPublicKeys gets a reference to the given []string and assigns it to the PublicKeys field.

type UserTOTPConfig

type UserTOTPConfig struct {
	Enabled *bool `json:"enabled,omitempty"`
	// This name must be defined within the \"totp\" section of the SFTPGo configuration file. You will be unable to save a user/admin referencing a missing config_name
	ConfigName *string `json:"config_name,omitempty"`
	Secret     *Secret `json:"secret,omitempty"`
	// TOTP will be required for the specified protocols. SSH protocol (SFTP/SCP/SSH commands) will ask for the TOTP passcode if the client uses keyboard interactive authentication. FTP has no standard way to support two factor authentication, if you enable the FTP support, you have to add the TOTP passcode after the password. For example if your password is \"password\" and your one time passcode is \"123456\" you have to use \"password123456\" as password. WebDAV is not supported since each single request must be authenticated and a passcode cannot be reused.
	Protocols []MFAProtocols `json:"protocols,omitempty"`
}

UserTOTPConfig struct for UserTOTPConfig

func NewUserTOTPConfig

func NewUserTOTPConfig() *UserTOTPConfig

NewUserTOTPConfig instantiates a new UserTOTPConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserTOTPConfigWithDefaults

func NewUserTOTPConfigWithDefaults() *UserTOTPConfig

NewUserTOTPConfigWithDefaults instantiates a new UserTOTPConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserTOTPConfig) GetConfigName

func (o *UserTOTPConfig) GetConfigName() string

GetConfigName returns the ConfigName field value if set, zero value otherwise.

func (*UserTOTPConfig) GetConfigNameOk

func (o *UserTOTPConfig) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserTOTPConfig) GetEnabled

func (o *UserTOTPConfig) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*UserTOTPConfig) GetEnabledOk

func (o *UserTOTPConfig) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserTOTPConfig) GetProtocols

func (o *UserTOTPConfig) GetProtocols() []MFAProtocols

GetProtocols returns the Protocols field value if set, zero value otherwise.

func (*UserTOTPConfig) GetProtocolsOk

func (o *UserTOTPConfig) GetProtocolsOk() ([]MFAProtocols, bool)

GetProtocolsOk returns a tuple with the Protocols field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserTOTPConfig) GetSecret

func (o *UserTOTPConfig) GetSecret() Secret

GetSecret returns the Secret field value if set, zero value otherwise.

func (*UserTOTPConfig) GetSecretOk

func (o *UserTOTPConfig) GetSecretOk() (*Secret, bool)

GetSecretOk returns a tuple with the Secret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserTOTPConfig) HasConfigName

func (o *UserTOTPConfig) HasConfigName() bool

HasConfigName returns a boolean if a field has been set.

func (*UserTOTPConfig) HasEnabled

func (o *UserTOTPConfig) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*UserTOTPConfig) HasProtocols

func (o *UserTOTPConfig) HasProtocols() bool

HasProtocols returns a boolean if a field has been set.

func (*UserTOTPConfig) HasSecret

func (o *UserTOTPConfig) HasSecret() bool

HasSecret returns a boolean if a field has been set.

func (UserTOTPConfig) MarshalJSON

func (o UserTOTPConfig) MarshalJSON() ([]byte, error)

func (*UserTOTPConfig) SetConfigName

func (o *UserTOTPConfig) SetConfigName(v string)

SetConfigName gets a reference to the given string and assigns it to the ConfigName field.

func (*UserTOTPConfig) SetEnabled

func (o *UserTOTPConfig) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*UserTOTPConfig) SetProtocols

func (o *UserTOTPConfig) SetProtocols(v []MFAProtocols)

SetProtocols gets a reference to the given []MFAProtocols and assigns it to the Protocols field.

func (*UserTOTPConfig) SetSecret

func (o *UserTOTPConfig) SetSecret(v Secret)

SetSecret gets a reference to the given Secret and assigns it to the Secret field.

type UserTOTPConfigAllOf

type UserTOTPConfigAllOf struct {
	// TOTP will be required for the specified protocols. SSH protocol (SFTP/SCP/SSH commands) will ask for the TOTP passcode if the client uses keyboard interactive authentication. FTP has no standard way to support two factor authentication, if you enable the FTP support, you have to add the TOTP passcode after the password. For example if your password is \"password\" and your one time passcode is \"123456\" you have to use \"password123456\" as password. WebDAV is not supported since each single request must be authenticated and a passcode cannot be reused.
	Protocols []MFAProtocols `json:"protocols,omitempty"`
}

UserTOTPConfigAllOf struct for UserTOTPConfigAllOf

func NewUserTOTPConfigAllOf

func NewUserTOTPConfigAllOf() *UserTOTPConfigAllOf

NewUserTOTPConfigAllOf instantiates a new UserTOTPConfigAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserTOTPConfigAllOfWithDefaults

func NewUserTOTPConfigAllOfWithDefaults() *UserTOTPConfigAllOf

NewUserTOTPConfigAllOfWithDefaults instantiates a new UserTOTPConfigAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserTOTPConfigAllOf) GetProtocols

func (o *UserTOTPConfigAllOf) GetProtocols() []MFAProtocols

GetProtocols returns the Protocols field value if set, zero value otherwise.

func (*UserTOTPConfigAllOf) GetProtocolsOk

func (o *UserTOTPConfigAllOf) GetProtocolsOk() ([]MFAProtocols, bool)

GetProtocolsOk returns a tuple with the Protocols field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserTOTPConfigAllOf) HasProtocols

func (o *UserTOTPConfigAllOf) HasProtocols() bool

HasProtocols returns a boolean if a field has been set.

func (UserTOTPConfigAllOf) MarshalJSON

func (o UserTOTPConfigAllOf) MarshalJSON() ([]byte, error)

func (*UserTOTPConfigAllOf) SetProtocols

func (o *UserTOTPConfigAllOf) SetProtocols(v []MFAProtocols)

SetProtocols gets a reference to the given []MFAProtocols and assigns it to the Protocols field.

type UserType

type UserType string

UserType This is an hint for authentication plugins. It is ignored when using SFTPGo internal authentication

const (
	USERTYPE_EMPTY     UserType = ""
	USERTYPE_LDAP_USER UserType = "LDAPUser"
	USERTYPE_OS_USER   UserType = "OSUser"
)

List of UserType

func NewUserTypeFromValue

func NewUserTypeFromValue(v string) (*UserType, error)

NewUserTypeFromValue returns a pointer to a valid UserType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (UserType) IsValid

func (v UserType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (UserType) Ptr

func (v UserType) Ptr() *UserType

Ptr returns reference to UserType value

func (*UserType) UnmarshalJSON

func (v *UserType) UnmarshalJSON(src []byte) error

type UsersApiApiAddUserRequest

type UsersApiApiAddUserRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiAddUserRequest) Execute

func (r UsersApiApiAddUserRequest) Execute() (*User, *http.Response, error)

func (UsersApiApiAddUserRequest) User

type UsersApiApiDeleteUserRequest

type UsersApiApiDeleteUserRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiDeleteUserRequest) Execute

type UsersApiApiDisableUser2faRequest

type UsersApiApiDisableUser2faRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiDisableUser2faRequest) Execute

type UsersApiApiGetUserByUsernameRequest

type UsersApiApiGetUserByUsernameRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiGetUserByUsernameRequest) Execute

type UsersApiApiGetUsersRequest

type UsersApiApiGetUsersRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiGetUsersRequest) Execute

func (r UsersApiApiGetUsersRequest) Execute() ([]User, *http.Response, error)

func (UsersApiApiGetUsersRequest) Limit

The maximum number of items to return. Max value is 500, default is 100

func (UsersApiApiGetUsersRequest) Offset

func (UsersApiApiGetUsersRequest) Order

Ordering users by username. Default ASC

type UsersApiApiUpdateUserRequest

type UsersApiApiUpdateUserRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiUpdateUserRequest) Disconnect

Disconnect: * `0` The user will not be disconnected and it will continue to use the old configuration until connected. This is the default * `1` The user will be disconnected after a successful update. It must login again and so it will be forced to use the new configuration

func (UsersApiApiUpdateUserRequest) Execute

func (UsersApiApiUpdateUserRequest) User

type UsersApiApiUserForgotPasswordRequest

type UsersApiApiUserForgotPasswordRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiUserForgotPasswordRequest) Execute

type UsersApiApiUserResetPasswordRequest

type UsersApiApiUserResetPasswordRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiApiUserResetPasswordRequest) Execute

func (UsersApiApiUserResetPasswordRequest) InlineObject5

type UsersApiService

type UsersApiService service

UsersApiService UsersApi service

func (*UsersApiService) AddUser

AddUser Add user

Adds a new user.Recovery codes and TOTP configuration cannot be set using this API: each user must use the specific APIs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UsersApiApiAddUserRequest

func (*UsersApiService) AddUserExecute

func (a *UsersApiService) AddUserExecute(r UsersApiApiAddUserRequest) (*User, *http.Response, error)

Execute executes the request

@return User

func (*UsersApiService) DeleteUser

func (a *UsersApiService) DeleteUser(ctx context.Context, username string) UsersApiApiDeleteUserRequest

DeleteUser Delete user

Deletes an existing user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return UsersApiApiDeleteUserRequest

func (*UsersApiService) DeleteUserExecute

Execute executes the request

@return ApiResponse

func (*UsersApiService) DisableUser2fa

func (a *UsersApiService) DisableUser2fa(ctx context.Context, username string) UsersApiApiDisableUser2faRequest

DisableUser2fa Disable second factor authentication

Disables second factor authentication for the given user. This API must be used if the user loses access to their second factor auth device and has no recovery codes

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return UsersApiApiDisableUser2faRequest

func (*UsersApiService) DisableUser2faExecute

Execute executes the request

@return ApiResponse

func (*UsersApiService) GetUserByUsername

func (a *UsersApiService) GetUserByUsername(ctx context.Context, username string) UsersApiApiGetUserByUsernameRequest

GetUserByUsername Find users by username

Returns the user with the given username if it exists. For security reasons the hashed password is omitted in the response

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return UsersApiApiGetUserByUsernameRequest

func (*UsersApiService) GetUserByUsernameExecute

func (a *UsersApiService) GetUserByUsernameExecute(r UsersApiApiGetUserByUsernameRequest) (*User, *http.Response, error)

Execute executes the request

@return User

func (*UsersApiService) GetUsers

GetUsers Get users

Returns an array with one or more users. For security reasons hashed passwords are omitted in the response

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return UsersApiApiGetUsersRequest

func (*UsersApiService) GetUsersExecute

func (a *UsersApiService) GetUsersExecute(r UsersApiApiGetUsersRequest) ([]User, *http.Response, error)

Execute executes the request

@return []User

func (*UsersApiService) UpdateUser

func (a *UsersApiService) UpdateUser(ctx context.Context, username string) UsersApiApiUpdateUserRequest

UpdateUser Update user

Updates an existing user and optionally disconnects it, if connected, to apply the new settings. Recovery codes and TOTP configuration cannot be set/updated using this API: each user must use the specific APIs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return UsersApiApiUpdateUserRequest

func (*UsersApiService) UpdateUserExecute

Execute executes the request

@return ApiResponse

func (*UsersApiService) UserForgotPassword

func (a *UsersApiService) UserForgotPassword(ctx context.Context, username string) UsersApiApiUserForgotPasswordRequest

UserForgotPassword Send a password reset code by email

You must configure an SMTP server, the account must have a valid email address and must not have the "reset-password-disabled" restriction, in which case SFTPGo will send a code via email to reset the password. If the specified user does not exist, the request will be silently ignored (a success response will be returned) to avoid disclosing existing users

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return UsersApiApiUserForgotPasswordRequest

func (*UsersApiService) UserForgotPasswordExecute

Execute executes the request

@return ApiResponse

func (*UsersApiService) UserResetPassword

func (a *UsersApiService) UserResetPassword(ctx context.Context, username string) UsersApiApiUserResetPasswordRequest

UserResetPassword Reset the password

Set a new password using the code received via email

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username the username
@return UsersApiApiUserResetPasswordRequest

func (*UsersApiService) UserResetPasswordExecute

Execute executes the request

@return ApiResponse

type VersionInfo

type VersionInfo struct {
	Version    *string `json:"version,omitempty"`
	BuildDate  *string `json:"build_date,omitempty"`
	CommitHash *string `json:"commit_hash,omitempty"`
	// Features for the current build. Available features are \"portable\", \"bolt\", \"mysql\", \"sqlite\", \"pgsql\", \"s3\", \"gcs\", \"metrics\". If a feature is available it has a \"+\" prefix, otherwise a \"-\" prefix
	Features []string `json:"features,omitempty"`
}

VersionInfo struct for VersionInfo

func NewVersionInfo

func NewVersionInfo() *VersionInfo

NewVersionInfo instantiates a new VersionInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVersionInfoWithDefaults

func NewVersionInfoWithDefaults() *VersionInfo

NewVersionInfoWithDefaults instantiates a new VersionInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VersionInfo) GetBuildDate

func (o *VersionInfo) GetBuildDate() string

GetBuildDate returns the BuildDate field value if set, zero value otherwise.

func (*VersionInfo) GetBuildDateOk

func (o *VersionInfo) GetBuildDateOk() (*string, bool)

GetBuildDateOk returns a tuple with the BuildDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VersionInfo) GetCommitHash

func (o *VersionInfo) GetCommitHash() string

GetCommitHash returns the CommitHash field value if set, zero value otherwise.

func (*VersionInfo) GetCommitHashOk

func (o *VersionInfo) GetCommitHashOk() (*string, bool)

GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VersionInfo) GetFeatures

func (o *VersionInfo) GetFeatures() []string

GetFeatures returns the Features field value if set, zero value otherwise.

func (*VersionInfo) GetFeaturesOk

func (o *VersionInfo) GetFeaturesOk() ([]string, bool)

GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VersionInfo) GetVersion

func (o *VersionInfo) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*VersionInfo) GetVersionOk

func (o *VersionInfo) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VersionInfo) HasBuildDate

func (o *VersionInfo) HasBuildDate() bool

HasBuildDate returns a boolean if a field has been set.

func (*VersionInfo) HasCommitHash

func (o *VersionInfo) HasCommitHash() bool

HasCommitHash returns a boolean if a field has been set.

func (*VersionInfo) HasFeatures

func (o *VersionInfo) HasFeatures() bool

HasFeatures returns a boolean if a field has been set.

func (*VersionInfo) HasVersion

func (o *VersionInfo) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (VersionInfo) MarshalJSON

func (o VersionInfo) MarshalJSON() ([]byte, error)

func (*VersionInfo) SetBuildDate

func (o *VersionInfo) SetBuildDate(v string)

SetBuildDate gets a reference to the given string and assigns it to the BuildDate field.

func (*VersionInfo) SetCommitHash

func (o *VersionInfo) SetCommitHash(v string)

SetCommitHash gets a reference to the given string and assigns it to the CommitHash field.

func (*VersionInfo) SetFeatures

func (o *VersionInfo) SetFeatures(v []string)

SetFeatures gets a reference to the given []string and assigns it to the Features field.

func (*VersionInfo) SetVersion

func (o *VersionInfo) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

type VirtualFolder

type VirtualFolder struct {
	Id *int32 `json:"id,omitempty"`
	// unique name for this virtual folder
	Name *string `json:"name,omitempty"`
	// absolute filesystem path to use as virtual folder
	MappedPath *string `json:"mapped_path,omitempty"`
	// optional description
	Description    *string `json:"description,omitempty"`
	UsedQuotaSize  *int64  `json:"used_quota_size,omitempty"`
	UsedQuotaFiles *int32  `json:"used_quota_files,omitempty"`
	// Last quota update as unix timestamp in milliseconds
	LastQuotaUpdate *int64 `json:"last_quota_update,omitempty"`
	// list of usernames associated with this virtual folder
	Users       []string          `json:"users,omitempty"`
	Filesystem  *FilesystemConfig `json:"filesystem,omitempty"`
	VirtualPath string            `json:"virtual_path"`
	// Quota as size in bytes. 0 menas unlimited, -1 means included in user quota. Please note that quota is updated if files are added/removed via SFTPGo otherwise a quota scan or a manual quota update is needed
	QuotaSize *int64 `json:"quota_size,omitempty"`
	// Quota as number of files. 0 menas unlimited, , -1 means included in user quota. Please note that quota is updated if files are added/removed via SFTPGo otherwise a quota scan or a manual quota update is needed
	QuotaFiles *int32 `json:"quota_files,omitempty"`
}

VirtualFolder A virtual folder is a mapping between a SFTPGo virtual path and a filesystem path outside the user home directory. The specified paths must be absolute and the virtual path cannot be \"/\", it must be a sub directory. The parent directory for the specified virtual path must exist. SFTPGo will try to automatically create any missing parent directory for the configured virtual folders at user login.

func NewVirtualFolder

func NewVirtualFolder(virtualPath string) *VirtualFolder

NewVirtualFolder instantiates a new VirtualFolder object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVirtualFolderWithDefaults

func NewVirtualFolderWithDefaults() *VirtualFolder

NewVirtualFolderWithDefaults instantiates a new VirtualFolder object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VirtualFolder) GetDescription

func (o *VirtualFolder) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*VirtualFolder) GetDescriptionOk

func (o *VirtualFolder) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetFilesystem

func (o *VirtualFolder) GetFilesystem() FilesystemConfig

GetFilesystem returns the Filesystem field value if set, zero value otherwise.

func (*VirtualFolder) GetFilesystemOk

func (o *VirtualFolder) GetFilesystemOk() (*FilesystemConfig, bool)

GetFilesystemOk returns a tuple with the Filesystem field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetId

func (o *VirtualFolder) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*VirtualFolder) GetIdOk

func (o *VirtualFolder) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetLastQuotaUpdate

func (o *VirtualFolder) GetLastQuotaUpdate() int64

GetLastQuotaUpdate returns the LastQuotaUpdate field value if set, zero value otherwise.

func (*VirtualFolder) GetLastQuotaUpdateOk

func (o *VirtualFolder) GetLastQuotaUpdateOk() (*int64, bool)

GetLastQuotaUpdateOk returns a tuple with the LastQuotaUpdate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetMappedPath

func (o *VirtualFolder) GetMappedPath() string

GetMappedPath returns the MappedPath field value if set, zero value otherwise.

func (*VirtualFolder) GetMappedPathOk

func (o *VirtualFolder) GetMappedPathOk() (*string, bool)

GetMappedPathOk returns a tuple with the MappedPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetName

func (o *VirtualFolder) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*VirtualFolder) GetNameOk

func (o *VirtualFolder) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetQuotaFiles

func (o *VirtualFolder) GetQuotaFiles() int32

GetQuotaFiles returns the QuotaFiles field value if set, zero value otherwise.

func (*VirtualFolder) GetQuotaFilesOk

func (o *VirtualFolder) GetQuotaFilesOk() (*int32, bool)

GetQuotaFilesOk returns a tuple with the QuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetQuotaSize

func (o *VirtualFolder) GetQuotaSize() int64

GetQuotaSize returns the QuotaSize field value if set, zero value otherwise.

func (*VirtualFolder) GetQuotaSizeOk

func (o *VirtualFolder) GetQuotaSizeOk() (*int64, bool)

GetQuotaSizeOk returns a tuple with the QuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetUsedQuotaFiles

func (o *VirtualFolder) GetUsedQuotaFiles() int32

GetUsedQuotaFiles returns the UsedQuotaFiles field value if set, zero value otherwise.

func (*VirtualFolder) GetUsedQuotaFilesOk

func (o *VirtualFolder) GetUsedQuotaFilesOk() (*int32, bool)

GetUsedQuotaFilesOk returns a tuple with the UsedQuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetUsedQuotaSize

func (o *VirtualFolder) GetUsedQuotaSize() int64

GetUsedQuotaSize returns the UsedQuotaSize field value if set, zero value otherwise.

func (*VirtualFolder) GetUsedQuotaSizeOk

func (o *VirtualFolder) GetUsedQuotaSizeOk() (*int64, bool)

GetUsedQuotaSizeOk returns a tuple with the UsedQuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetUsers

func (o *VirtualFolder) GetUsers() []string

GetUsers returns the Users field value if set, zero value otherwise.

func (*VirtualFolder) GetUsersOk

func (o *VirtualFolder) GetUsersOk() ([]string, bool)

GetUsersOk returns a tuple with the Users field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolder) GetVirtualPath

func (o *VirtualFolder) GetVirtualPath() string

GetVirtualPath returns the VirtualPath field value

func (*VirtualFolder) GetVirtualPathOk

func (o *VirtualFolder) GetVirtualPathOk() (*string, bool)

GetVirtualPathOk returns a tuple with the VirtualPath field value and a boolean to check if the value has been set.

func (*VirtualFolder) HasDescription

func (o *VirtualFolder) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*VirtualFolder) HasFilesystem

func (o *VirtualFolder) HasFilesystem() bool

HasFilesystem returns a boolean if a field has been set.

func (*VirtualFolder) HasId

func (o *VirtualFolder) HasId() bool

HasId returns a boolean if a field has been set.

func (*VirtualFolder) HasLastQuotaUpdate

func (o *VirtualFolder) HasLastQuotaUpdate() bool

HasLastQuotaUpdate returns a boolean if a field has been set.

func (*VirtualFolder) HasMappedPath

func (o *VirtualFolder) HasMappedPath() bool

HasMappedPath returns a boolean if a field has been set.

func (*VirtualFolder) HasName

func (o *VirtualFolder) HasName() bool

HasName returns a boolean if a field has been set.

func (*VirtualFolder) HasQuotaFiles

func (o *VirtualFolder) HasQuotaFiles() bool

HasQuotaFiles returns a boolean if a field has been set.

func (*VirtualFolder) HasQuotaSize

func (o *VirtualFolder) HasQuotaSize() bool

HasQuotaSize returns a boolean if a field has been set.

func (*VirtualFolder) HasUsedQuotaFiles

func (o *VirtualFolder) HasUsedQuotaFiles() bool

HasUsedQuotaFiles returns a boolean if a field has been set.

func (*VirtualFolder) HasUsedQuotaSize

func (o *VirtualFolder) HasUsedQuotaSize() bool

HasUsedQuotaSize returns a boolean if a field has been set.

func (*VirtualFolder) HasUsers

func (o *VirtualFolder) HasUsers() bool

HasUsers returns a boolean if a field has been set.

func (VirtualFolder) MarshalJSON

func (o VirtualFolder) MarshalJSON() ([]byte, error)

func (*VirtualFolder) SetDescription

func (o *VirtualFolder) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*VirtualFolder) SetFilesystem

func (o *VirtualFolder) SetFilesystem(v FilesystemConfig)

SetFilesystem gets a reference to the given FilesystemConfig and assigns it to the Filesystem field.

func (*VirtualFolder) SetId

func (o *VirtualFolder) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*VirtualFolder) SetLastQuotaUpdate

func (o *VirtualFolder) SetLastQuotaUpdate(v int64)

SetLastQuotaUpdate gets a reference to the given int64 and assigns it to the LastQuotaUpdate field.

func (*VirtualFolder) SetMappedPath

func (o *VirtualFolder) SetMappedPath(v string)

SetMappedPath gets a reference to the given string and assigns it to the MappedPath field.

func (*VirtualFolder) SetName

func (o *VirtualFolder) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*VirtualFolder) SetQuotaFiles

func (o *VirtualFolder) SetQuotaFiles(v int32)

SetQuotaFiles gets a reference to the given int32 and assigns it to the QuotaFiles field.

func (*VirtualFolder) SetQuotaSize

func (o *VirtualFolder) SetQuotaSize(v int64)

SetQuotaSize gets a reference to the given int64 and assigns it to the QuotaSize field.

func (*VirtualFolder) SetUsedQuotaFiles

func (o *VirtualFolder) SetUsedQuotaFiles(v int32)

SetUsedQuotaFiles gets a reference to the given int32 and assigns it to the UsedQuotaFiles field.

func (*VirtualFolder) SetUsedQuotaSize

func (o *VirtualFolder) SetUsedQuotaSize(v int64)

SetUsedQuotaSize gets a reference to the given int64 and assigns it to the UsedQuotaSize field.

func (*VirtualFolder) SetUsers

func (o *VirtualFolder) SetUsers(v []string)

SetUsers gets a reference to the given []string and assigns it to the Users field.

func (*VirtualFolder) SetVirtualPath

func (o *VirtualFolder) SetVirtualPath(v string)

SetVirtualPath sets field value

type VirtualFolderAllOf

type VirtualFolderAllOf struct {
	VirtualPath string `json:"virtual_path"`
	// Quota as size in bytes. 0 menas unlimited, -1 means included in user quota. Please note that quota is updated if files are added/removed via SFTPGo otherwise a quota scan or a manual quota update is needed
	QuotaSize *int64 `json:"quota_size,omitempty"`
	// Quota as number of files. 0 menas unlimited, , -1 means included in user quota. Please note that quota is updated if files are added/removed via SFTPGo otherwise a quota scan or a manual quota update is needed
	QuotaFiles *int32 `json:"quota_files,omitempty"`
}

VirtualFolderAllOf struct for VirtualFolderAllOf

func NewVirtualFolderAllOf

func NewVirtualFolderAllOf(virtualPath string) *VirtualFolderAllOf

NewVirtualFolderAllOf instantiates a new VirtualFolderAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVirtualFolderAllOfWithDefaults

func NewVirtualFolderAllOfWithDefaults() *VirtualFolderAllOf

NewVirtualFolderAllOfWithDefaults instantiates a new VirtualFolderAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VirtualFolderAllOf) GetQuotaFiles

func (o *VirtualFolderAllOf) GetQuotaFiles() int32

GetQuotaFiles returns the QuotaFiles field value if set, zero value otherwise.

func (*VirtualFolderAllOf) GetQuotaFilesOk

func (o *VirtualFolderAllOf) GetQuotaFilesOk() (*int32, bool)

GetQuotaFilesOk returns a tuple with the QuotaFiles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolderAllOf) GetQuotaSize

func (o *VirtualFolderAllOf) GetQuotaSize() int64

GetQuotaSize returns the QuotaSize field value if set, zero value otherwise.

func (*VirtualFolderAllOf) GetQuotaSizeOk

func (o *VirtualFolderAllOf) GetQuotaSizeOk() (*int64, bool)

GetQuotaSizeOk returns a tuple with the QuotaSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VirtualFolderAllOf) GetVirtualPath

func (o *VirtualFolderAllOf) GetVirtualPath() string

GetVirtualPath returns the VirtualPath field value

func (*VirtualFolderAllOf) GetVirtualPathOk

func (o *VirtualFolderAllOf) GetVirtualPathOk() (*string, bool)

GetVirtualPathOk returns a tuple with the VirtualPath field value and a boolean to check if the value has been set.

func (*VirtualFolderAllOf) HasQuotaFiles

func (o *VirtualFolderAllOf) HasQuotaFiles() bool

HasQuotaFiles returns a boolean if a field has been set.

func (*VirtualFolderAllOf) HasQuotaSize

func (o *VirtualFolderAllOf) HasQuotaSize() bool

HasQuotaSize returns a boolean if a field has been set.

func (VirtualFolderAllOf) MarshalJSON

func (o VirtualFolderAllOf) MarshalJSON() ([]byte, error)

func (*VirtualFolderAllOf) SetQuotaFiles

func (o *VirtualFolderAllOf) SetQuotaFiles(v int32)

SetQuotaFiles gets a reference to the given int32 and assigns it to the QuotaFiles field.

func (*VirtualFolderAllOf) SetQuotaSize

func (o *VirtualFolderAllOf) SetQuotaSize(v int64)

SetQuotaSize gets a reference to the given int64 and assigns it to the QuotaSize field.

func (*VirtualFolderAllOf) SetVirtualPath

func (o *VirtualFolderAllOf) SetVirtualPath(v string)

SetVirtualPath sets field value

type WebClientOptions

type WebClientOptions string

WebClientOptions Options: * `publickey-change-disabled` - changing SSH public keys is not allowed * `write-disabled` - upload, rename, delete are not allowed even if the user has permissions for these actions * `mfa-disabled` - enabling multi-factor authentication is not allowed. This option cannot be set if the user has MFA already enabled * `password-change-disabled` - changing password is not allowed * `api-key-auth-change-disabled` - enabling/disabling API key authentication is not allowed * `info-change-disabled` - changing info such as email and description is not allowed * `shares-disabled` - sharing files and directories with external users is disabled * `password-reset-disabled` - resetting the password is disabled

const (
	WEBCLIENTOPTIONS_PUBLICKEY_CHANGE_DISABLED    WebClientOptions = "publickey-change-disabled"
	WEBCLIENTOPTIONS_WRITE_DISABLED               WebClientOptions = "write-disabled"
	WEBCLIENTOPTIONS_MFA_DISABLED                 WebClientOptions = "mfa-disabled"
	WEBCLIENTOPTIONS_PASSWORD_CHANGE_DISABLED     WebClientOptions = "password-change-disabled"
	WEBCLIENTOPTIONS_API_KEY_AUTH_CHANGE_DISABLED WebClientOptions = "api-key-auth-change-disabled"
	WEBCLIENTOPTIONS_INFO_CHANGE_DISABLED         WebClientOptions = "info-change-disabled"
	WEBCLIENTOPTIONS_SHARES_DISABLED              WebClientOptions = "shares-disabled"
	WEBCLIENTOPTIONS_PASSWORD_RESET_DISABLED      WebClientOptions = "password-reset-disabled"
)

List of WebClientOptions

func NewWebClientOptionsFromValue

func NewWebClientOptionsFromValue(v string) (*WebClientOptions, error)

NewWebClientOptionsFromValue returns a pointer to a valid WebClientOptions for the value passed as argument, or an error if the value passed is not allowed by the enum

func (WebClientOptions) IsValid

func (v WebClientOptions) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (WebClientOptions) Ptr

Ptr returns reference to WebClientOptions value

func (*WebClientOptions) UnmarshalJSON

func (v *WebClientOptions) UnmarshalJSON(src []byte) error

type WebDAVBinding

type WebDAVBinding struct {
	// TCP address the server listen on
	Address *string `json:"address,omitempty"`
	// the port used for serving requests
	Port        *int32 `json:"port,omitempty"`
	EnableHttps *bool  `json:"enable_https,omitempty"`
	// 1 means that client certificate authentication is required in addition to HTTP basic authentication
	ClientAuthType *int32 `json:"client_auth_type,omitempty"`
}

WebDAVBinding struct for WebDAVBinding

func NewWebDAVBinding

func NewWebDAVBinding() *WebDAVBinding

NewWebDAVBinding instantiates a new WebDAVBinding object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewWebDAVBindingWithDefaults

func NewWebDAVBindingWithDefaults() *WebDAVBinding

NewWebDAVBindingWithDefaults instantiates a new WebDAVBinding object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*WebDAVBinding) GetAddress

func (o *WebDAVBinding) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*WebDAVBinding) GetAddressOk

func (o *WebDAVBinding) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WebDAVBinding) GetClientAuthType

func (o *WebDAVBinding) GetClientAuthType() int32

GetClientAuthType returns the ClientAuthType field value if set, zero value otherwise.

func (*WebDAVBinding) GetClientAuthTypeOk

func (o *WebDAVBinding) GetClientAuthTypeOk() (*int32, bool)

GetClientAuthTypeOk returns a tuple with the ClientAuthType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WebDAVBinding) GetEnableHttps

func (o *WebDAVBinding) GetEnableHttps() bool

GetEnableHttps returns the EnableHttps field value if set, zero value otherwise.

func (*WebDAVBinding) GetEnableHttpsOk

func (o *WebDAVBinding) GetEnableHttpsOk() (*bool, bool)

GetEnableHttpsOk returns a tuple with the EnableHttps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WebDAVBinding) GetPort

func (o *WebDAVBinding) GetPort() int32

GetPort returns the Port field value if set, zero value otherwise.

func (*WebDAVBinding) GetPortOk

func (o *WebDAVBinding) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WebDAVBinding) HasAddress

func (o *WebDAVBinding) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*WebDAVBinding) HasClientAuthType

func (o *WebDAVBinding) HasClientAuthType() bool

HasClientAuthType returns a boolean if a field has been set.

func (*WebDAVBinding) HasEnableHttps

func (o *WebDAVBinding) HasEnableHttps() bool

HasEnableHttps returns a boolean if a field has been set.

func (*WebDAVBinding) HasPort

func (o *WebDAVBinding) HasPort() bool

HasPort returns a boolean if a field has been set.

func (WebDAVBinding) MarshalJSON

func (o WebDAVBinding) MarshalJSON() ([]byte, error)

func (*WebDAVBinding) SetAddress

func (o *WebDAVBinding) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*WebDAVBinding) SetClientAuthType

func (o *WebDAVBinding) SetClientAuthType(v int32)

SetClientAuthType gets a reference to the given int32 and assigns it to the ClientAuthType field.

func (*WebDAVBinding) SetEnableHttps

func (o *WebDAVBinding) SetEnableHttps(v bool)

SetEnableHttps gets a reference to the given bool and assigns it to the EnableHttps field.

func (*WebDAVBinding) SetPort

func (o *WebDAVBinding) SetPort(v int32)

SetPort gets a reference to the given int32 and assigns it to the Port field.

type WebDAVServiceStatus

type WebDAVServiceStatus struct {
	IsActive *bool           `json:"is_active,omitempty"`
	Bindings []WebDAVBinding `json:"bindings,omitempty"`
}

WebDAVServiceStatus struct for WebDAVServiceStatus

func NewWebDAVServiceStatus

func NewWebDAVServiceStatus() *WebDAVServiceStatus

NewWebDAVServiceStatus instantiates a new WebDAVServiceStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewWebDAVServiceStatusWithDefaults

func NewWebDAVServiceStatusWithDefaults() *WebDAVServiceStatus

NewWebDAVServiceStatusWithDefaults instantiates a new WebDAVServiceStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*WebDAVServiceStatus) GetBindings

func (o *WebDAVServiceStatus) GetBindings() []WebDAVBinding

GetBindings returns the Bindings field value if set, zero value otherwise (both if not set or set to explicit null).

func (*WebDAVServiceStatus) GetBindingsOk

func (o *WebDAVServiceStatus) GetBindingsOk() ([]WebDAVBinding, bool)

GetBindingsOk returns a tuple with the Bindings field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*WebDAVServiceStatus) GetIsActive

func (o *WebDAVServiceStatus) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (*WebDAVServiceStatus) GetIsActiveOk

func (o *WebDAVServiceStatus) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WebDAVServiceStatus) HasBindings

func (o *WebDAVServiceStatus) HasBindings() bool

HasBindings returns a boolean if a field has been set.

func (*WebDAVServiceStatus) HasIsActive

func (o *WebDAVServiceStatus) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (WebDAVServiceStatus) MarshalJSON

func (o WebDAVServiceStatus) MarshalJSON() ([]byte, error)

func (*WebDAVServiceStatus) SetBindings

func (o *WebDAVServiceStatus) SetBindings(v []WebDAVBinding)

SetBindings gets a reference to the given []WebDAVBinding and assigns it to the Bindings field.

func (*WebDAVServiceStatus) SetIsActive

func (o *WebDAVServiceStatus) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

Source Files

Jump to

Keyboard shortcuts

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