cteraopenapi

package module
v0.0.0-...-b3d5ec6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for cteraopenapi

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

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 sw "./cteraopenapi"

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(), sw.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(), sw.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 identifield 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(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost:9090/v1.0

Class Method HTTP request Description
LoginApi LoginPost Post /login Get JWT from User/Password
LoginApi LogoutPost Post /logout Log out
SharesApi CteraGatewayOpenapiApiSharesAddAcl Put /shares/{name}/acl Add the ACLs of the share
SharesApi CteraGatewayOpenapiApiSharesAddScreenedFileTypes Put /shares/{name}/screened_file_types Add to the screened files types of the share
SharesApi CteraGatewayOpenapiApiSharesAddTrustedNfsClients Put /shares/{name}/trusted_nfs_clients Add the Trusted NFS Clients of the share
SharesApi CteraGatewayOpenapiApiSharesGetAcl Get /shares/{name}/acl List the ACLs of the share
SharesApi CteraGatewayOpenapiApiSharesGetScreenedFileTypes Get /shares/{name}/screened_file_types List the screened file types of the share
SharesApi CteraGatewayOpenapiApiSharesGetTrustedNfsClients Get /shares/{name}/trusted_nfs_clients List the Trusted NFS Clients of the share
SharesApi CteraGatewayOpenapiApiSharesRemoveAcl Delete /shares/{name}/acl Remove the ACL of the share
SharesApi CteraGatewayOpenapiApiSharesRemoveScreenedFileType Delete /shares/{name}/screened_file_types Remove from the screened file type of the share
SharesApi CteraGatewayOpenapiApiSharesRemoveTrustedNfsClient Delete /shares/{name}/trusted_nfs_clients Remove the Trusted NFS Client of the share
SharesApi CteraGatewayOpenapiApiSharesSetAcl Post /shares/{name}/acl Set the ACLs of the share (override the current ACL list)
SharesApi CteraGatewayOpenapiApiSharesSetScreenedFileTypes Post /shares/{name}/screened_file_types Set the list of screened file types of the share (override the current list)
SharesApi CteraGatewayOpenapiApiSharesSetTrustedNfsClients Post /shares/{name}/trusted_nfs_clients Set the Trusted NFS Clients of the share (override the current list)
SharesApi SharesGet Get /shares List all shares
SharesApi SharesNameDelete Delete /shares/{name} Delete a share
SharesApi SharesNameGet Get /shares/{name} Get the specified share
SharesApi SharesNamePut Put /shares/{name} Update existing share
SharesApi SharesPost Post /shares Create a new Share
UsersApi UsersGet Get /users List all users
UsersApi UsersPost Post /users Create a User
UsersApi UsersPut Put /users Update a user
UsersApi UsersUserNameDelete Delete /users/{userName} Delete a user
UsersApi UsersUserNameGet Get /users/{userName} Info for a specific user

Documentation For Models

Documentation For Authorization

jwt
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING")
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")
)

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 {
	LoginApi *LoginApiService

	SharesApi *SharesApiService

	UsersApi *UsersApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the CTERA Gateway API v1.0.0 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 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 AclAccess

type AclAccess string

AclAccess the model 'AclAccess'

const (
	WINDOWS_NT               AclAccess = "WindowsNT"
	ONLY_AUTHENTICATED_USERS AclAccess = "OnlyAuthenticatedUsers"
)

List of AclAccess

func NewAclAccessFromValue

func NewAclAccessFromValue(v string) (*AclAccess, error)

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

func (AclAccess) IsValid

func (v AclAccess) IsValid() bool

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

func (AclAccess) Ptr

func (v AclAccess) Ptr() *AclAccess

Ptr returns reference to AclAccess value

func (*AclAccess) UnmarshalJSON

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

type ApiCteraGatewayOpenapiApiSharesAddAclRequest

type ApiCteraGatewayOpenapiApiSharesAddAclRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesAddAclRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesAddAclRequest) ShareAccessControlEntry

type ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest

type ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest) RequestBody

type ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest

type ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest) NFSv3AccessControlEntry

type ApiCteraGatewayOpenapiApiSharesGetAclRequest

type ApiCteraGatewayOpenapiApiSharesGetAclRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesGetAclRequest) Execute

type ApiCteraGatewayOpenapiApiSharesGetScreenedFileTypesRequest

type ApiCteraGatewayOpenapiApiSharesGetScreenedFileTypesRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesGetScreenedFileTypesRequest) Execute

type ApiCteraGatewayOpenapiApiSharesGetTrustedNfsClientsRequest

type ApiCteraGatewayOpenapiApiSharesGetTrustedNfsClientsRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesGetTrustedNfsClientsRequest) Execute

type ApiCteraGatewayOpenapiApiSharesRemoveAclRequest

type ApiCteraGatewayOpenapiApiSharesRemoveAclRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesRemoveAclRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesRemoveAclRequest) PrincipalName

func (ApiCteraGatewayOpenapiApiSharesRemoveAclRequest) PrincipalType

type ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest

type ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest) FileType

type ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest

type ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest) Address

func (ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest) Netmask

type ApiCteraGatewayOpenapiApiSharesSetAclRequest

type ApiCteraGatewayOpenapiApiSharesSetAclRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesSetAclRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesSetAclRequest) ShareAccessControlEntry

type ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest

type ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest) RequestBody

type ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest

type ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest) Execute

func (ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest) NFSv3AccessControlEntry

type ApiLoginPostRequest

