Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AdvPowermgmt
- type ApiGetDiskRequest
- type ApiListDisksRequest
- func (r ApiListDisksRequest) Count(count bool) ApiListDisksRequest
- func (r ApiListDisksRequest) Execute() ([]Disk, *http.Response, error)
- func (r ApiListDisksRequest) ExtraIncludeExpired(extraIncludeExpired bool) ApiListDisksRequest
- func (r ApiListDisksRequest) ExtraPasswords(extraPasswords bool) ApiListDisksRequest
- func (r ApiListDisksRequest) ExtraPools(extraPools bool) ApiListDisksRequest
- func (r ApiListDisksRequest) ExtraSupportsSmart(extraSupportsSmart bool) ApiListDisksRequest
- func (r ApiListDisksRequest) Limit(limit int32) ApiListDisksRequest
- func (r ApiListDisksRequest) Offset(offset int32) ApiListDisksRequest
- func (r ApiListDisksRequest) Sort(sort string) ApiListDisksRequest
- type ApiListPoolsRequest
- func (r ApiListPoolsRequest) Count(count bool) ApiListPoolsRequest
- func (r ApiListPoolsRequest) Execute() ([]Pool, *http.Response, error)
- func (r ApiListPoolsRequest) Limit(limit int32) ApiListPoolsRequest
- func (r ApiListPoolsRequest) Offset(offset int32) ApiListPoolsRequest
- func (r ApiListPoolsRequest) Sort(sort string) ApiListPoolsRequest
- type ApiUpdateDiskRequest
- type BasicAuth
- type Configuration
- type Device
- func (o *Device) GetChildren() []map[string]interface{}
- func (o *Device) GetChildrenOk() ([]map[string]interface{}, bool)
- func (o *Device) GetDevice() string
- func (o *Device) GetDeviceOk() (*string, bool)
- func (o *Device) GetDisk() string
- func (o *Device) GetDiskOk() (*string, bool)
- func (o *Device) GetGuid() string
- func (o *Device) GetGuidOk() (*string, bool)
- func (o *Device) GetName() string
- func (o *Device) GetNameOk() (*string, bool)
- func (o *Device) GetPath() string
- func (o *Device) GetPathOk() (*string, bool)
- func (o *Device) GetStats() map[string]interface{}
- func (o *Device) GetStatsOk() (map[string]interface{}, bool)
- func (o *Device) GetStatus() string
- func (o *Device) GetStatusOk() (*string, bool)
- func (o *Device) GetUnavailDisk() map[string]interface{}
- func (o *Device) GetUnavailDiskOk() (map[string]interface{}, bool)
- func (o *Device) HasChildren() bool
- func (o *Device) HasDevice() bool
- func (o *Device) HasDisk() bool
- func (o *Device) HasGuid() bool
- func (o *Device) HasName() bool
- func (o *Device) HasPath() bool
- func (o *Device) HasStats() bool
- func (o *Device) HasStatus() bool
- func (o *Device) HasUnavailDisk() bool
- func (o Device) MarshalJSON() ([]byte, error)
- func (o *Device) SetChildren(v []map[string]interface{})
- func (o *Device) SetDevice(v string)
- func (o *Device) SetDisk(v string)
- func (o *Device) SetGuid(v string)
- func (o *Device) SetName(v string)
- func (o *Device) SetPath(v string)
- func (o *Device) SetStats(v map[string]interface{})
- func (o *Device) SetStatus(v string)
- func (o *Device) SetUnavailDisk(v map[string]interface{})
- func (o Device) ToMap() (map[string]interface{}, error)
- func (o *Device) UnmarshalJSON(bytes []byte) (err error)
- type Disk
- func (o *Disk) GetAdvpowermgmt() AdvPowermgmt
- func (o *Disk) GetAdvpowermgmtOk() (*AdvPowermgmt, bool)
- func (o *Disk) GetBus() string
- func (o *Disk) GetBusOk() (*string, bool)
- func (o *Disk) GetCritical() int32
- func (o *Disk) GetCriticalOk() (*int32, bool)
- func (o *Disk) GetDescription() string
- func (o *Disk) GetDescriptionOk() (*string, bool)
- func (o *Disk) GetDevname() string
- func (o *Disk) GetDevnameOk() (*string, bool)
- func (o *Disk) GetDifference() int32
- func (o *Disk) GetDifferenceOk() (*int32, bool)
- func (o *Disk) GetEnclosure() DiskEnclosure
- func (o *Disk) GetEnclosureOk() (*DiskEnclosure, bool)
- func (o *Disk) GetExpiretime() string
- func (o *Disk) GetExpiretimeOk() (*string, bool)
- func (o *Disk) GetHddstandby() HDDStandby
- func (o *Disk) GetHddstandbyOk() (*HDDStandby, bool)
- func (o *Disk) GetIdentifier() string
- func (o *Disk) GetIdentifierOk() (*string, bool)
- func (o *Disk) GetInformational() int32
- func (o *Disk) GetInformationalOk() (*int32, bool)
- func (o *Disk) GetKmipUid() string
- func (o *Disk) GetKmipUidOk() (*string, bool)
- func (o *Disk) GetLunid() string
- func (o *Disk) GetLunidOk() (*string, bool)
- func (o *Disk) GetModel() string
- func (o *Disk) GetModelOk() (*string, bool)
- func (o *Disk) GetName() string
- func (o *Disk) GetNameOk() (*string, bool)
- func (o *Disk) GetNumber() int32
- func (o *Disk) GetNumberOk() (*int32, bool)
- func (o *Disk) GetPasswd() string
- func (o *Disk) GetPasswdOk() (*string, bool)
- func (o *Disk) GetPool() string
- func (o *Disk) GetPoolOk() (*string, bool)
- func (o *Disk) GetRotationrate() int32
- func (o *Disk) GetRotationrateOk() (*int32, bool)
- func (o *Disk) GetSerial() string
- func (o *Disk) GetSerialOk() (*string, bool)
- func (o *Disk) GetSize() int64
- func (o *Disk) GetSizeOk() (*int64, bool)
- func (o *Disk) GetSmartoptions() string
- func (o *Disk) GetSmartoptionsOk() (*string, bool)
- func (o *Disk) GetSubsystem() string
- func (o *Disk) GetSubsystemOk() (*string, bool)
- func (o *Disk) GetSupportsSmart() bool
- func (o *Disk) GetSupportsSmartOk() (*bool, bool)
- func (o *Disk) GetTogglesmart() bool
- func (o *Disk) GetTogglesmartOk() (*bool, bool)
- func (o *Disk) GetTransfermode() string
- func (o *Disk) GetTransfermodeOk() (*string, bool)
- func (o *Disk) GetType() string
- func (o *Disk) GetTypeOk() (*string, bool)
- func (o *Disk) GetZfsGuid() string
- func (o *Disk) GetZfsGuidOk() (*string, bool)
- func (o *Disk) HasKmipUid() bool
- func (o *Disk) HasPasswd() bool
- func (o *Disk) HasSupportsSmart() bool
- func (o Disk) MarshalJSON() ([]byte, error)
- func (o *Disk) SetAdvpowermgmt(v AdvPowermgmt)
- func (o *Disk) SetBus(v string)
- func (o *Disk) SetCritical(v int32)
- func (o *Disk) SetDescription(v string)
- func (o *Disk) SetDevname(v string)
- func (o *Disk) SetDifference(v int32)
- func (o *Disk) SetEnclosure(v DiskEnclosure)
- func (o *Disk) SetExpiretime(v string)
- func (o *Disk) SetHddstandby(v HDDStandby)
- func (o *Disk) SetIdentifier(v string)
- func (o *Disk) SetInformational(v int32)
- func (o *Disk) SetKmipUid(v string)
- func (o *Disk) SetKmipUidNil()
- func (o *Disk) SetLunid(v string)
- func (o *Disk) SetModel(v string)
- func (o *Disk) SetName(v string)
- func (o *Disk) SetNumber(v int32)
- func (o *Disk) SetPasswd(v string)
- func (o *Disk) SetPool(v string)
- func (o *Disk) SetRotationrate(v int32)
- func (o *Disk) SetSerial(v string)
- func (o *Disk) SetSize(v int64)
- func (o *Disk) SetSmartoptions(v string)
- func (o *Disk) SetSubsystem(v string)
- func (o *Disk) SetSupportsSmart(v bool)
- func (o *Disk) SetSupportsSmartNil()
- func (o *Disk) SetTogglesmart(v bool)
- func (o *Disk) SetTransfermode(v string)
- func (o *Disk) SetType(v string)
- func (o *Disk) SetZfsGuid(v string)
- func (o Disk) ToMap() (map[string]interface{}, error)
- func (o *Disk) UnsetKmipUid()
- func (o *Disk) UnsetSupportsSmart()
- type DiskApiService
- func (a *DiskApiService) GetDisk(ctx context.Context, id string) ApiGetDiskRequest
- func (a *DiskApiService) GetDiskExecute(r ApiGetDiskRequest) (*Disk, *http.Response, error)
- func (a *DiskApiService) ListDisks(ctx context.Context) ApiListDisksRequest
- func (a *DiskApiService) ListDisksExecute(r ApiListDisksRequest) ([]Disk, *http.Response, error)
- func (a *DiskApiService) UpdateDisk(ctx context.Context, id string) ApiUpdateDiskRequest
- func (a *DiskApiService) UpdateDiskExecute(r ApiUpdateDiskRequest) (*Disk, *http.Response, error)
- type DiskEnclosure
- func (o *DiskEnclosure) GetNumber() int32
- func (o *DiskEnclosure) GetNumberOk() (*int32, bool)
- func (o *DiskEnclosure) GetSlot() int32
- func (o *DiskEnclosure) GetSlotOk() (*int32, bool)
- func (o *DiskEnclosure) HasNumber() bool
- func (o *DiskEnclosure) HasSlot() bool
- func (o DiskEnclosure) MarshalJSON() ([]byte, error)
- func (o *DiskEnclosure) SetNumber(v int32)
- func (o *DiskEnclosure) SetSlot(v int32)
- func (o DiskEnclosure) ToMap() (map[string]interface{}, error)
- type GenericOpenAPIError
- type HDDStandby
- type MappedNullable
- type NullableAdvPowermgmt
- func (v NullableAdvPowermgmt) Get() *AdvPowermgmt
- func (v NullableAdvPowermgmt) IsSet() bool
- func (v NullableAdvPowermgmt) MarshalJSON() ([]byte, error)
- func (v *NullableAdvPowermgmt) Set(val *AdvPowermgmt)
- func (v *NullableAdvPowermgmt) UnmarshalJSON(src []byte) error
- func (v *NullableAdvPowermgmt) Unset()
- type NullableBool
- type NullableDevice
- type NullableDisk
- type NullableDiskEnclosure
- func (v NullableDiskEnclosure) Get() *DiskEnclosure
- func (v NullableDiskEnclosure) IsSet() bool
- func (v NullableDiskEnclosure) MarshalJSON() ([]byte, error)
- func (v *NullableDiskEnclosure) Set(val *DiskEnclosure)
- func (v *NullableDiskEnclosure) UnmarshalJSON(src []byte) error
- func (v *NullableDiskEnclosure) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableHDDStandby
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullablePool
- type NullablePoolTopology
- func (v NullablePoolTopology) Get() *PoolTopology
- func (v NullablePoolTopology) IsSet() bool
- func (v NullablePoolTopology) MarshalJSON() ([]byte, error)
- func (v *NullablePoolTopology) Set(val *PoolTopology)
- func (v *NullablePoolTopology) UnmarshalJSON(src []byte) error
- func (v *NullablePoolTopology) Unset()
- type NullableString
- type NullableTime
- type NullableUpdateDiskRequest
- func (v NullableUpdateDiskRequest) Get() *UpdateDiskRequest
- func (v NullableUpdateDiskRequest) IsSet() bool
- func (v NullableUpdateDiskRequest) MarshalJSON() ([]byte, error)
- func (v *NullableUpdateDiskRequest) Set(val *UpdateDiskRequest)
- func (v *NullableUpdateDiskRequest) UnmarshalJSON(src []byte) error
- func (v *NullableUpdateDiskRequest) Unset()
- type NullableVDev
- type Pool
- func (o *Pool) GetAllocated() int64
- func (o *Pool) GetAllocatedOk() (*int64, bool)
- func (o *Pool) GetAutotrim() map[string]interface{}
- func (o *Pool) GetAutotrimOk() (map[string]interface{}, bool)
- func (o *Pool) GetEncrypt() int32
- func (o *Pool) GetEncryptOk() (*int32, bool)
- func (o *Pool) GetEncryptkey() string
- func (o *Pool) GetEncryptkeyOk() (*string, bool)
- func (o *Pool) GetEncryptkeyPath() string
- func (o *Pool) GetEncryptkeyPathOk() (*string, bool)
- func (o *Pool) GetFragmentation() string
- func (o *Pool) GetFragmentationOk() (*string, bool)
- func (o *Pool) GetFree() int64
- func (o *Pool) GetFreeOk() (*int64, bool)
- func (o *Pool) GetFreeing() int64
- func (o *Pool) GetFreeingOk() (*int64, bool)
- func (o *Pool) GetGuid() string
- func (o *Pool) GetGuidOk() (*string, bool)
- func (o *Pool) GetHealthy() bool
- func (o *Pool) GetHealthyOk() (*bool, bool)
- func (o *Pool) GetId() int32
- func (o *Pool) GetIdOk() (*int32, bool)
- func (o *Pool) GetIsDecrypted() bool
- func (o *Pool) GetIsDecryptedOk() (*bool, bool)
- func (o *Pool) GetIsUpgraded() bool
- func (o *Pool) GetIsUpgradedOk() (*bool, bool)
- func (o *Pool) GetName() string
- func (o *Pool) GetNameOk() (*string, bool)
- func (o *Pool) GetPath() string
- func (o *Pool) GetPathOk() (*string, bool)
- func (o *Pool) GetScan() map[string]interface{}
- func (o *Pool) GetScanOk() (map[string]interface{}, bool)
- func (o *Pool) GetSize() int64
- func (o *Pool) GetSizeOk() (*int64, bool)
- func (o *Pool) GetStatus() string
- func (o *Pool) GetStatusDetail() string
- func (o *Pool) GetStatusDetailOk() (*string, bool)
- func (o *Pool) GetStatusOk() (*string, bool)
- func (o *Pool) GetTopology() PoolTopology
- func (o *Pool) GetTopologyOk() (*PoolTopology, bool)
- func (o *Pool) GetWarning() bool
- func (o *Pool) GetWarningOk() (*bool, bool)
- func (o *Pool) HasIsUpgraded() bool
- func (o Pool) MarshalJSON() ([]byte, error)
- func (o *Pool) SetAllocated(v int64)
- func (o *Pool) SetAutotrim(v map[string]interface{})
- func (o *Pool) SetEncrypt(v int32)
- func (o *Pool) SetEncryptkey(v string)
- func (o *Pool) SetEncryptkeyPath(v string)
- func (o *Pool) SetFragmentation(v string)
- func (o *Pool) SetFree(v int64)
- func (o *Pool) SetFreeing(v int64)
- func (o *Pool) SetGuid(v string)
- func (o *Pool) SetHealthy(v bool)
- func (o *Pool) SetId(v int32)
- func (o *Pool) SetIsDecrypted(v bool)
- func (o *Pool) SetIsUpgraded(v bool)
- func (o *Pool) SetName(v string)
- func (o *Pool) SetPath(v string)
- func (o *Pool) SetScan(v map[string]interface{})
- func (o *Pool) SetSize(v int64)
- func (o *Pool) SetStatus(v string)
- func (o *Pool) SetStatusDetail(v string)
- func (o *Pool) SetTopology(v PoolTopology)
- func (o *Pool) SetWarning(v bool)
- func (o Pool) ToMap() (map[string]interface{}, error)
- func (o *Pool) UnmarshalJSON(bytes []byte) (err error)
- type PoolApiService
- type PoolTopology
- func (o *PoolTopology) GetCache() []VDev
- func (o *PoolTopology) GetCacheOk() ([]VDev, bool)
- func (o *PoolTopology) GetData() []VDev
- func (o *PoolTopology) GetDataOk() ([]VDev, bool)
- func (o *PoolTopology) GetDedup() []VDev
- func (o *PoolTopology) GetDedupOk() ([]VDev, bool)
- func (o *PoolTopology) GetLog() []VDev
- func (o *PoolTopology) GetLogOk() ([]VDev, bool)
- func (o *PoolTopology) GetSpare() []VDev
- func (o *PoolTopology) GetSpareOk() ([]VDev, bool)
- func (o *PoolTopology) GetSpecial() []VDev
- func (o *PoolTopology) GetSpecialOk() ([]VDev, bool)
- func (o PoolTopology) MarshalJSON() ([]byte, error)
- func (o *PoolTopology) SetCache(v []VDev)
- func (o *PoolTopology) SetData(v []VDev)
- func (o *PoolTopology) SetDedup(v []VDev)
- func (o *PoolTopology) SetLog(v []VDev)
- func (o *PoolTopology) SetSpare(v []VDev)
- func (o *PoolTopology) SetSpecial(v []VDev)
- func (o PoolTopology) ToMap() (map[string]interface{}, error)
- func (o *PoolTopology) UnmarshalJSON(bytes []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type UpdateDiskRequest
- func (o *UpdateDiskRequest) GetAdvpowermgmt() AdvPowermgmt
- func (o *UpdateDiskRequest) GetAdvpowermgmtOk() (*AdvPowermgmt, bool)
- func (o *UpdateDiskRequest) GetCritical() int32
- func (o *UpdateDiskRequest) GetCriticalOk() (*int32, bool)
- func (o *UpdateDiskRequest) GetDescription() string
- func (o *UpdateDiskRequest) GetDescriptionOk() (*string, bool)
- func (o *UpdateDiskRequest) GetDifference() int32
- func (o *UpdateDiskRequest) GetDifferenceOk() (*int32, bool)
- func (o *UpdateDiskRequest) GetHddstandby() HDDStandby
- func (o *UpdateDiskRequest) GetHddstandbyOk() (*HDDStandby, bool)
- func (o *UpdateDiskRequest) GetInformational() int32
- func (o *UpdateDiskRequest) GetInformationalOk() (*int32, bool)
- func (o *UpdateDiskRequest) GetLunid() string
- func (o *UpdateDiskRequest) GetLunidOk() (*string, bool)
- func (o *UpdateDiskRequest) GetNumber() int32
- func (o *UpdateDiskRequest) GetNumberOk() (*int32, bool)
- func (o *UpdateDiskRequest) GetPasswd() string
- func (o *UpdateDiskRequest) GetPasswdOk() (*string, bool)
- func (o *UpdateDiskRequest) GetSmartoptions() string
- func (o *UpdateDiskRequest) GetSmartoptionsOk() (*string, bool)
- func (o *UpdateDiskRequest) GetSupportsSmart() bool
- func (o *UpdateDiskRequest) GetSupportsSmartOk() (*bool, bool)
- func (o *UpdateDiskRequest) GetTogglesmart() bool
- func (o *UpdateDiskRequest) GetTogglesmartOk() (*bool, bool)
- func (o *UpdateDiskRequest) HasPasswd() bool
- func (o *UpdateDiskRequest) HasSmartoptions() bool
- func (o *UpdateDiskRequest) HasSupportsSmart() bool
- func (o UpdateDiskRequest) MarshalJSON() ([]byte, error)
- func (o *UpdateDiskRequest) SetAdvpowermgmt(v AdvPowermgmt)
- func (o *UpdateDiskRequest) SetCritical(v int32)
- func (o *UpdateDiskRequest) SetDescription(v string)
- func (o *UpdateDiskRequest) SetDifference(v int32)
- func (o *UpdateDiskRequest) SetHddstandby(v HDDStandby)
- func (o *UpdateDiskRequest) SetInformational(v int32)
- func (o *UpdateDiskRequest) SetLunid(v string)
- func (o *UpdateDiskRequest) SetNumber(v int32)
- func (o *UpdateDiskRequest) SetPasswd(v string)
- func (o *UpdateDiskRequest) SetSmartoptions(v string)
- func (o *UpdateDiskRequest) SetSupportsSmart(v bool)
- func (o *UpdateDiskRequest) SetTogglesmart(v bool)
- func (o UpdateDiskRequest) ToMap() (map[string]interface{}, error)
- func (o *UpdateDiskRequest) UnmarshalJSON(bytes []byte) (err error)
- type VDev
- func (o *VDev) GetChildren() []Device
- func (o *VDev) GetChildrenOk() ([]Device, bool)
- func (o *VDev) GetGuid() string
- func (o *VDev) GetGuidOk() (*string, bool)
- func (o *VDev) GetName() string
- func (o *VDev) GetNameOk() (*string, bool)
- func (o *VDev) GetPath() string
- func (o *VDev) GetPathOk() (*string, bool)
- func (o *VDev) GetStatus() string
- func (o *VDev) GetStatusOk() (*string, bool)
- func (o *VDev) GetType() string
- func (o *VDev) GetTypeOk() (*string, bool)
- func (o *VDev) HasChildren() bool
- func (o VDev) MarshalJSON() ([]byte, error)
- func (o *VDev) SetChildren(v []Device)
- func (o *VDev) SetGuid(v string)
- func (o *VDev) SetName(v string)
- func (o *VDev) SetPath(v string)
- func (o *VDev) SetStatus(v string)
- func (o *VDev) SetType(v string)
- func (o VDev) ToMap() (map[string]interface{}, error)
- func (o *VDev) UnmarshalJSON(bytes []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
var ( // 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") // 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") )
var AllowedAdvPowermgmtEnumValues = []AdvPowermgmt{
"DISABLED",
"1",
"64",
"127",
"128",
"192",
"254",
}
All allowed values of AdvPowermgmt enum
var AllowedHDDStandbyEnumValues = []HDDStandby{
"ALWAYS ON",
"5",
"10",
"20",
"30",
"60",
"120",
"180",
"240",
"300",
"330",
}
All allowed values of HDDStandby enum
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { DiskApi *DiskApiService PoolApi *PoolApiService // contains filtered or unexported fields }
APIClient manages communication with the TrueNAS RESTful API API vv2.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 ¶
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 AdvPowermgmt ¶
type AdvPowermgmt string
AdvPowermgmt the model 'AdvPowermgmt'
const (
DISABLED AdvPowermgmt = "DISABLED"
)
List of AdvPowermgmt
func NewAdvPowermgmtFromValue ¶
func NewAdvPowermgmtFromValue(v string) (*AdvPowermgmt, error)
NewAdvPowermgmtFromValue returns a pointer to a valid AdvPowermgmt for the value passed as argument, or an error if the value passed is not allowed by the enum
func (AdvPowermgmt) IsValid ¶
func (v AdvPowermgmt) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (AdvPowermgmt) Ptr ¶
func (v AdvPowermgmt) Ptr() *AdvPowermgmt
Ptr returns reference to AdvPowermgmt value
func (*AdvPowermgmt) UnmarshalJSON ¶
func (v *AdvPowermgmt) UnmarshalJSON(src []byte) error
type ApiGetDiskRequest ¶
type ApiGetDiskRequest struct { ApiService *DiskApiService // contains filtered or unexported fields }
type ApiListDisksRequest ¶
type ApiListDisksRequest struct { ApiService *DiskApiService // contains filtered or unexported fields }
func (ApiListDisksRequest) Count ¶
func (r ApiListDisksRequest) Count(count bool) ApiListDisksRequest
func (ApiListDisksRequest) Execute ¶
func (r ApiListDisksRequest) Execute() ([]Disk, *http.Response, error)
func (ApiListDisksRequest) ExtraIncludeExpired ¶
func (r ApiListDisksRequest) ExtraIncludeExpired(extraIncludeExpired bool) ApiListDisksRequest
will also include expired disks
func (ApiListDisksRequest) ExtraPasswords ¶
func (r ApiListDisksRequest) ExtraPasswords(extraPasswords bool) ApiListDisksRequest
will not hide KMIP password for the disks
func (ApiListDisksRequest) ExtraPools ¶
func (r ApiListDisksRequest) ExtraPools(extraPools bool) ApiListDisksRequest
will join pool name for each disk
func (ApiListDisksRequest) ExtraSupportsSmart ¶
func (r ApiListDisksRequest) ExtraSupportsSmart(extraSupportsSmart bool) ApiListDisksRequest
will query if disks support S.M.A.R.T. Only supported if resulting disks count is not larger than one; otherwise, raises an error.
func (ApiListDisksRequest) Limit ¶
func (r ApiListDisksRequest) Limit(limit int32) ApiListDisksRequest
func (ApiListDisksRequest) Offset ¶
func (r ApiListDisksRequest) Offset(offset int32) ApiListDisksRequest
func (ApiListDisksRequest) Sort ¶
func (r ApiListDisksRequest) Sort(sort string) ApiListDisksRequest
type ApiListPoolsRequest ¶
type ApiListPoolsRequest struct { ApiService *PoolApiService // contains filtered or unexported fields }
func (ApiListPoolsRequest) Count ¶
func (r ApiListPoolsRequest) Count(count bool) ApiListPoolsRequest
func (ApiListPoolsRequest) Execute ¶
func (r ApiListPoolsRequest) Execute() ([]Pool, *http.Response, error)
func (ApiListPoolsRequest) Limit ¶
func (r ApiListPoolsRequest) Limit(limit int32) ApiListPoolsRequest
func (ApiListPoolsRequest) Offset ¶
func (r ApiListPoolsRequest) Offset(offset int32) ApiListPoolsRequest
func (ApiListPoolsRequest) Sort ¶
func (r ApiListPoolsRequest) Sort(sort string) ApiListPoolsRequest
type ApiUpdateDiskRequest ¶
type ApiUpdateDiskRequest struct { ApiService *DiskApiService // contains filtered or unexported fields }
func (ApiUpdateDiskRequest) Execute ¶
func (r ApiUpdateDiskRequest) Execute() (*Disk, *http.Response, error)
func (ApiUpdateDiskRequest) UpdateDiskRequest ¶
func (r ApiUpdateDiskRequest) UpdateDiskRequest(updateDiskRequest UpdateDiskRequest) ApiUpdateDiskRequest
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) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type Device ¶
type Device struct { Name *string `json:"name,omitempty"` Path *string `json:"path,omitempty"` Guid *string `json:"guid,omitempty"` Status *string `json:"status,omitempty"` Stats map[string]interface{} `json:"stats,omitempty"` Device *string `json:"device,omitempty"` Disk *string `json:"disk,omitempty"` Children []map[string]interface{} `json:"children,omitempty"` AdditionalProperties map[string]interface{} }
Device struct for Device
func NewDevice ¶
func NewDevice() *Device
NewDevice instantiates a new Device 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 NewDeviceWithDefaults ¶
func NewDeviceWithDefaults() *Device
NewDeviceWithDefaults instantiates a new Device 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 (*Device) GetChildren ¶
GetChildren returns the Children field value if set, zero value otherwise.
func (*Device) GetChildrenOk ¶
GetChildrenOk returns a tuple with the Children field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Device) GetDeviceOk ¶
GetDeviceOk returns a tuple with the Device field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Device) GetDiskOk ¶
GetDiskOk returns a tuple with the Disk field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Device) GetGuidOk ¶
GetGuidOk returns a tuple with the Guid field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Device) GetNameOk ¶
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 (*Device) GetPathOk ¶
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 (*Device) GetStatsOk ¶
GetStatsOk returns a tuple with the Stats field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Device) GetStatusOk ¶
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 (*Device) GetUnavailDisk ¶
GetUnavailDisk returns the UnavailDisk field value if set, zero value otherwise.
func (*Device) GetUnavailDiskOk ¶
GetUnavailDiskOk returns a tuple with the UnavailDisk field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Device) HasChildren ¶
HasChildren returns a boolean if a field has been set.
func (*Device) HasUnavailDisk ¶
HasUnavailDisk returns a boolean if a field has been set.
func (Device) MarshalJSON ¶
func (*Device) SetChildren ¶
SetChildren gets a reference to the given []map[string]interface{} and assigns it to the Children field.
func (*Device) SetDevice ¶
SetDevice gets a reference to the given string and assigns it to the Device field.
func (*Device) SetDisk ¶
SetDisk gets a reference to the given string and assigns it to the Disk field.
func (*Device) SetGuid ¶
SetGuid gets a reference to the given string and assigns it to the Guid field.
func (*Device) SetName ¶
SetName gets a reference to the given string and assigns it to the Name field.
func (*Device) SetPath ¶
SetPath gets a reference to the given string and assigns it to the Path field.
func (*Device) SetStats ¶
SetStats gets a reference to the given map[string]interface{} and assigns it to the Stats field.
func (*Device) SetStatus ¶
SetStatus gets a reference to the given string and assigns it to the Status field.
func (*Device) SetUnavailDisk ¶
SetUnavailDisk gets a reference to the given map[string]interface{} and assigns it to the UnavailDisk field.
func (*Device) UnmarshalJSON ¶
type Disk ¶
type Disk struct { Identifier string `json:"identifier"` Name string `json:"name"` Subsystem string `json:"subsystem"` Number int32 `json:"number"` Serial string `json:"serial"` Lunid NullableString `json:"lunid"` Size int64 `json:"size"` Description string `json:"description"` Transfermode string `json:"transfermode"` Hddstandby HDDStandby `json:"hddstandby"` Advpowermgmt AdvPowermgmt `json:"advpowermgmt"` Togglesmart bool `json:"togglesmart"` Smartoptions string `json:"smartoptions"` Expiretime NullableString `json:"expiretime"` Critical NullableInt32 `json:"critical"` Difference NullableInt32 `json:"difference"` Informational NullableInt32 `json:"informational"` Model NullableString `json:"model"` Rotationrate NullableInt32 `json:"rotationrate"` Type NullableString `json:"type"` ZfsGuid NullableString `json:"zfs_guid"` Bus string `json:"bus"` Devname string `json:"devname"` Enclosure DiskEnclosure `json:"enclosure"` Pool NullableString `json:"pool"` Passwd *string `json:"passwd,omitempty"` KmipUid NullableString `json:"kmip_uid,omitempty"` SupportsSmart NullableBool `json:"supports_smart,omitempty"` }
Disk struct for Disk
func NewDisk ¶
func NewDisk(identifier string, name string, subsystem string, number int32, serial string, lunid NullableString, size int64, description string, transfermode string, hddstandby HDDStandby, advpowermgmt AdvPowermgmt, togglesmart bool, smartoptions string, expiretime NullableString, critical NullableInt32, difference NullableInt32, informational NullableInt32, model NullableString, rotationrate NullableInt32, type_ NullableString, zfsGuid NullableString, bus string, devname string, enclosure DiskEnclosure, pool NullableString) *Disk
NewDisk instantiates a new Disk 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 NewDiskWithDefaults ¶
func NewDiskWithDefaults() *Disk
NewDiskWithDefaults instantiates a new Disk 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 (*Disk) GetAdvpowermgmt ¶
func (o *Disk) GetAdvpowermgmt() AdvPowermgmt
GetAdvpowermgmt returns the Advpowermgmt field value
func (*Disk) GetAdvpowermgmtOk ¶
func (o *Disk) GetAdvpowermgmtOk() (*AdvPowermgmt, bool)
GetAdvpowermgmtOk returns a tuple with the Advpowermgmt field value and a boolean to check if the value has been set.
func (*Disk) GetBusOk ¶
GetBusOk returns a tuple with the Bus field value and a boolean to check if the value has been set.
func (*Disk) GetCritical ¶
GetCritical returns the Critical field value If the value is explicit nil, the zero value for int32 will be returned
func (*Disk) GetCriticalOk ¶
GetCriticalOk returns a tuple with the Critical field value 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 (*Disk) GetDescription ¶
GetDescription returns the Description field value
func (*Disk) GetDescriptionOk ¶
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (*Disk) GetDevname ¶
GetDevname returns the Devname field value
func (*Disk) GetDevnameOk ¶
GetDevnameOk returns a tuple with the Devname field value and a boolean to check if the value has been set.
func (*Disk) GetDifference ¶
GetDifference returns the Difference field value If the value is explicit nil, the zero value for int32 will be returned
func (*Disk) GetDifferenceOk ¶
GetDifferenceOk returns a tuple with the Difference field value 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 (*Disk) GetEnclosure ¶
func (o *Disk) GetEnclosure() DiskEnclosure
GetEnclosure returns the Enclosure field value
func (*Disk) GetEnclosureOk ¶
func (o *Disk) GetEnclosureOk() (*DiskEnclosure, bool)
GetEnclosureOk returns a tuple with the Enclosure field value and a boolean to check if the value has been set.
func (*Disk) GetExpiretime ¶
GetExpiretime returns the Expiretime field value If the value is explicit nil, the zero value for string will be returned
func (*Disk) GetExpiretimeOk ¶
GetExpiretimeOk returns a tuple with the Expiretime field value 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 (*Disk) GetHddstandby ¶
func (o *Disk) GetHddstandby() HDDStandby
GetHddstandby returns the Hddstandby field value
func (*Disk) GetHddstandbyOk ¶
func (o *Disk) GetHddstandbyOk() (*HDDStandby, bool)
GetHddstandbyOk returns a tuple with the Hddstandby field value and a boolean to check if the value has been set.
func (*Disk) GetIdentifier ¶
GetIdentifier returns the Identifier field value
func (*Disk) GetIdentifierOk ¶
GetIdentifierOk returns a tuple with the Identifier field value and a boolean to check if the value has been set.
func (*Disk) GetInformational ¶
GetInformational returns the Informational field value If the value is explicit nil, the zero value for int32 will be returned
func (*Disk) GetInformationalOk ¶
GetInformationalOk returns a tuple with the Informational field value 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 (*Disk) GetKmipUid ¶
GetKmipUid returns the KmipUid field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Disk) GetKmipUidOk ¶
GetKmipUidOk returns a tuple with the KmipUid 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 (*Disk) GetLunid ¶
GetLunid returns the Lunid field value If the value is explicit nil, the zero value for string will be returned
func (*Disk) GetLunidOk ¶
GetLunidOk returns a tuple with the Lunid field value 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 (*Disk) GetModel ¶
GetModel returns the Model field value If the value is explicit nil, the zero value for string will be returned
func (*Disk) GetModelOk ¶
GetModelOk returns a tuple with the Model field value 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 (*Disk) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Disk) GetNumberOk ¶
GetNumberOk returns a tuple with the Number field value and a boolean to check if the value has been set.
func (*Disk) GetPasswdOk ¶
GetPasswdOk returns a tuple with the Passwd field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Disk) GetPool ¶
GetPool returns the Pool field value If the value is explicit nil, the zero value for string will be returned
func (*Disk) GetPoolOk ¶
GetPoolOk returns a tuple with the Pool field value 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 (*Disk) GetRotationrate ¶
GetRotationrate returns the Rotationrate field value If the value is explicit nil, the zero value for int32 will be returned
func (*Disk) GetRotationrateOk ¶
GetRotationrateOk returns a tuple with the Rotationrate field value 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 (*Disk) GetSerialOk ¶
GetSerialOk returns a tuple with the Serial field value and a boolean to check if the value has been set.
func (*Disk) GetSizeOk ¶
GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.
func (*Disk) GetSmartoptions ¶
GetSmartoptions returns the Smartoptions field value
func (*Disk) GetSmartoptionsOk ¶
GetSmartoptionsOk returns a tuple with the Smartoptions field value and a boolean to check if the value has been set.
func (*Disk) GetSubsystem ¶
GetSubsystem returns the Subsystem field value
func (*Disk) GetSubsystemOk ¶
GetSubsystemOk returns a tuple with the Subsystem field value and a boolean to check if the value has been set.
func (*Disk) GetSupportsSmart ¶
GetSupportsSmart returns the SupportsSmart field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Disk) GetSupportsSmartOk ¶
GetSupportsSmartOk returns a tuple with the SupportsSmart 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 (*Disk) GetTogglesmart ¶
GetTogglesmart returns the Togglesmart field value
func (*Disk) GetTogglesmartOk ¶
GetTogglesmartOk returns a tuple with the Togglesmart field value and a boolean to check if the value has been set.
func (*Disk) GetTransfermode ¶
GetTransfermode returns the Transfermode field value
func (*Disk) GetTransfermodeOk ¶
GetTransfermodeOk returns a tuple with the Transfermode field value and a boolean to check if the value has been set.
func (*Disk) GetType ¶
GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned
func (*Disk) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value 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 (*Disk) GetZfsGuid ¶
GetZfsGuid returns the ZfsGuid field value If the value is explicit nil, the zero value for string will be returned
func (*Disk) GetZfsGuidOk ¶
GetZfsGuidOk returns a tuple with the ZfsGuid field value 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 (*Disk) HasKmipUid ¶
HasKmipUid returns a boolean if a field has been set.
func (*Disk) HasSupportsSmart ¶
HasSupportsSmart returns a boolean if a field has been set.
func (Disk) MarshalJSON ¶
func (*Disk) SetAdvpowermgmt ¶
func (o *Disk) SetAdvpowermgmt(v AdvPowermgmt)
SetAdvpowermgmt sets field value
func (*Disk) SetDescription ¶
SetDescription sets field value
func (*Disk) SetEnclosure ¶
func (o *Disk) SetEnclosure(v DiskEnclosure)
SetEnclosure sets field value
func (*Disk) SetHddstandby ¶
func (o *Disk) SetHddstandby(v HDDStandby)
SetHddstandby sets field value
func (*Disk) SetInformational ¶
SetInformational sets field value
func (*Disk) SetKmipUid ¶
SetKmipUid gets a reference to the given NullableString and assigns it to the KmipUid field.
func (*Disk) SetKmipUidNil ¶
func (o *Disk) SetKmipUidNil()
SetKmipUidNil sets the value for KmipUid to be an explicit nil
func (*Disk) SetPasswd ¶
SetPasswd gets a reference to the given string and assigns it to the Passwd field.
func (*Disk) SetRotationrate ¶
SetRotationrate sets field value
func (*Disk) SetSmartoptions ¶
SetSmartoptions sets field value
func (*Disk) SetSupportsSmart ¶
SetSupportsSmart gets a reference to the given NullableBool and assigns it to the SupportsSmart field.
func (*Disk) SetSupportsSmartNil ¶
func (o *Disk) SetSupportsSmartNil()
SetSupportsSmartNil sets the value for SupportsSmart to be an explicit nil
func (*Disk) SetTransfermode ¶
SetTransfermode sets field value
func (*Disk) UnsetKmipUid ¶
func (o *Disk) UnsetKmipUid()
UnsetKmipUid ensures that no value is present for KmipUid, not even an explicit nil
func (*Disk) UnsetSupportsSmart ¶
func (o *Disk) UnsetSupportsSmart()
UnsetSupportsSmart ensures that no value is present for SupportsSmart, not even an explicit nil
type DiskApiService ¶
type DiskApiService service
DiskApiService DiskApi service
func (*DiskApiService) GetDisk ¶
func (a *DiskApiService) GetDisk(ctx context.Context, id string) ApiGetDiskRequest
GetDisk Method for GetDisk
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id Disk ID @return ApiGetDiskRequest
func (*DiskApiService) GetDiskExecute ¶
func (a *DiskApiService) GetDiskExecute(r ApiGetDiskRequest) (*Disk, *http.Response, error)
Execute executes the request
@return Disk
func (*DiskApiService) ListDisks ¶
func (a *DiskApiService) ListDisks(ctx context.Context) ApiListDisksRequest
ListDisks Method for ListDisks
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListDisksRequest
func (*DiskApiService) ListDisksExecute ¶
func (a *DiskApiService) ListDisksExecute(r ApiListDisksRequest) ([]Disk, *http.Response, error)
Execute executes the request
@return []Disk
func (*DiskApiService) UpdateDisk ¶
func (a *DiskApiService) UpdateDisk(ctx context.Context, id string) ApiUpdateDiskRequest
UpdateDisk Method for UpdateDisk
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id Disk ID @return ApiUpdateDiskRequest
func (*DiskApiService) UpdateDiskExecute ¶
func (a *DiskApiService) UpdateDiskExecute(r ApiUpdateDiskRequest) (*Disk, *http.Response, error)
Execute executes the request
@return Disk
type DiskEnclosure ¶
type DiskEnclosure struct { Number *int32 `json:"number,omitempty"` Slot *int32 `json:"slot,omitempty"` }
DiskEnclosure struct for DiskEnclosure
func NewDiskEnclosure ¶
func NewDiskEnclosure() *DiskEnclosure
NewDiskEnclosure instantiates a new DiskEnclosure 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 NewDiskEnclosureWithDefaults ¶
func NewDiskEnclosureWithDefaults() *DiskEnclosure
NewDiskEnclosureWithDefaults instantiates a new DiskEnclosure 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 (*DiskEnclosure) GetNumber ¶
func (o *DiskEnclosure) GetNumber() int32
GetNumber returns the Number field value if set, zero value otherwise.
func (*DiskEnclosure) GetNumberOk ¶
func (o *DiskEnclosure) GetNumberOk() (*int32, bool)
GetNumberOk returns a tuple with the Number field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DiskEnclosure) GetSlot ¶
func (o *DiskEnclosure) GetSlot() int32
GetSlot returns the Slot field value if set, zero value otherwise.
func (*DiskEnclosure) GetSlotOk ¶
func (o *DiskEnclosure) GetSlotOk() (*int32, bool)
GetSlotOk returns a tuple with the Slot field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DiskEnclosure) HasNumber ¶
func (o *DiskEnclosure) HasNumber() bool
HasNumber returns a boolean if a field has been set.
func (*DiskEnclosure) HasSlot ¶
func (o *DiskEnclosure) HasSlot() bool
HasSlot returns a boolean if a field has been set.
func (DiskEnclosure) MarshalJSON ¶
func (o DiskEnclosure) MarshalJSON() ([]byte, error)
func (*DiskEnclosure) SetNumber ¶
func (o *DiskEnclosure) SetNumber(v int32)
SetNumber gets a reference to the given int32 and assigns it to the Number field.
func (*DiskEnclosure) SetSlot ¶
func (o *DiskEnclosure) SetSlot(v int32)
SetSlot gets a reference to the given int32 and assigns it to the Slot field.
func (DiskEnclosure) ToMap ¶
func (o DiskEnclosure) ToMap() (map[string]interface{}, 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 HDDStandby ¶
type HDDStandby string
HDDStandby the model 'HDDStandby'
const (
ALWAYS_ON HDDStandby = "ALWAYS ON"
)
List of HDDStandby
func NewHDDStandbyFromValue ¶
func NewHDDStandbyFromValue(v string) (*HDDStandby, error)
NewHDDStandbyFromValue returns a pointer to a valid HDDStandby for the value passed as argument, or an error if the value passed is not allowed by the enum
func (HDDStandby) IsValid ¶
func (v HDDStandby) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (HDDStandby) Ptr ¶
func (v HDDStandby) Ptr() *HDDStandby
Ptr returns reference to HDDStandby value
func (*HDDStandby) UnmarshalJSON ¶
func (v *HDDStandby) UnmarshalJSON(src []byte) error
type MappedNullable ¶
type NullableAdvPowermgmt ¶
type NullableAdvPowermgmt struct {
// contains filtered or unexported fields
}
func NewNullableAdvPowermgmt ¶
func NewNullableAdvPowermgmt(val *AdvPowermgmt) *NullableAdvPowermgmt
func (NullableAdvPowermgmt) Get ¶
func (v NullableAdvPowermgmt) Get() *AdvPowermgmt
func (NullableAdvPowermgmt) IsSet ¶
func (v NullableAdvPowermgmt) IsSet() bool
func (NullableAdvPowermgmt) MarshalJSON ¶
func (v NullableAdvPowermgmt) MarshalJSON() ([]byte, error)
func (*NullableAdvPowermgmt) Set ¶
func (v *NullableAdvPowermgmt) Set(val *AdvPowermgmt)
func (*NullableAdvPowermgmt) UnmarshalJSON ¶
func (v *NullableAdvPowermgmt) UnmarshalJSON(src []byte) error
func (*NullableAdvPowermgmt) Unset ¶
func (v *NullableAdvPowermgmt) 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 NullableDevice ¶
type NullableDevice struct {
// contains filtered or unexported fields
}
func NewNullableDevice ¶
func NewNullableDevice(val *Device) *NullableDevice
func (NullableDevice) Get ¶
func (v NullableDevice) Get() *Device
func (NullableDevice) IsSet ¶
func (v NullableDevice) IsSet() bool
func (NullableDevice) MarshalJSON ¶
func (v NullableDevice) MarshalJSON() ([]byte, error)
func (*NullableDevice) Set ¶
func (v *NullableDevice) Set(val *Device)
func (*NullableDevice) UnmarshalJSON ¶
func (v *NullableDevice) UnmarshalJSON(src []byte) error
func (*NullableDevice) Unset ¶
func (v *NullableDevice) Unset()
type NullableDisk ¶
type NullableDisk struct {
// contains filtered or unexported fields
}
func NewNullableDisk ¶
func NewNullableDisk(val *Disk) *NullableDisk
func (NullableDisk) Get ¶
func (v NullableDisk) Get() *Disk
func (NullableDisk) IsSet ¶
func (v NullableDisk) IsSet() bool
func (NullableDisk) MarshalJSON ¶
func (v NullableDisk) MarshalJSON() ([]byte, error)
func (*NullableDisk) Set ¶
func (v *NullableDisk) Set(val *Disk)
func (*NullableDisk) UnmarshalJSON ¶
func (v *NullableDisk) UnmarshalJSON(src []byte) error
func (*NullableDisk) Unset ¶
func (v *NullableDisk) Unset()
type NullableDiskEnclosure ¶
type NullableDiskEnclosure struct {
// contains filtered or unexported fields
}
func NewNullableDiskEnclosure ¶
func NewNullableDiskEnclosure(val *DiskEnclosure) *NullableDiskEnclosure
func (NullableDiskEnclosure) Get ¶
func (v NullableDiskEnclosure) Get() *DiskEnclosure
func (NullableDiskEnclosure) IsSet ¶
func (v NullableDiskEnclosure) IsSet() bool
func (NullableDiskEnclosure) MarshalJSON ¶
func (v NullableDiskEnclosure) MarshalJSON() ([]byte, error)
func (*NullableDiskEnclosure) Set ¶
func (v *NullableDiskEnclosure) Set(val *DiskEnclosure)
func (*NullableDiskEnclosure) UnmarshalJSON ¶
func (v *NullableDiskEnclosure) UnmarshalJSON(src []byte) error
func (*NullableDiskEnclosure) Unset ¶
func (v *NullableDiskEnclosure) 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 NullableHDDStandby ¶
type NullableHDDStandby struct {
// contains filtered or unexported fields
}
func NewNullableHDDStandby ¶
func NewNullableHDDStandby(val *HDDStandby) *NullableHDDStandby
func (NullableHDDStandby) Get ¶
func (v NullableHDDStandby) Get() *HDDStandby
func (NullableHDDStandby) IsSet ¶
func (v NullableHDDStandby) IsSet() bool
func (NullableHDDStandby) MarshalJSON ¶
func (v NullableHDDStandby) MarshalJSON() ([]byte, error)
func (*NullableHDDStandby) Set ¶
func (v *NullableHDDStandby) Set(val *HDDStandby)
func (*NullableHDDStandby) UnmarshalJSON ¶
func (v *NullableHDDStandby) UnmarshalJSON(src []byte) error
func (*NullableHDDStandby) Unset ¶
func (v *NullableHDDStandby) 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 NullablePool ¶
type NullablePool struct {
// contains filtered or unexported fields
}
func NewNullablePool ¶
func NewNullablePool(val *Pool) *NullablePool
func (NullablePool) Get ¶
func (v NullablePool) Get() *Pool
func (NullablePool) IsSet ¶
func (v NullablePool) IsSet() bool
func (NullablePool) MarshalJSON ¶
func (v NullablePool) MarshalJSON() ([]byte, error)
func (*NullablePool) Set ¶
func (v *NullablePool) Set(val *Pool)
func (*NullablePool) UnmarshalJSON ¶
func (v *NullablePool) UnmarshalJSON(src []byte) error
func (*NullablePool) Unset ¶
func (v *NullablePool) Unset()
type NullablePoolTopology ¶
type NullablePoolTopology struct {
// contains filtered or unexported fields
}
func NewNullablePoolTopology ¶
func NewNullablePoolTopology(val *PoolTopology) *NullablePoolTopology
func (NullablePoolTopology) Get ¶
func (v NullablePoolTopology) Get() *PoolTopology
func (NullablePoolTopology) IsSet ¶
func (v NullablePoolTopology) IsSet() bool
func (NullablePoolTopology) MarshalJSON ¶
func (v NullablePoolTopology) MarshalJSON() ([]byte, error)
func (*NullablePoolTopology) Set ¶
func (v *NullablePoolTopology) Set(val *PoolTopology)
func (*NullablePoolTopology) UnmarshalJSON ¶
func (v *NullablePoolTopology) UnmarshalJSON(src []byte) error
func (*NullablePoolTopology) Unset ¶
func (v *NullablePoolTopology) 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 NullableUpdateDiskRequest ¶
type NullableUpdateDiskRequest struct {
// contains filtered or unexported fields
}
func NewNullableUpdateDiskRequest ¶
func NewNullableUpdateDiskRequest(val *UpdateDiskRequest) *NullableUpdateDiskRequest
func (NullableUpdateDiskRequest) Get ¶
func (v NullableUpdateDiskRequest) Get() *UpdateDiskRequest
func (NullableUpdateDiskRequest) IsSet ¶
func (v NullableUpdateDiskRequest) IsSet() bool
func (NullableUpdateDiskRequest) MarshalJSON ¶
func (v NullableUpdateDiskRequest) MarshalJSON() ([]byte, error)
func (*NullableUpdateDiskRequest) Set ¶
func (v *NullableUpdateDiskRequest) Set(val *UpdateDiskRequest)
func (*NullableUpdateDiskRequest) UnmarshalJSON ¶
func (v *NullableUpdateDiskRequest) UnmarshalJSON(src []byte) error
func (*NullableUpdateDiskRequest) Unset ¶
func (v *NullableUpdateDiskRequest) Unset()
type NullableVDev ¶
type NullableVDev struct {
// contains filtered or unexported fields
}
func NewNullableVDev ¶
func NewNullableVDev(val *VDev) *NullableVDev
func (NullableVDev) Get ¶
func (v NullableVDev) Get() *VDev
func (NullableVDev) IsSet ¶
func (v NullableVDev) IsSet() bool
func (NullableVDev) MarshalJSON ¶
func (v NullableVDev) MarshalJSON() ([]byte, error)
func (*NullableVDev) Set ¶
func (v *NullableVDev) Set(val *VDev)
func (*NullableVDev) UnmarshalJSON ¶
func (v *NullableVDev) UnmarshalJSON(src []byte) error
func (*NullableVDev) Unset ¶
func (v *NullableVDev) Unset()
type Pool ¶
type Pool struct { Id int32 `json:"id"` Name string `json:"name"` Guid string `json:"guid"` Encrypt int32 `json:"encrypt"` Encryptkey string `json:"encryptkey"` EncryptkeyPath NullableString `json:"encryptkey_path"` IsDecrypted bool `json:"is_decrypted"` Status string `json:"status"` Path string `json:"path"` Scan map[string]interface{} `json:"scan"` IsUpgraded *bool `json:"is_upgraded,omitempty"` Healthy bool `json:"healthy"` Warning bool `json:"warning"` StatusDetail NullableString `json:"status_detail"` Size NullableInt64 `json:"size"` Allocated NullableInt64 `json:"allocated"` Free NullableInt64 `json:"free"` Freeing NullableInt64 `json:"freeing"` Fragmentation NullableString `json:"fragmentation"` Autotrim map[string]interface{} `json:"autotrim"` Topology PoolTopology `json:"topology"` AdditionalProperties map[string]interface{} }
Pool struct for Pool
func NewPool ¶
func NewPool(id int32, name string, guid string, encrypt int32, encryptkey string, encryptkeyPath NullableString, isDecrypted bool, status string, path string, scan map[string]interface{}, healthy bool, warning bool, statusDetail NullableString, size NullableInt64, allocated NullableInt64, free NullableInt64, freeing NullableInt64, fragmentation NullableString, autotrim map[string]interface{}, topology PoolTopology) *Pool
NewPool instantiates a new Pool 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 NewPoolWithDefaults ¶
func NewPoolWithDefaults() *Pool
NewPoolWithDefaults instantiates a new Pool 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 (*Pool) GetAllocated ¶
GetAllocated returns the Allocated field value If the value is explicit nil, the zero value for int64 will be returned
func (*Pool) GetAllocatedOk ¶
GetAllocatedOk returns a tuple with the Allocated field value 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 (*Pool) GetAutotrim ¶
GetAutotrim returns the Autotrim field value
func (*Pool) GetAutotrimOk ¶
GetAutotrimOk returns a tuple with the Autotrim field value and a boolean to check if the value has been set.
func (*Pool) GetEncrypt ¶
GetEncrypt returns the Encrypt field value
func (*Pool) GetEncryptOk ¶
GetEncryptOk returns a tuple with the Encrypt field value and a boolean to check if the value has been set.
func (*Pool) GetEncryptkey ¶
GetEncryptkey returns the Encryptkey field value
func (*Pool) GetEncryptkeyOk ¶
GetEncryptkeyOk returns a tuple with the Encryptkey field value and a boolean to check if the value has been set.
func (*Pool) GetEncryptkeyPath ¶
GetEncryptkeyPath returns the EncryptkeyPath field value If the value is explicit nil, the zero value for string will be returned
func (*Pool) GetEncryptkeyPathOk ¶
GetEncryptkeyPathOk returns a tuple with the EncryptkeyPath field value 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 (*Pool) GetFragmentation ¶
GetFragmentation returns the Fragmentation field value If the value is explicit nil, the zero value for string will be returned
func (*Pool) GetFragmentationOk ¶
GetFragmentationOk returns a tuple with the Fragmentation field value 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 (*Pool) GetFree ¶
GetFree returns the Free field value If the value is explicit nil, the zero value for int64 will be returned
func (*Pool) GetFreeOk ¶
GetFreeOk returns a tuple with the Free field value 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 (*Pool) GetFreeing ¶
GetFreeing returns the Freeing field value If the value is explicit nil, the zero value for int64 will be returned
func (*Pool) GetFreeingOk ¶
GetFreeingOk returns a tuple with the Freeing field value 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 (*Pool) GetGuidOk ¶
GetGuidOk returns a tuple with the Guid field value and a boolean to check if the value has been set.
func (*Pool) GetHealthy ¶
GetHealthy returns the Healthy field value
func (*Pool) GetHealthyOk ¶
GetHealthyOk returns a tuple with the Healthy field value and a boolean to check if the value has been set.
func (*Pool) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Pool) GetIsDecrypted ¶
GetIsDecrypted returns the IsDecrypted field value
func (*Pool) GetIsDecryptedOk ¶
GetIsDecryptedOk returns a tuple with the IsDecrypted field value and a boolean to check if the value has been set.
func (*Pool) GetIsUpgraded ¶
GetIsUpgraded returns the IsUpgraded field value if set, zero value otherwise.
func (*Pool) GetIsUpgradedOk ¶
GetIsUpgradedOk returns a tuple with the IsUpgraded field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Pool) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Pool) GetPathOk ¶
GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.
func (*Pool) GetScanOk ¶
GetScanOk returns a tuple with the Scan field value and a boolean to check if the value has been set.
func (*Pool) GetSize ¶
GetSize returns the Size field value If the value is explicit nil, the zero value for int64 will be returned
func (*Pool) GetSizeOk ¶
GetSizeOk returns a tuple with the Size field value 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 (*Pool) GetStatusDetail ¶
GetStatusDetail returns the StatusDetail field value If the value is explicit nil, the zero value for string will be returned
func (*Pool) GetStatusDetailOk ¶
GetStatusDetailOk returns a tuple with the StatusDetail field value 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 (*Pool) GetStatusOk ¶
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*Pool) GetTopology ¶
func (o *Pool) GetTopology() PoolTopology
GetTopology returns the Topology field value
func (*Pool) GetTopologyOk ¶
func (o *Pool) GetTopologyOk() (*PoolTopology, bool)
GetTopologyOk returns a tuple with the Topology field value and a boolean to check if the value has been set.
func (*Pool) GetWarning ¶
GetWarning returns the Warning field value
func (*Pool) GetWarningOk ¶
GetWarningOk returns a tuple with the Warning field value and a boolean to check if the value has been set.
func (*Pool) HasIsUpgraded ¶
HasIsUpgraded returns a boolean if a field has been set.
func (Pool) MarshalJSON ¶
func (*Pool) SetAutotrim ¶
SetAutotrim sets field value
func (*Pool) SetEncryptkeyPath ¶
SetEncryptkeyPath sets field value
func (*Pool) SetFragmentation ¶
SetFragmentation sets field value
func (*Pool) SetIsUpgraded ¶
SetIsUpgraded gets a reference to the given bool and assigns it to the IsUpgraded field.
func (*Pool) SetStatusDetail ¶
SetStatusDetail sets field value
func (*Pool) UnmarshalJSON ¶
type PoolApiService ¶
type PoolApiService service
PoolApiService PoolApi service
func (*PoolApiService) ListPools ¶
func (a *PoolApiService) ListPools(ctx context.Context) ApiListPoolsRequest
ListPools Method for ListPools
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListPoolsRequest
func (*PoolApiService) ListPoolsExecute ¶
func (a *PoolApiService) ListPoolsExecute(r ApiListPoolsRequest) ([]Pool, *http.Response, error)
Execute executes the request
@return []Pool
type PoolTopology ¶
type PoolTopology struct { Data []VDev `json:"data"` Log []VDev `json:"log"` Cache []VDev `json:"cache"` Spare []VDev `json:"spare"` Special []VDev `json:"special"` Dedup []VDev `json:"dedup"` AdditionalProperties map[string]interface{} }
PoolTopology struct for PoolTopology
func NewPoolTopology ¶
func NewPoolTopology(data []VDev, log []VDev, cache []VDev, spare []VDev, special []VDev, dedup []VDev) *PoolTopology
NewPoolTopology instantiates a new PoolTopology 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 NewPoolTopologyWithDefaults ¶
func NewPoolTopologyWithDefaults() *PoolTopology
NewPoolTopologyWithDefaults instantiates a new PoolTopology 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 (*PoolTopology) GetCache ¶
func (o *PoolTopology) GetCache() []VDev
GetCache returns the Cache field value
func (*PoolTopology) GetCacheOk ¶
func (o *PoolTopology) GetCacheOk() ([]VDev, bool)
GetCacheOk returns a tuple with the Cache field value and a boolean to check if the value has been set.
func (*PoolTopology) GetData ¶
func (o *PoolTopology) GetData() []VDev
GetData returns the Data field value
func (*PoolTopology) GetDataOk ¶
func (o *PoolTopology) GetDataOk() ([]VDev, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*PoolTopology) GetDedup ¶
func (o *PoolTopology) GetDedup() []VDev
GetDedup returns the Dedup field value
func (*PoolTopology) GetDedupOk ¶
func (o *PoolTopology) GetDedupOk() ([]VDev, bool)
GetDedupOk returns a tuple with the Dedup field value and a boolean to check if the value has been set.
func (*PoolTopology) GetLog ¶
func (o *PoolTopology) GetLog() []VDev
GetLog returns the Log field value
func (*PoolTopology) GetLogOk ¶
func (o *PoolTopology) GetLogOk() ([]VDev, bool)
GetLogOk returns a tuple with the Log field value and a boolean to check if the value has been set.
func (*PoolTopology) GetSpare ¶
func (o *PoolTopology) GetSpare() []VDev
GetSpare returns the Spare field value
func (*PoolTopology) GetSpareOk ¶
func (o *PoolTopology) GetSpareOk() ([]VDev, bool)
GetSpareOk returns a tuple with the Spare field value and a boolean to check if the value has been set.
func (*PoolTopology) GetSpecial ¶
func (o *PoolTopology) GetSpecial() []VDev
GetSpecial returns the Special field value
func (*PoolTopology) GetSpecialOk ¶
func (o *PoolTopology) GetSpecialOk() ([]VDev, bool)
GetSpecialOk returns a tuple with the Special field value and a boolean to check if the value has been set.
func (PoolTopology) MarshalJSON ¶
func (o PoolTopology) MarshalJSON() ([]byte, error)
func (*PoolTopology) SetSpecial ¶
func (o *PoolTopology) SetSpecial(v []VDev)
SetSpecial sets field value
func (PoolTopology) ToMap ¶
func (o PoolTopology) ToMap() (map[string]interface{}, error)
func (*PoolTopology) UnmarshalJSON ¶
func (o *PoolTopology) UnmarshalJSON(bytes []byte) (err 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
type ServerVariable ¶
ServerVariable stores the information about a server variable
type UpdateDiskRequest ¶
type UpdateDiskRequest struct { Number int32 `json:"number"` Lunid NullableString `json:"lunid"` Description NullableString `json:"description"` Critical NullableInt32 `json:"critical"` Difference NullableInt32 `json:"difference"` Informational NullableInt32 `json:"informational"` Hddstandby HDDStandby `json:"hddstandby"` Advpowermgmt AdvPowermgmt `json:"advpowermgmt"` Togglesmart bool `json:"togglesmart"` SupportsSmart *bool `json:"supports_smart,omitempty"` Smartoptions *string `json:"smartoptions,omitempty"` Passwd *string `json:"passwd,omitempty"` AdditionalProperties map[string]interface{} }
UpdateDiskRequest struct for UpdateDiskRequest
func NewUpdateDiskRequest ¶
func NewUpdateDiskRequest(number int32, lunid NullableString, description NullableString, critical NullableInt32, difference NullableInt32, informational NullableInt32, hddstandby HDDStandby, advpowermgmt AdvPowermgmt, togglesmart bool) *UpdateDiskRequest
NewUpdateDiskRequest instantiates a new UpdateDiskRequest 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 NewUpdateDiskRequestWithDefaults ¶
func NewUpdateDiskRequestWithDefaults() *UpdateDiskRequest
NewUpdateDiskRequestWithDefaults instantiates a new UpdateDiskRequest 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 (*UpdateDiskRequest) GetAdvpowermgmt ¶
func (o *UpdateDiskRequest) GetAdvpowermgmt() AdvPowermgmt
GetAdvpowermgmt returns the Advpowermgmt field value
func (*UpdateDiskRequest) GetAdvpowermgmtOk ¶
func (o *UpdateDiskRequest) GetAdvpowermgmtOk() (*AdvPowermgmt, bool)
GetAdvpowermgmtOk returns a tuple with the Advpowermgmt field value and a boolean to check if the value has been set.
func (*UpdateDiskRequest) GetCritical ¶
func (o *UpdateDiskRequest) GetCritical() int32
GetCritical returns the Critical field value If the value is explicit nil, the zero value for int32 will be returned
func (*UpdateDiskRequest) GetCriticalOk ¶
func (o *UpdateDiskRequest) GetCriticalOk() (*int32, bool)
GetCriticalOk returns a tuple with the Critical field value 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 (*UpdateDiskRequest) GetDescription ¶
func (o *UpdateDiskRequest) GetDescription() string
GetDescription returns the Description field value If the value is explicit nil, the zero value for string will be returned
func (*UpdateDiskRequest) GetDescriptionOk ¶
func (o *UpdateDiskRequest) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value 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 (*UpdateDiskRequest) GetDifference ¶
func (o *UpdateDiskRequest) GetDifference() int32
GetDifference returns the Difference field value If the value is explicit nil, the zero value for int32 will be returned
func (*UpdateDiskRequest) GetDifferenceOk ¶
func (o *UpdateDiskRequest) GetDifferenceOk() (*int32, bool)
GetDifferenceOk returns a tuple with the Difference field value 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 (*UpdateDiskRequest) GetHddstandby ¶
func (o *UpdateDiskRequest) GetHddstandby() HDDStandby
GetHddstandby returns the Hddstandby field value
func (*UpdateDiskRequest) GetHddstandbyOk ¶
func (o *UpdateDiskRequest) GetHddstandbyOk() (*HDDStandby, bool)
GetHddstandbyOk returns a tuple with the Hddstandby field value and a boolean to check if the value has been set.
func (*UpdateDiskRequest) GetInformational ¶
func (o *UpdateDiskRequest) GetInformational() int32
GetInformational returns the Informational field value If the value is explicit nil, the zero value for int32 will be returned
func (*UpdateDiskRequest) GetInformationalOk ¶
func (o *UpdateDiskRequest) GetInformationalOk() (*int32, bool)
GetInformationalOk returns a tuple with the Informational field value 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 (*UpdateDiskRequest) GetLunid ¶
func (o *UpdateDiskRequest) GetLunid() string
GetLunid returns the Lunid field value If the value is explicit nil, the zero value for string will be returned
func (*UpdateDiskRequest) GetLunidOk ¶
func (o *UpdateDiskRequest) GetLunidOk() (*string, bool)
GetLunidOk returns a tuple with the Lunid field value 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 (*UpdateDiskRequest) GetNumber ¶
func (o *UpdateDiskRequest) GetNumber() int32
GetNumber returns the Number field value
func (*UpdateDiskRequest) GetNumberOk ¶
func (o *UpdateDiskRequest) GetNumberOk() (*int32, bool)
GetNumberOk returns a tuple with the Number field value and a boolean to check if the value has been set.
func (*UpdateDiskRequest) GetPasswd ¶
func (o *UpdateDiskRequest) GetPasswd() string
GetPasswd returns the Passwd field value if set, zero value otherwise.
func (*UpdateDiskRequest) GetPasswdOk ¶
func (o *UpdateDiskRequest) GetPasswdOk() (*string, bool)
GetPasswdOk returns a tuple with the Passwd field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateDiskRequest) GetSmartoptions ¶
func (o *UpdateDiskRequest) GetSmartoptions() string
GetSmartoptions returns the Smartoptions field value if set, zero value otherwise.
func (*UpdateDiskRequest) GetSmartoptionsOk ¶
func (o *UpdateDiskRequest) GetSmartoptionsOk() (*string, bool)
GetSmartoptionsOk returns a tuple with the Smartoptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateDiskRequest) GetSupportsSmart ¶
func (o *UpdateDiskRequest) GetSupportsSmart() bool
GetSupportsSmart returns the SupportsSmart field value if set, zero value otherwise.
func (*UpdateDiskRequest) GetSupportsSmartOk ¶
func (o *UpdateDiskRequest) GetSupportsSmartOk() (*bool, bool)
GetSupportsSmartOk returns a tuple with the SupportsSmart field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateDiskRequest) GetTogglesmart ¶
func (o *UpdateDiskRequest) GetTogglesmart() bool
GetTogglesmart returns the Togglesmart field value
func (*UpdateDiskRequest) GetTogglesmartOk ¶
func (o *UpdateDiskRequest) GetTogglesmartOk() (*bool, bool)
GetTogglesmartOk returns a tuple with the Togglesmart field value and a boolean to check if the value has been set.
func (*UpdateDiskRequest) HasPasswd ¶
func (o *UpdateDiskRequest) HasPasswd() bool
HasPasswd returns a boolean if a field has been set.
func (*UpdateDiskRequest) HasSmartoptions ¶
func (o *UpdateDiskRequest) HasSmartoptions() bool
HasSmartoptions returns a boolean if a field has been set.
func (*UpdateDiskRequest) HasSupportsSmart ¶
func (o *UpdateDiskRequest) HasSupportsSmart() bool
HasSupportsSmart returns a boolean if a field has been set.
func (UpdateDiskRequest) MarshalJSON ¶
func (o UpdateDiskRequest) MarshalJSON() ([]byte, error)
func (*UpdateDiskRequest) SetAdvpowermgmt ¶
func (o *UpdateDiskRequest) SetAdvpowermgmt(v AdvPowermgmt)
SetAdvpowermgmt sets field value
func (*UpdateDiskRequest) SetCritical ¶
func (o *UpdateDiskRequest) SetCritical(v int32)
SetCritical sets field value
func (*UpdateDiskRequest) SetDescription ¶
func (o *UpdateDiskRequest) SetDescription(v string)
SetDescription sets field value
func (*UpdateDiskRequest) SetDifference ¶
func (o *UpdateDiskRequest) SetDifference(v int32)
SetDifference sets field value
func (*UpdateDiskRequest) SetHddstandby ¶
func (o *UpdateDiskRequest) SetHddstandby(v HDDStandby)
SetHddstandby sets field value
func (*UpdateDiskRequest) SetInformational ¶
func (o *UpdateDiskRequest) SetInformational(v int32)
SetInformational sets field value
func (*UpdateDiskRequest) SetLunid ¶
func (o *UpdateDiskRequest) SetLunid(v string)
SetLunid sets field value
func (*UpdateDiskRequest) SetNumber ¶
func (o *UpdateDiskRequest) SetNumber(v int32)
SetNumber sets field value
func (*UpdateDiskRequest) SetPasswd ¶
func (o *UpdateDiskRequest) SetPasswd(v string)
SetPasswd gets a reference to the given string and assigns it to the Passwd field.
func (*UpdateDiskRequest) SetSmartoptions ¶
func (o *UpdateDiskRequest) SetSmartoptions(v string)
SetSmartoptions gets a reference to the given string and assigns it to the Smartoptions field.
func (*UpdateDiskRequest) SetSupportsSmart ¶
func (o *UpdateDiskRequest) SetSupportsSmart(v bool)
SetSupportsSmart gets a reference to the given bool and assigns it to the SupportsSmart field.
func (*UpdateDiskRequest) SetTogglesmart ¶
func (o *UpdateDiskRequest) SetTogglesmart(v bool)
SetTogglesmart sets field value
func (UpdateDiskRequest) ToMap ¶
func (o UpdateDiskRequest) ToMap() (map[string]interface{}, error)
func (*UpdateDiskRequest) UnmarshalJSON ¶
func (o *UpdateDiskRequest) UnmarshalJSON(bytes []byte) (err error)
type VDev ¶
type VDev struct { Guid string `json:"guid"` Name string `json:"name"` Type string `json:"type"` Path NullableString `json:"path"` Status string `json:"status"` Children []Device `json:"children,omitempty"` AdditionalProperties map[string]interface{} }
VDev struct for VDev
func NewVDev ¶
NewVDev instantiates a new VDev 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 NewVDevWithDefaults ¶
func NewVDevWithDefaults() *VDev
NewVDevWithDefaults instantiates a new VDev 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 (*VDev) GetChildren ¶
GetChildren returns the Children field value if set, zero value otherwise.
func (*VDev) GetChildrenOk ¶
GetChildrenOk returns a tuple with the Children field value if set, nil otherwise and a boolean to check if the value has been set.
func (*VDev) GetGuidOk ¶
GetGuidOk returns a tuple with the Guid field value and a boolean to check if the value has been set.
func (*VDev) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*VDev) GetPath ¶
GetPath returns the Path field value If the value is explicit nil, the zero value for string will be returned
func (*VDev) GetPathOk ¶
GetPathOk returns a tuple with the Path field value 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 (*VDev) GetStatusOk ¶
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*VDev) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*VDev) HasChildren ¶
HasChildren returns a boolean if a field has been set.
func (VDev) MarshalJSON ¶
func (*VDev) SetChildren ¶
SetChildren gets a reference to the given []Device and assigns it to the Children field.