type ApiLoginPostRequest struct {
	ApiService *LoginApiService
	// contains filtered or unexported fields
}

func (ApiLoginPostRequest) Credentials

func (r ApiLoginPostRequest) Credentials(credentials Credentials) ApiLoginPostRequest

func (ApiLoginPostRequest) Execute

type ApiLogoutPostRequest

type ApiLogoutPostRequest struct {
	ApiService *LoginApiService
	// contains filtered or unexported fields
}

func (ApiLogoutPostRequest) Execute

func (r ApiLogoutPostRequest) Execute() (*_nethttp.Response, error)

type ApiSharesGetRequest

type ApiSharesGetRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiSharesGetRequest) Execute

func (r ApiSharesGetRequest) Execute() ([]Share, *_nethttp.Response, error)

type ApiSharesNameDeleteRequest

type ApiSharesNameDeleteRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiSharesNameDeleteRequest) Execute

type ApiSharesNameGetRequest

type ApiSharesNameGetRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiSharesNameGetRequest) Execute

type ApiSharesNamePutRequest

type ApiSharesNamePutRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiSharesNamePutRequest) Execute

func (ApiSharesNamePutRequest) Share

type ApiSharesPostRequest

type ApiSharesPostRequest struct {
	ApiService *SharesApiService
	// contains filtered or unexported fields
}

func (ApiSharesPostRequest) Execute

func (r ApiSharesPostRequest) Execute() (*_nethttp.Response, error)

func (ApiSharesPostRequest) Share

type ApiUsersGetRequest

type ApiUsersGetRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersGetRequest) Execute

func (r ApiUsersGetRequest) Execute() ([]User, *_nethttp.Response, error)

type ApiUsersPostRequest

type ApiUsersPostRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersPostRequest) Execute

func (r ApiUsersPostRequest) Execute() (*_nethttp.Response, error)

func (ApiUsersPostRequest) User

type ApiUsersPutRequest

type ApiUsersPutRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersPutRequest) Execute

func (r ApiUsersPutRequest) Execute() (*_nethttp.Response, error)

func (ApiUsersPutRequest) User

type ApiUsersUserNameDeleteRequest

type ApiUsersUserNameDeleteRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersUserNameDeleteRequest) Execute

type ApiUsersUserNameGetRequest

type ApiUsersUserNameGetRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiUsersUserNameGetRequest) Execute

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 ClientSideCaching

type ClientSideCaching string

ClientSideCaching the model 'ClientSideCaching'

const (
	MANUAL    ClientSideCaching = "Manual"
	DOCUMENTS ClientSideCaching = "Documents"
	DISABLED  ClientSideCaching = "Disabled"
)

List of ClientSideCaching

func NewClientSideCachingFromValue

func NewClientSideCachingFromValue(v string) (*ClientSideCaching, error)

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

func (ClientSideCaching) IsValid

func (v ClientSideCaching) IsValid() bool

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

func (ClientSideCaching) Ptr

Ptr returns reference to ClientSideCaching value

func (*ClientSideCaching) UnmarshalJSON

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

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 Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Credentials struct for Credentials

func NewCredentials

func NewCredentials(username string, password string) *Credentials

NewCredentials instantiates a new Credentials 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 NewCredentialsWithDefaults

func NewCredentialsWithDefaults() *Credentials

NewCredentialsWithDefaults instantiates a new Credentials 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 (*Credentials) GetPassword

func (o *Credentials) GetPassword() string

GetPassword returns the Password field value

func (*Credentials) GetPasswordOk

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

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

func (*Credentials) GetUsername

func (o *Credentials) GetUsername() string

GetUsername returns the Username field value

func (*Credentials) GetUsernameOk

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

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

func (Credentials) MarshalJSON

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

func (*Credentials) SetPassword

func (o *Credentials) SetPassword(v string)

SetPassword sets field value

func (*Credentials) SetUsername

func (o *Credentials) SetUsername(v string)

SetUsername sets field value

type ErrorMessage

type ErrorMessage struct {
	Status int32   `json:"status"`
	Type   *string `json:"type,omitempty"`
	Title  *string `json:"title,omitempty"`
	Detail *string `json:"detail,omitempty"`
}

ErrorMessage struct for ErrorMessage

func NewErrorMessage

func NewErrorMessage(status int32) *ErrorMessage

NewErrorMessage instantiates a new ErrorMessage 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 NewErrorMessageWithDefaults

func NewErrorMessageWithDefaults() *ErrorMessage

NewErrorMessageWithDefaults instantiates a new ErrorMessage 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 (*ErrorMessage) GetDetail

func (o *ErrorMessage) GetDetail() string

GetDetail returns the Detail field value if set, zero value otherwise.

func (*ErrorMessage) GetDetailOk

func (o *ErrorMessage) GetDetailOk() (*string, bool)

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

func (*ErrorMessage) GetStatus

func (o *ErrorMessage) GetStatus() int32

GetStatus returns the Status field value

func (*ErrorMessage) GetStatusOk

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

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

func (*ErrorMessage) GetTitle

func (o *ErrorMessage) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*ErrorMessage) GetTitleOk

func (o *ErrorMessage) GetTitleOk() (*string, bool)

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

func (*ErrorMessage) GetType

func (o *ErrorMessage) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*ErrorMessage) GetTypeOk

func (o *ErrorMessage) GetTypeOk() (*string, bool)

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

func (*ErrorMessage) HasDetail

func (o *ErrorMessage) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*ErrorMessage) HasTitle

func (o *ErrorMessage) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ErrorMessage) HasType

func (o *ErrorMessage) HasType() bool

HasType returns a boolean if a field has been set.

func (ErrorMessage) MarshalJSON

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

func (*ErrorMessage) SetDetail

func (o *ErrorMessage) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*ErrorMessage) SetStatus

func (o *ErrorMessage) SetStatus(v int32)

SetStatus sets field value

func (*ErrorMessage) SetTitle

func (o *ErrorMessage) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*ErrorMessage) SetType

func (o *ErrorMessage) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type FileAccessMode

type FileAccessMode string

FileAccessMode the model 'FileAccessMode'

const (
	RW FileAccessMode = "RW"
	RO FileAccessMode = "RO"
	NA FileAccessMode = "NA"
)

List of FileAccessMode

func NewFileAccessModeFromValue

func NewFileAccessModeFromValue(v string) (*FileAccessMode, error)

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

func (FileAccessMode) IsValid

func (v FileAccessMode) IsValid() bool

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

func (FileAccessMode) Ptr

func (v FileAccessMode) Ptr() *FileAccessMode

Ptr returns reference to FileAccessMode value

func (*FileAccessMode) UnmarshalJSON

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

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 LoginApiService

type LoginApiService service

LoginApiService LoginApi service

func (*LoginApiService) LoginPost

* LoginPost Get JWT from User/Password * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiLoginPostRequest

func (*LoginApiService) LoginPostExecute

func (a *LoginApiService) LoginPostExecute(r ApiLoginPostRequest) (string, *_nethttp.Response, error)

* Execute executes the request * @return string

func (*LoginApiService) LogoutPost

* LogoutPost Log out * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiLogoutPostRequest

func (*LoginApiService) LogoutPostExecute

func (a *LoginApiService) LogoutPostExecute(r ApiLogoutPostRequest) (*_nethttp.Response, error)

* Execute executes the request

type NFSv3AccessControlEntry

type NFSv3AccessControlEntry struct {
	Address string         `json:"address"`
	Netmask string         `json:"netmask"`
	Perm    FileAccessMode `json:"perm"`
}

NFSv3AccessControlEntry struct for NFSv3AccessControlEntry

func NewNFSv3AccessControlEntry

func NewNFSv3AccessControlEntry(address string, netmask string, perm FileAccessMode) *NFSv3AccessControlEntry

NewNFSv3AccessControlEntry instantiates a new NFSv3AccessControlEntry 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 NewNFSv3AccessControlEntryWithDefaults

func NewNFSv3AccessControlEntryWithDefaults() *NFSv3AccessControlEntry

NewNFSv3AccessControlEntryWithDefaults instantiates a new NFSv3AccessControlEntry 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 (*NFSv3AccessControlEntry) GetAddress

func (o *NFSv3AccessControlEntry) GetAddress() string

GetAddress returns the Address field value

func (*NFSv3AccessControlEntry) GetAddressOk

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

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

func (*NFSv3AccessControlEntry) GetNetmask

func (o *NFSv3AccessControlEntry) GetNetmask() string

GetNetmask returns the Netmask field value

func (*NFSv3AccessControlEntry) GetNetmaskOk

func (o *NFSv3AccessControlEntry) GetNetmaskOk() (*string, bool)

GetNetmaskOk returns a tuple with the Netmask field value and a boolean to check if the value has been set.

func (*NFSv3AccessControlEntry) GetPerm

GetPerm returns the Perm field value

func (*NFSv3AccessControlEntry) GetPermOk

func (o *NFSv3AccessControlEntry) GetPermOk() (*FileAccessMode, bool)

GetPermOk returns a tuple with the Perm field value and a boolean to check if the value has been set.

func (NFSv3AccessControlEntry) MarshalJSON

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

func (*NFSv3AccessControlEntry) SetAddress

func (o *NFSv3AccessControlEntry) SetAddress(v string)

SetAddress sets field value

func (*NFSv3AccessControlEntry) SetNetmask

func (o *NFSv3AccessControlEntry) SetNetmask(v string)

SetNetmask sets field value

func (*NFSv3AccessControlEntry) SetPerm

SetPerm sets field value

type NullableAclAccess

type NullableAclAccess struct {
	// contains filtered or unexported fields
}

func NewNullableAclAccess

func NewNullableAclAccess(val *AclAccess) *NullableAclAccess

func (NullableAclAccess) Get

func (v NullableAclAccess) Get() *AclAccess

func (NullableAclAccess) IsSet

func (v NullableAclAccess) IsSet() bool

func (NullableAclAccess) MarshalJSON

func (v NullableAclAccess) MarshalJSON() ([]byte, error)

func (*NullableAclAccess) Set

func (v *NullableAclAccess) Set(val *AclAccess)

func (*NullableAclAccess) UnmarshalJSON

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

func (*NullableAclAccess) Unset

func (v *NullableAclAccess) 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 NullableClientSideCaching

type NullableClientSideCaching struct {
	// contains filtered or unexported fields
}

func NewNullableClientSideCaching

func NewNullableClientSideCaching(val *ClientSideCaching) *NullableClientSideCaching

func (NullableClientSideCaching) Get

func (NullableClientSideCaching) IsSet

func (v NullableClientSideCaching) IsSet() bool

func (NullableClientSideCaching) MarshalJSON

func (v NullableClientSideCaching) MarshalJSON() ([]byte, error)

func (*NullableClientSideCaching) Set

func (*NullableClientSideCaching) UnmarshalJSON

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

func (*NullableClientSideCaching) Unset

func (v *NullableClientSideCaching) Unset()

type NullableCredentials

type NullableCredentials struct {
	// contains filtered or unexported fields
}

func NewNullableCredentials

func NewNullableCredentials(val *Credentials) *NullableCredentials

func (NullableCredentials) Get

func (NullableCredentials) IsSet

func (v NullableCredentials) IsSet() bool

func (NullableCredentials) MarshalJSON

func (v NullableCredentials) MarshalJSON() ([]byte, error)

func (*NullableCredentials) Set

func (v *NullableCredentials) Set(val *Credentials)

func (*NullableCredentials) UnmarshalJSON

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

func (*NullableCredentials) Unset

func (v *NullableCredentials) Unset()

type NullableErrorMessage

type NullableErrorMessage struct {
	// contains filtered or unexported fields
}

func NewNullableErrorMessage

func NewNullableErrorMessage(val *ErrorMessage) *NullableErrorMessage

func (NullableErrorMessage) Get

func (NullableErrorMessage) IsSet

func (v NullableErrorMessage) IsSet() bool

func (NullableErrorMessage) MarshalJSON

func (v NullableErrorMessage) MarshalJSON() ([]byte, error)

func (*NullableErrorMessage) Set

func (v *NullableErrorMessage) Set(val *ErrorMessage)

func (*NullableErrorMessage) UnmarshalJSON

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

func (*NullableErrorMessage) Unset

func (v *NullableErrorMessage) Unset()

type NullableFileAccessMode

type NullableFileAccessMode struct {
	// contains filtered or unexported fields
}

func NewNullableFileAccessMode

func NewNullableFileAccessMode(val *FileAccessMode) *NullableFileAccessMode

func (NullableFileAccessMode) Get

func (NullableFileAccessMode) IsSet

func (v NullableFileAccessMode) IsSet() bool

func (NullableFileAccessMode) MarshalJSON

func (v NullableFileAccessMode) MarshalJSON() ([]byte, error)

func (*NullableFileAccessMode) Set

func (*NullableFileAccessMode) UnmarshalJSON

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

func (*NullableFileAccessMode) Unset

func (v *NullableFileAccessMode) 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 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 NullableNFSv3AccessControlEntry

type NullableNFSv3AccessControlEntry struct {
	// contains filtered or unexported fields
}

func (NullableNFSv3AccessControlEntry) Get

func (NullableNFSv3AccessControlEntry) IsSet

func (NullableNFSv3AccessControlEntry) MarshalJSON

func (v NullableNFSv3AccessControlEntry) MarshalJSON() ([]byte, error)

func (*NullableNFSv3AccessControlEntry) Set

func (*NullableNFSv3AccessControlEntry) UnmarshalJSON

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

func (*NullableNFSv3AccessControlEntry) Unset

type NullablePrincipalType

type NullablePrincipalType struct {
	// contains filtered or unexported fields
}

func NewNullablePrincipalType

func NewNullablePrincipalType(val *PrincipalType) *NullablePrincipalType

func (NullablePrincipalType) Get

func (NullablePrincipalType) IsSet

func (v NullablePrincipalType) IsSet() bool

func (NullablePrincipalType) MarshalJSON

func (v NullablePrincipalType) MarshalJSON() ([]byte, error)

func (*NullablePrincipalType) Set

func (v *NullablePrincipalType) Set(val *PrincipalType)

func (*NullablePrincipalType) UnmarshalJSON

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

func (*NullablePrincipalType) Unset

func (v *NullablePrincipalType) 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 NullableShareAccessControlEntry

type NullableShareAccessControlEntry struct {
	// contains filtered or unexported fields
}

func (NullableShareAccessControlEntry) Get

func (NullableShareAccessControlEntry) IsSet

func (NullableShareAccessControlEntry) MarshalJSON

func (v NullableShareAccessControlEntry) MarshalJSON() ([]byte, error)

func (*NullableShareAccessControlEntry) Set

func (*NullableShareAccessControlEntry) UnmarshalJSON

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

func (*NullableShareAccessControlEntry) 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 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 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 PrincipalType

type PrincipalType string

PrincipalType the model 'PrincipalType'

const (
	LU PrincipalType = "LU"
	LG PrincipalType = "LG"
	DU PrincipalType = "DU"
	DG PrincipalType = "DG"
)

List of PrincipalType

func NewPrincipalTypeFromValue

func NewPrincipalTypeFromValue(v string) (*PrincipalType, error)

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

func (PrincipalType) IsValid

func (v PrincipalType) IsValid() bool

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

func (PrincipalType) Ptr

func (v PrincipalType) Ptr() *PrincipalType

Ptr returns reference to PrincipalType value

func (*PrincipalType) UnmarshalJSON

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

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 Share

type Share struct {
	Name              string                     `json:"name"`
	Directory         *string                    `json:"directory,omitempty"`
	Acl               *[]ShareAccessControlEntry `json:"acl,omitempty"`
	Access            *AclAccess                 `json:"access,omitempty"`
	ClientSideCaching *ClientSideCaching         `json:"client_side_caching,omitempty"`
	DirPermissions    *int32                     `json:"dir_permissions,omitempty"`
	Comment           *string                    `json:"comment,omitempty"`
	ExportToAfp       *bool                      `json:"export_to_afp,omitempty"`
	ExportToFtp       *bool                      `json:"export_to_ftp,omitempty"`
	ExportToNfs       *bool                      `json:"export_to_nfs,omitempty"`
	ExportToPcAgent   *bool                      `json:"export_to_pc_agent,omitempty"`
	ExportToRsync     *bool                      `json:"export_to_rsync,omitempty"`
	Indexed           *bool                      `json:"indexed,omitempty"`
	TrustedNfsClients *[]NFSv3AccessControlEntry `json:"trusted_nfs_clients,omitempty"`
}

Share struct for Share

func NewShare

func NewShare(name string) *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) GetAccess

func (o *Share) GetAccess() AclAccess

GetAccess returns the Access field value if set, zero value otherwise.

func (*Share) GetAccessOk

func (o *Share) GetAccessOk() (*AclAccess, bool)

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

func (*Share) GetAcl

func (o *Share) GetAcl() []ShareAccessControlEntry

GetAcl returns the Acl field value if set, zero value otherwise.

func (*Share) GetAclOk

func (o *Share) GetAclOk() (*[]ShareAccessControlEntry, 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 (*Share) GetClientSideCaching

func (o *Share) GetClientSideCaching() ClientSideCaching

GetClientSideCaching returns the ClientSideCaching field value if set, zero value otherwise.

func (*Share) GetClientSideCachingOk

func (o *Share) GetClientSideCachingOk() (*ClientSideCaching, bool)

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

func (*Share) GetComment

func (o *Share) GetComment() string

GetComment returns the Comment field value if set, zero value otherwise.

func (*Share) GetCommentOk

func (o *Share) GetCommentOk() (*string, bool)

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

func (*Share) GetDirPermissions

func (o *Share) GetDirPermissions() int32

GetDirPermissions returns the DirPermissions field value if set, zero value otherwise.

func (*Share) GetDirPermissionsOk

func (o *Share) GetDirPermissionsOk() (*int32, bool)

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

func (*Share) GetDirectory

func (o *Share) GetDirectory() string

GetDirectory returns the Directory field value if set, zero value otherwise.

func (*Share) GetDirectoryOk

func (o *Share) GetDirectoryOk() (*string, bool)

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

func (*Share) GetExportToAfp

func (o *Share) GetExportToAfp() bool

GetExportToAfp returns the ExportToAfp field value if set, zero value otherwise.

func (*Share) GetExportToAfpOk

func (o *Share) GetExportToAfpOk() (*bool, bool)

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

func (*Share) GetExportToFtp

func (o *Share) GetExportToFtp() bool

GetExportToFtp returns the ExportToFtp field value if set, zero value otherwise.

func (*Share) GetExportToFtpOk

func (o *Share) GetExportToFtpOk() (*bool, bool)

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

func (*Share) GetExportToNfs

func (o *Share) GetExportToNfs() bool

GetExportToNfs returns the ExportToNfs field value if set, zero value otherwise.

func (*Share) GetExportToNfsOk

func (o *Share) GetExportToNfsOk() (*bool, bool)

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

func (*Share) GetExportToPcAgent

func (o *Share) GetExportToPcAgent() bool

GetExportToPcAgent returns the ExportToPcAgent field value if set, zero value otherwise.

func (*Share) GetExportToPcAgentOk

func (o *Share) GetExportToPcAgentOk() (*bool, bool)

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

func (*Share) GetExportToRsync

func (o *Share) GetExportToRsync() bool

GetExportToRsync returns the ExportToRsync field value if set, zero value otherwise.

func (*Share) GetExportToRsyncOk

func (o *Share) GetExportToRsyncOk() (*bool, bool)

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

func (*Share) GetIndexed

func (o *Share) GetIndexed() bool

GetIndexed returns the Indexed field value if set, zero value otherwise.

func (*Share) GetIndexedOk

func (o *Share) GetIndexedOk() (*bool, bool)

GetIndexedOk returns a tuple with the Indexed 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

func (*Share) GetNameOk

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

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

func (*Share) GetTrustedNfsClients

func (o *Share) GetTrustedNfsClients() []NFSv3AccessControlEntry

GetTrustedNfsClients returns the TrustedNfsClients field value if set, zero value otherwise.

func (*Share) GetTrustedNfsClientsOk

func (o *Share) GetTrustedNfsClientsOk() (*[]NFSv3AccessControlEntry, bool)

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

func (*Share) HasAccess

func (o *Share) HasAccess() bool

HasAccess returns a boolean if a field has been set.

func (*Share) HasAcl

func (o *Share) HasAcl() bool

HasAcl returns a boolean if a field has been set.

func (*Share) HasClientSideCaching

func (o *Share) HasClientSideCaching() bool

HasClientSideCaching returns a boolean if a field has been set.

func (*Share) HasComment

func (o *Share) HasComment() bool

HasComment returns a boolean if a field has been set.

func (*Share) HasDirPermissions

func (o *Share) HasDirPermissions() bool

HasDirPermissions returns a boolean if a field has been set.

func (*Share) HasDirectory

func (o *Share) HasDirectory() bool

HasDirectory returns a boolean if a field has been set.

func (*Share) HasExportToAfp

func (o *Share) HasExportToAfp() bool

HasExportToAfp returns a boolean if a field has been set.

func (*Share) HasExportToFtp

func (o *Share) HasExportToFtp() bool

HasExportToFtp returns a boolean if a field has been set.

func (*Share) HasExportToNfs

func (o *Share) HasExportToNfs() bool

HasExportToNfs returns a boolean if a field has been set.

func (*Share) HasExportToPcAgent

func (o *Share) HasExportToPcAgent() bool

HasExportToPcAgent returns a boolean if a field has been set.

func (*Share) HasExportToRsync

func (o *Share) HasExportToRsync() bool

HasExportToRsync returns a boolean if a field has been set.

func (*Share) HasIndexed

func (o *Share) HasIndexed() bool

HasIndexed returns a boolean if a field has been set.

func (*Share) HasTrustedNfsClients

func (o *Share) HasTrustedNfsClients() bool

HasTrustedNfsClients returns a boolean if a field has been set.

func (Share) MarshalJSON

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

func (*Share) SetAccess

func (o *Share) SetAccess(v AclAccess)

SetAccess gets a reference to the given AclAccess and assigns it to the Access field.

func (*Share) SetAcl

func (o *Share) SetAcl(v []ShareAccessControlEntry)

SetAcl gets a reference to the given []ShareAccessControlEntry and assigns it to the Acl field.

func (*Share) SetClientSideCaching

func (o *Share) SetClientSideCaching(v ClientSideCaching)

SetClientSideCaching gets a reference to the given ClientSideCaching and assigns it to the ClientSideCaching field.

func (*Share) SetComment

func (o *Share) SetComment(v string)

SetComment gets a reference to the given string and assigns it to the Comment field.

func (*Share) SetDirPermissions

func (o *Share) SetDirPermissions(v int32)

SetDirPermissions gets a reference to the given int32 and assigns it to the DirPermissions field.

func (*Share) SetDirectory

func (o *Share) SetDirectory(v string)

SetDirectory gets a reference to the given string and assigns it to the Directory field.

func (*Share) SetExportToAfp

func (o *Share) SetExportToAfp(v bool)

SetExportToAfp gets a reference to the given bool and assigns it to the ExportToAfp field.

func (*Share) SetExportToFtp

func (o *Share) SetExportToFtp(v bool)

SetExportToFtp gets a reference to the given bool and assigns it to the ExportToFtp field.

func (*Share) SetExportToNfs

func (o *Share) SetExportToNfs(v bool)

SetExportToNfs gets a reference to the given bool and assigns it to the ExportToNfs field.

func (*Share) SetExportToPcAgent

func (o *Share) SetExportToPcAgent(v bool)

SetExportToPcAgent gets a reference to the given bool and assigns it to the ExportToPcAgent field.

func (*Share) SetExportToRsync

func (o *Share) SetExportToRsync(v bool)

SetExportToRsync gets a reference to the given bool and assigns it to the ExportToRsync field.

func (*Share) SetIndexed

func (o *Share) SetIndexed(v bool)

SetIndexed gets a reference to the given bool and assigns it to the Indexed field.

func (*Share) SetName

func (o *Share) SetName(v string)

SetName sets field value

func (*Share) SetTrustedNfsClients

func (o *Share) SetTrustedNfsClients(v []NFSv3AccessControlEntry)

SetTrustedNfsClients gets a reference to the given []NFSv3AccessControlEntry and assigns it to the TrustedNfsClients field.

type ShareAccessControlEntry

type ShareAccessControlEntry struct {
	PrincipalType PrincipalType  `json:"principal_type"`
	Name          string         `json:"name"`
	Perm          FileAccessMode `json:"perm"`
}

ShareAccessControlEntry struct for ShareAccessControlEntry

func NewShareAccessControlEntry

func NewShareAccessControlEntry(principalType PrincipalType, name string, perm FileAccessMode) *ShareAccessControlEntry

NewShareAccessControlEntry instantiates a new ShareAccessControlEntry 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 NewShareAccessControlEntryWithDefaults

func NewShareAccessControlEntryWithDefaults() *ShareAccessControlEntry

NewShareAccessControlEntryWithDefaults instantiates a new ShareAccessControlEntry 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 (*ShareAccessControlEntry) GetName

func (o *ShareAccessControlEntry) GetName() string

GetName returns the Name field value

func (*ShareAccessControlEntry) GetNameOk

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

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

func (*ShareAccessControlEntry) GetPerm

GetPerm returns the Perm field value

func (*ShareAccessControlEntry) GetPermOk

func (o *ShareAccessControlEntry) GetPermOk() (*FileAccessMode, bool)

GetPermOk returns a tuple with the Perm field value and a boolean to check if the value has been set.

func (*ShareAccessControlEntry) GetPrincipalType

func (o *ShareAccessControlEntry) GetPrincipalType() PrincipalType

GetPrincipalType returns the PrincipalType field value

func (*ShareAccessControlEntry) GetPrincipalTypeOk

func (o *ShareAccessControlEntry) GetPrincipalTypeOk() (*PrincipalType, bool)

GetPrincipalTypeOk returns a tuple with the PrincipalType field value and a boolean to check if the value has been set.

func (ShareAccessControlEntry) MarshalJSON

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

func (*ShareAccessControlEntry) SetName

func (o *ShareAccessControlEntry) SetName(v string)

SetName sets field value

func (*ShareAccessControlEntry) SetPerm

SetPerm sets field value

func (*ShareAccessControlEntry) SetPrincipalType

func (o *ShareAccessControlEntry) SetPrincipalType(v PrincipalType)

SetPrincipalType sets field value

type SharesApiService

type SharesApiService service

SharesApiService SharesApi service

func (*SharesApiService) CteraGatewayOpenapiApiSharesAddAcl

func (a *SharesApiService) CteraGatewayOpenapiApiSharesAddAcl(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesAddAclRequest

* CteraGatewayOpenapiApiSharesAddAcl Add the ACLs of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesAddAclRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesAddAclExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesAddAclExecute(r ApiCteraGatewayOpenapiApiSharesAddAclRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesAddScreenedFileTypes

func (a *SharesApiService) CteraGatewayOpenapiApiSharesAddScreenedFileTypes(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest

* CteraGatewayOpenapiApiSharesAddScreenedFileTypes Add to the screened files types of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesAddScreenedFileTypesExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesAddScreenedFileTypesExecute(r ApiCteraGatewayOpenapiApiSharesAddScreenedFileTypesRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesAddTrustedNfsClients

func (a *SharesApiService) CteraGatewayOpenapiApiSharesAddTrustedNfsClients(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest

* CteraGatewayOpenapiApiSharesAddTrustedNfsClients Add the Trusted NFS Clients of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesAddTrustedNfsClientsExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesAddTrustedNfsClientsExecute(r ApiCteraGatewayOpenapiApiSharesAddTrustedNfsClientsRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesGetAcl

func (a *SharesApiService) CteraGatewayOpenapiApiSharesGetAcl(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesGetAclRequest

* CteraGatewayOpenapiApiSharesGetAcl List the ACLs of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesGetAclRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesGetAclExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesGetAclExecute(r ApiCteraGatewayOpenapiApiSharesGetAclRequest) ([][]ShareAccessControlEntry, *_nethttp.Response, error)

* Execute executes the request * @return [][]ShareAccessControlEntry

func (*SharesApiService) CteraGatewayOpenapiApiSharesGetScreenedFileTypes

func (a *SharesApiService) CteraGatewayOpenapiApiSharesGetScreenedFileTypes(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesGetScreenedFileTypesRequest

* CteraGatewayOpenapiApiSharesGetScreenedFileTypes List the screened file types of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesGetScreenedFileTypesRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesGetScreenedFileTypesExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesGetScreenedFileTypesExecute(r ApiCteraGatewayOpenapiApiSharesGetScreenedFileTypesRequest) ([]string, *_nethttp.Response, error)

* Execute executes the request * @return []string

func (*SharesApiService) CteraGatewayOpenapiApiSharesGetTrustedNfsClients

func (a *SharesApiService) CteraGatewayOpenapiApiSharesGetTrustedNfsClients(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesGetTrustedNfsClientsRequest

* CteraGatewayOpenapiApiSharesGetTrustedNfsClients List the Trusted NFS Clients of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesGetTrustedNfsClientsRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesGetTrustedNfsClientsExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesGetTrustedNfsClientsExecute(r ApiCteraGatewayOpenapiApiSharesGetTrustedNfsClientsRequest) ([][]NFSv3AccessControlEntry, *_nethttp.Response, error)

* Execute executes the request * @return [][]NFSv3AccessControlEntry

func (*SharesApiService) CteraGatewayOpenapiApiSharesRemoveAcl

func (a *SharesApiService) CteraGatewayOpenapiApiSharesRemoveAcl(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesRemoveAclRequest

* CteraGatewayOpenapiApiSharesRemoveAcl Remove the ACL of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesRemoveAclRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesRemoveAclExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesRemoveAclExecute(r ApiCteraGatewayOpenapiApiSharesRemoveAclRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesRemoveScreenedFileType

func (a *SharesApiService) CteraGatewayOpenapiApiSharesRemoveScreenedFileType(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest

* CteraGatewayOpenapiApiSharesRemoveScreenedFileType Remove from the screened file type of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesRemoveScreenedFileTypeExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesRemoveScreenedFileTypeExecute(r ApiCteraGatewayOpenapiApiSharesRemoveScreenedFileTypeRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesRemoveTrustedNfsClient

func (a *SharesApiService) CteraGatewayOpenapiApiSharesRemoveTrustedNfsClient(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest

* CteraGatewayOpenapiApiSharesRemoveTrustedNfsClient Remove the Trusted NFS Client of the share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesRemoveTrustedNfsClientExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesRemoveTrustedNfsClientExecute(r ApiCteraGatewayOpenapiApiSharesRemoveTrustedNfsClientRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesSetAcl

func (a *SharesApiService) CteraGatewayOpenapiApiSharesSetAcl(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesSetAclRequest

* CteraGatewayOpenapiApiSharesSetAcl Set the ACLs of the share (override the current ACL list) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesSetAclRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesSetAclExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesSetAclExecute(r ApiCteraGatewayOpenapiApiSharesSetAclRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesSetScreenedFileTypes

func (a *SharesApiService) CteraGatewayOpenapiApiSharesSetScreenedFileTypes(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest

* CteraGatewayOpenapiApiSharesSetScreenedFileTypes Set the list of screened file types of the share (override the current list) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesSetScreenedFileTypesExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesSetScreenedFileTypesExecute(r ApiCteraGatewayOpenapiApiSharesSetScreenedFileTypesRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) CteraGatewayOpenapiApiSharesSetTrustedNfsClients

func (a *SharesApiService) CteraGatewayOpenapiApiSharesSetTrustedNfsClients(ctx _context.Context, name string) ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest

* CteraGatewayOpenapiApiSharesSetTrustedNfsClients Set the Trusted NFS Clients of the share (override the current list) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share * @return ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest

func (*SharesApiService) CteraGatewayOpenapiApiSharesSetTrustedNfsClientsExecute

func (a *SharesApiService) CteraGatewayOpenapiApiSharesSetTrustedNfsClientsExecute(r ApiCteraGatewayOpenapiApiSharesSetTrustedNfsClientsRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) SharesGet

* SharesGet List all shares * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiSharesGetRequest

func (*SharesApiService) SharesGetExecute

func (a *SharesApiService) SharesGetExecute(r ApiSharesGetRequest) ([]Share, *_nethttp.Response, error)

* Execute executes the request * @return []Share

func (*SharesApiService) SharesNameDelete

func (a *SharesApiService) SharesNameDelete(ctx _context.Context, name string) ApiSharesNameDeleteRequest

* SharesNameDelete Delete a share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share to delete * @return ApiSharesNameDeleteRequest

func (*SharesApiService) SharesNameDeleteExecute

func (a *SharesApiService) SharesNameDeleteExecute(r ApiSharesNameDeleteRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) SharesNameGet

func (a *SharesApiService) SharesNameGet(ctx _context.Context, name string) ApiSharesNameGetRequest

* SharesNameGet Get the specified share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share to retrieve * @return ApiSharesNameGetRequest

func (*SharesApiService) SharesNameGetExecute

func (a *SharesApiService) SharesNameGetExecute(r ApiSharesNameGetRequest) (Share, *_nethttp.Response, error)

* Execute executes the request * @return Share

func (*SharesApiService) SharesNamePut

func (a *SharesApiService) SharesNamePut(ctx _context.Context, name string) ApiSharesNamePutRequest

* SharesNamePut Update existing share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name The name of the share to update * @return ApiSharesNamePutRequest

func (*SharesApiService) SharesNamePutExecute

func (a *SharesApiService) SharesNamePutExecute(r ApiSharesNamePutRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SharesApiService) SharesPost

* SharesPost Create a new Share * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiSharesPostRequest

func (*SharesApiService) SharesPostExecute

func (a *SharesApiService) SharesPostExecute(r ApiSharesPostRequest) (*_nethttp.Response, error)

* Execute executes the request

type User

type User struct {
	Uuid     *string `json:"_uuid,omitempty"`
	Uid      *int32  `json:"uid,omitempty"`
	Username string  `json:"username"`
	FullName *string `json:"fullName,omitempty"`
	Email    *string `json:"email,omitempty"`
	Password *string `json:"password,omitempty"`
}

User struct for User

func NewUser

func NewUser(username string) *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) 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) GetFullName

func (o *User) GetFullName() string

GetFullName returns the FullName field value if set, zero value otherwise.

func (*User) GetFullNameOk

func (o *User) GetFullNameOk() (*string, bool)

GetFullNameOk returns a tuple with the FullName 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) 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) GetUsername

func (o *User) GetUsername() string

GetUsername returns the Username field value

func (*User) GetUsernameOk

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

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

func (*User) GetUuid

func (o *User) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*User) GetUuidOk

func (o *User) GetUuidOk() (*string, bool)

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

func (*User) HasEmail

func (o *User) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*User) HasFullName

func (o *User) HasFullName() bool

HasFullName 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) HasUid

func (o *User) HasUid() bool

HasUid returns a boolean if a field has been set.

func (*User) HasUuid

func (o *User) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (User) MarshalJSON

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

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) SetFullName

func (o *User) SetFullName(v string)

SetFullName gets a reference to the given string and assigns it to the FullName 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) SetUid

func (o *User) SetUid(v int32)

SetUid gets a reference to the given int32 and assigns it to the Uid field.

func (*User) SetUsername

func (o *User) SetUsername(v string)

SetUsername sets field value

func (*User) SetUuid

func (o *User) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type UsersApiService

type UsersApiService service

UsersApiService UsersApi service

func (*UsersApiService) UsersGet

* UsersGet List all users * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiUsersGetRequest

func (*UsersApiService) UsersGetExecute

func (a *UsersApiService) UsersGetExecute(r ApiUsersGetRequest) ([]User, *_nethttp.Response, error)

* Execute executes the request * @return []User

func (*UsersApiService) UsersPost

* UsersPost Create a User * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiUsersPostRequest

func (*UsersApiService) UsersPostExecute

func (a *UsersApiService) UsersPostExecute(r ApiUsersPostRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*UsersApiService) UsersPut

* UsersPut Update a user * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiUsersPutRequest

func (*UsersApiService) UsersPutExecute

func (a *UsersApiService) UsersPutExecute(r ApiUsersPutRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*UsersApiService) UsersUserNameDelete

func (a *UsersApiService) UsersUserNameDelete(ctx _context.Context, userName string) ApiUsersUserNameDeleteRequest

* UsersUserNameDelete Delete a user * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param userName The username of the user to retrieve * @return ApiUsersUserNameDeleteRequest

func (*UsersApiService) UsersUserNameDeleteExecute

func (a *UsersApiService) UsersUserNameDeleteExecute(r ApiUsersUserNameDeleteRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*UsersApiService) UsersUserNameGet

func (a *UsersApiService) UsersUserNameGet(ctx _context.Context, userName string) ApiUsersUserNameGetRequest

* UsersUserNameGet Info for a specific user * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param userName The username of the user to retrieve * @return ApiUsersUserNameGetRequest

func (*UsersApiService) UsersUserNameGetExecute

func (a *UsersApiService) UsersUserNameGetExecute(r ApiUsersUserNameGetRequest) (User, *_nethttp.Response, error)

* Execute executes the request * @return User

Jump to

Keyboard shortcuts

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