bluefin

package
v0.0.0-...-b794a5f Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

README

Go API client for bluefin

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: v2.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/net/context

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

import bluefin "github.com/home-sol/truenas-sdk/bluefin"

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(), bluefin.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(), bluefin.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

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

URLs Configuration per Operation

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

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

Documentation for API Endpoints

All URIs are relative to https://truenas/api/v2.0

Class Method HTTP request Description
DiskApi GetDisk Get /disk/id/{id}
DiskApi ListDisks Get /disk
DiskApi UpdateDisk Put /disk/id/{id}
PoolApi ListPools Get /pool

Documentation For Models

Documentation For Authorization

BasicAuth
  • Type: HTTP basic authentication

Example

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

Example

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

Documentation for Utility Methods

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

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

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 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")
)
View Source
var AllowedAdvPowermgmtEnumValues = []AdvPowermgmt{
	"DISABLED",
	"1",
	"64",
	"127",
	"128",
	"192",
	"254",
}

All allowed values of AdvPowermgmt enum

View Source
var AllowedHDDStandbyEnumValues = []HDDStandby{
	"ALWAYS ON",
	"5",
	"10",
	"20",
	"30",
	"60",
	"120",
	"180",
	"240",
	"300",
	"330",
}

All allowed values of HDDStandby enum

Functions

func CacheExpires

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

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

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

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 {
	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

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 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
}

func (ApiGetDiskRequest) Execute

func (r ApiGetDiskRequest) Execute() (*Disk, *http.Response, error)

type ApiListDisksRequest

type ApiListDisksRequest struct {
	ApiService *DiskApiService
	// contains filtered or unexported fields
}

func (ApiListDisksRequest) Count

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 (ApiListDisksRequest) Offset

func (ApiListDisksRequest) Sort

type ApiListPoolsRequest

type ApiListPoolsRequest struct {
	ApiService *PoolApiService
	// contains filtered or unexported fields
}

func (ApiListPoolsRequest) Count

func (ApiListPoolsRequest) Execute

func (r ApiListPoolsRequest) Execute() ([]Pool, *http.Response, error)

func (ApiListPoolsRequest) Limit

func (ApiListPoolsRequest) Offset

func (ApiListPoolsRequest) Sort

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) 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 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"`
	UnavailDisk          map[string]interface{}   `json:"unavail_disk,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

func (o *Device) GetChildren() []map[string]interface{}

GetChildren returns the Children field value if set, zero value otherwise.

func (*Device) GetChildrenOk

func (o *Device) GetChildrenOk() ([]map[string]interface{}, bool)

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

func (o *Device) GetDevice() string

GetDevice returns the Device field value if set, zero value otherwise.

func (*Device) GetDeviceOk

func (o *Device) GetDeviceOk() (*string, bool)

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

func (o *Device) GetDisk() string

GetDisk returns the Disk field value if set, zero value otherwise.

func (*Device) GetDiskOk

func (o *Device) GetDiskOk() (*string, bool)

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

func (o *Device) GetGuid() string

GetGuid returns the Guid field value if set, zero value otherwise.

func (*Device) GetGuidOk

func (o *Device) GetGuidOk() (*string, bool)

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

func (o *Device) GetName() string

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

func (*Device) GetNameOk

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

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

func (*Device) GetPath

func (o *Device) GetPath() string

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

func (*Device) GetPathOk

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

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

func (*Device) GetStats

func (o *Device) GetStats() map[string]interface{}

GetStats returns the Stats field value if set, zero value otherwise.

func (*Device) GetStatsOk

func (o *Device) GetStatsOk() (map[string]interface{}, bool)

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

func (o *Device) GetStatus() string

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

func (*Device) GetStatusOk

func (o *Device) GetStatusOk() (*string, bool)

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

func (*Device) GetUnavailDisk

func (o *Device) GetUnavailDisk() map[string]interface{}

GetUnavailDisk returns the UnavailDisk field value if set, zero value otherwise.

func (*Device) GetUnavailDiskOk

func (o *Device) GetUnavailDiskOk() (map[string]interface{}, bool)

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

func (o *Device) HasChildren() bool

HasChildren returns a boolean if a field has been set.

func (*Device) HasDevice

func (o *Device) HasDevice() bool

HasDevice returns a boolean if a field has been set.

func (*Device) HasDisk

func (o *Device) HasDisk() bool

HasDisk returns a boolean if a field has been set.

func (*Device) HasGuid

func (o *Device) HasGuid() bool

HasGuid returns a boolean if a field has been set.

func (*Device) HasName

func (o *Device) HasName() bool

HasName returns a boolean if a field has been set.

func (*Device) HasPath

func (o *Device) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*Device) HasStats

func (o *Device) HasStats() bool

HasStats returns a boolean if a field has been set.

func (*Device) HasStatus

func (o *Device) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Device) HasUnavailDisk

func (o *Device) HasUnavailDisk() bool

HasUnavailDisk returns a boolean if a field has been set.

func (Device) MarshalJSON

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

func (*Device) SetChildren

func (o *Device) SetChildren(v []map[string]interface{})

SetChildren gets a reference to the given []map[string]interface{} and assigns it to the Children field.

func (*Device) SetDevice

func (o *Device) SetDevice(v string)

SetDevice gets a reference to the given string and assigns it to the Device field.

func (*Device) SetDisk

func (o *Device) SetDisk(v string)

SetDisk gets a reference to the given string and assigns it to the Disk field.

func (*Device) SetGuid

func (o *Device) SetGuid(v string)

SetGuid gets a reference to the given string and assigns it to the Guid field.

func (*Device) SetName

func (o *Device) SetName(v string)

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

func (*Device) SetPath

func (o *Device) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*Device) SetStats

func (o *Device) SetStats(v map[string]interface{})

SetStats gets a reference to the given map[string]interface{} and assigns it to the Stats field.

func (*Device) SetStatus

func (o *Device) SetStatus(v string)

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

func (*Device) SetUnavailDisk

func (o *Device) SetUnavailDisk(v map[string]interface{})

SetUnavailDisk gets a reference to the given map[string]interface{} and assigns it to the UnavailDisk field.

func (Device) ToMap

func (o Device) ToMap() (map[string]interface{}, error)

func (*Device) UnmarshalJSON

func (o *Device) UnmarshalJSON(bytes []byte) (err error)

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

func (o *Disk) GetBus() string

GetBus returns the Bus field value

func (*Disk) GetBusOk

func (o *Disk) GetBusOk() (*string, bool)

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

func (*Disk) GetCritical

func (o *Disk) GetCritical() int32

GetCritical returns the Critical field value If the value is explicit nil, the zero value for int32 will be returned

func (*Disk) GetCriticalOk

func (o *Disk) 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 (*Disk) GetDescription

func (o *Disk) GetDescription() string

GetDescription returns the Description field value

func (*Disk) GetDescriptionOk

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

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

func (*Disk) GetDevname

func (o *Disk) GetDevname() string

GetDevname returns the Devname field value

func (*Disk) GetDevnameOk

func (o *Disk) GetDevnameOk() (*string, bool)

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

func (*Disk) GetDifference

func (o *Disk) GetDifference() int32

GetDifference returns the Difference field value If the value is explicit nil, the zero value for int32 will be returned

func (*Disk) GetDifferenceOk

func (o *Disk) 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 (*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

func (o *Disk) GetExpiretime() string

GetExpiretime returns the Expiretime field value If the value is explicit nil, the zero value for string will be returned

func (*Disk) GetExpiretimeOk

func (o *Disk) GetExpiretimeOk() (*string, bool)

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

func (o *Disk) GetIdentifier() string

GetIdentifier returns the Identifier field value

func (*Disk) GetIdentifierOk

func (o *Disk) GetIdentifierOk() (*string, bool)

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

func (*Disk) GetInformational

func (o *Disk) GetInformational() int32

GetInformational returns the Informational field value If the value is explicit nil, the zero value for int32 will be returned

func (*Disk) GetInformationalOk

func (o *Disk) 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 (*Disk) GetKmipUid

func (o *Disk) GetKmipUid() string

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

func (*Disk) GetKmipUidOk

func (o *Disk) GetKmipUidOk() (*string, bool)

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

func (o *Disk) GetLunid() string

GetLunid returns the Lunid field value If the value is explicit nil, the zero value for string will be returned

func (*Disk) GetLunidOk

func (o *Disk) 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 (*Disk) GetModel

func (o *Disk) GetModel() string

GetModel returns the Model field value If the value is explicit nil, the zero value for string will be returned

func (*Disk) GetModelOk

func (o *Disk) GetModelOk() (*string, bool)

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

func (o *Disk) GetName() string

GetName returns the Name field value

func (*Disk) GetNameOk

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

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

func (*Disk) GetNumber

func (o *Disk) GetNumber() int32

GetNumber returns the Number field value

func (*Disk) GetNumberOk

func (o *Disk) GetNumberOk() (*int32, bool)

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

func (*Disk) GetPasswd

func (o *Disk) GetPasswd() string

GetPasswd returns the Passwd field value if set, zero value otherwise.

func (*Disk) GetPasswdOk

func (o *Disk) 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 (*Disk) GetPool

func (o *Disk) GetPool() string

GetPool returns the Pool field value If the value is explicit nil, the zero value for string will be returned

func (*Disk) GetPoolOk

func (o *Disk) GetPoolOk() (*string, bool)

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

func (o *Disk) GetRotationrate() int32

GetRotationrate returns the Rotationrate field value If the value is explicit nil, the zero value for int32 will be returned

func (*Disk) GetRotationrateOk

func (o *Disk) GetRotationrateOk() (*int32, bool)

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

func (o *Disk) GetSerial() string

GetSerial returns the Serial field value

func (*Disk) GetSerialOk

func (o *Disk) GetSerialOk() (*string, bool)

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

func (*Disk) GetSize

func (o *Disk) GetSize() int64

GetSize returns the Size field value

func (*Disk) GetSizeOk

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

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

func (*Disk) GetSmartoptions

func (o *Disk) GetSmartoptions() string

GetSmartoptions returns the Smartoptions field value

func (*Disk) GetSmartoptionsOk

func (o *Disk) GetSmartoptionsOk() (*string, bool)

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

func (*Disk) GetSubsystem

func (o *Disk) GetSubsystem() string

GetSubsystem returns the Subsystem field value

func (*Disk) GetSubsystemOk

func (o *Disk) GetSubsystemOk() (*string, bool)

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

func (*Disk) GetSupportsSmart

func (o *Disk) GetSupportsSmart() bool

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

func (*Disk) GetSupportsSmartOk

func (o *Disk) 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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Disk) GetTogglesmart

func (o *Disk) GetTogglesmart() bool

GetTogglesmart returns the Togglesmart field value

func (*Disk) GetTogglesmartOk

func (o *Disk) GetTogglesmartOk() (*bool, bool)

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

func (*Disk) GetTransfermode

func (o *Disk) GetTransfermode() string

GetTransfermode returns the Transfermode field value

func (*Disk) GetTransfermodeOk

func (o *Disk) GetTransfermodeOk() (*string, bool)

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

func (*Disk) GetType

func (o *Disk) GetType() string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*Disk) GetTypeOk

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

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

func (o *Disk) GetZfsGuid() string

GetZfsGuid returns the ZfsGuid field value If the value is explicit nil, the zero value for string will be returned

func (*Disk) GetZfsGuidOk

func (o *Disk) GetZfsGuidOk() (*string, bool)

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

func (o *Disk) HasKmipUid() bool

HasKmipUid returns a boolean if a field has been set.

func (*Disk) HasPasswd

func (o *Disk) HasPasswd() bool

HasPasswd returns a boolean if a field has been set.

func (*Disk) HasSupportsSmart

func (o *Disk) HasSupportsSmart() bool

HasSupportsSmart returns a boolean if a field has been set.

func (Disk) MarshalJSON

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

func (*Disk) SetAdvpowermgmt

func (o *Disk) SetAdvpowermgmt(v AdvPowermgmt)

SetAdvpowermgmt sets field value

func (*Disk) SetBus

func (o *Disk) SetBus(v string)

SetBus sets field value

func (*Disk) SetCritical

func (o *Disk) SetCritical(v int32)

SetCritical sets field value

func (*Disk) SetDescription

func (o *Disk) SetDescription(v string)

SetDescription sets field value

func (*Disk) SetDevname

func (o *Disk) SetDevname(v string)

SetDevname sets field value

func (*Disk) SetDifference

func (o *Disk) SetDifference(v int32)

SetDifference sets field value

func (*Disk) SetEnclosure

func (o *Disk) SetEnclosure(v DiskEnclosure)

SetEnclosure sets field value

func (*Disk) SetExpiretime

func (o *Disk) SetExpiretime(v string)

SetExpiretime sets field value

func (*Disk) SetHddstandby

func (o *Disk) SetHddstandby(v HDDStandby)

SetHddstandby sets field value

func (*Disk) SetIdentifier

func (o *Disk) SetIdentifier(v string)

SetIdentifier sets field value

func (*Disk) SetInformational

func (o *Disk) SetInformational(v int32)

SetInformational sets field value

func (*Disk) SetKmipUid

func (o *Disk) SetKmipUid(v string)

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

func (o *Disk) SetLunid(v string)

SetLunid sets field value

func (*Disk) SetModel

func (o *Disk) SetModel(v string)

SetModel sets field value

func (*Disk) SetName

func (o *Disk) SetName(v string)

SetName sets field value

func (*Disk) SetNumber

func (o *Disk) SetNumber(v int32)

SetNumber sets field value

func (*Disk) SetPasswd

func (o *Disk) SetPasswd(v string)

SetPasswd gets a reference to the given string and assigns it to the Passwd field.

func (*Disk) SetPool

func (o *Disk) SetPool(v string)

SetPool sets field value

func (*Disk) SetRotationrate

func (o *Disk) SetRotationrate(v int32)

SetRotationrate sets field value

func (*Disk) SetSerial

func (o *Disk) SetSerial(v string)

SetSerial sets field value

func (*Disk) SetSize

func (o *Disk) SetSize(v int64)

SetSize sets field value

func (*Disk) SetSmartoptions

func (o *Disk) SetSmartoptions(v string)

SetSmartoptions sets field value

func (*Disk) SetSubsystem

func (o *Disk) SetSubsystem(v string)

SetSubsystem sets field value

func (*Disk) SetSupportsSmart

func (o *Disk) SetSupportsSmart(v bool)

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

func (o *Disk) SetTogglesmart(v bool)

SetTogglesmart sets field value

func (*Disk) SetTransfermode

func (o *Disk) SetTransfermode(v string)

SetTransfermode sets field value

func (*Disk) SetType

func (o *Disk) SetType(v string)

SetType sets field value

func (*Disk) SetZfsGuid

func (o *Disk) SetZfsGuid(v string)

SetZfsGuid sets field value

func (Disk) ToMap

func (o Disk) ToMap() (map[string]interface{}, error)

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

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

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 MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableAdvPowermgmt

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

func NewNullableAdvPowermgmt

func NewNullableAdvPowermgmt(val *AdvPowermgmt) *NullableAdvPowermgmt

func (NullableAdvPowermgmt) Get

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 (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 (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 (NullableUpdateDiskRequest) IsSet

func (v NullableUpdateDiskRequest) IsSet() bool

func (NullableUpdateDiskRequest) MarshalJSON

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

func (*NullableUpdateDiskRequest) Set

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

func (o *Pool) GetAllocated() int64

GetAllocated returns the Allocated field value If the value is explicit nil, the zero value for int64 will be returned

func (*Pool) GetAllocatedOk

func (o *Pool) GetAllocatedOk() (*int64, bool)

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

func (o *Pool) GetAutotrim() map[string]interface{}

GetAutotrim returns the Autotrim field value

func (*Pool) GetAutotrimOk

func (o *Pool) GetAutotrimOk() (map[string]interface{}, bool)

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

func (*Pool) GetEncrypt

func (o *Pool) GetEncrypt() int32

GetEncrypt returns the Encrypt field value

func (*Pool) GetEncryptOk

func (o *Pool) GetEncryptOk() (*int32, bool)

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

func (*Pool) GetEncryptkey

func (o *Pool) GetEncryptkey() string

GetEncryptkey returns the Encryptkey field value

func (*Pool) GetEncryptkeyOk

func (o *Pool) GetEncryptkeyOk() (*string, bool)

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

func (*Pool) GetEncryptkeyPath

func (o *Pool) GetEncryptkeyPath() string

GetEncryptkeyPath returns the EncryptkeyPath field value If the value is explicit nil, the zero value for string will be returned

func (*Pool) GetEncryptkeyPathOk

func (o *Pool) GetEncryptkeyPathOk() (*string, bool)

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

func (o *Pool) GetFragmentation() string

GetFragmentation returns the Fragmentation field value If the value is explicit nil, the zero value for string will be returned

func (*Pool) GetFragmentationOk

func (o *Pool) GetFragmentationOk() (*string, bool)

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

func (o *Pool) GetFree() int64

GetFree returns the Free field value If the value is explicit nil, the zero value for int64 will be returned

func (*Pool) GetFreeOk

func (o *Pool) GetFreeOk() (*int64, bool)

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

func (o *Pool) GetFreeing() int64

GetFreeing returns the Freeing field value If the value is explicit nil, the zero value for int64 will be returned

func (*Pool) GetFreeingOk

func (o *Pool) GetFreeingOk() (*int64, bool)

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

func (o *Pool) GetGuid() string

GetGuid returns the Guid field value

func (*Pool) GetGuidOk

func (o *Pool) GetGuidOk() (*string, bool)

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

func (*Pool) GetHealthy

func (o *Pool) GetHealthy() bool

GetHealthy returns the Healthy field value

func (*Pool) GetHealthyOk

func (o *Pool) GetHealthyOk() (*bool, bool)

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

func (*Pool) GetId

func (o *Pool) GetId() int32

GetId returns the Id field value

func (*Pool) GetIdOk

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

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

func (*Pool) GetIsDecrypted

func (o *Pool) GetIsDecrypted() bool

GetIsDecrypted returns the IsDecrypted field value

func (*Pool) GetIsDecryptedOk

func (o *Pool) GetIsDecryptedOk() (*bool, bool)

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

func (*Pool) GetIsUpgraded

func (o *Pool) GetIsUpgraded() bool

GetIsUpgraded returns the IsUpgraded field value if set, zero value otherwise.

func (*Pool) GetIsUpgradedOk

func (o *Pool) GetIsUpgradedOk() (*bool, bool)

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

func (o *Pool) GetName() string

GetName returns the Name field value

func (*Pool) GetNameOk

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

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

func (*Pool) GetPath

func (o *Pool) GetPath() string

GetPath returns the Path field value

func (*Pool) GetPathOk

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

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

func (*Pool) GetScan

func (o *Pool) GetScan() map[string]interface{}

GetScan returns the Scan field value

func (*Pool) GetScanOk

func (o *Pool) GetScanOk() (map[string]interface{}, bool)

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

func (*Pool) GetSize

func (o *Pool) GetSize() int64

GetSize returns the Size field value If the value is explicit nil, the zero value for int64 will be returned

func (*Pool) GetSizeOk

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

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

func (o *Pool) GetStatus() string

GetStatus returns the Status field value

func (*Pool) GetStatusDetail

func (o *Pool) GetStatusDetail() string

GetStatusDetail returns the StatusDetail field value If the value is explicit nil, the zero value for string will be returned

func (*Pool) GetStatusDetailOk

func (o *Pool) GetStatusDetailOk() (*string, bool)

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

func (o *Pool) GetStatusOk() (*string, bool)

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

func (o *Pool) GetWarning() bool

GetWarning returns the Warning field value

func (*Pool) GetWarningOk

func (o *Pool) GetWarningOk() (*bool, bool)

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

func (*Pool) HasIsUpgraded

func (o *Pool) HasIsUpgraded() bool

HasIsUpgraded returns a boolean if a field has been set.

func (Pool) MarshalJSON

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

func (*Pool) SetAllocated

func (o *Pool) SetAllocated(v int64)

SetAllocated sets field value

func (*Pool) SetAutotrim

func (o *Pool) SetAutotrim(v map[string]interface{})

SetAutotrim sets field value

func (*Pool) SetEncrypt

func (o *Pool) SetEncrypt(v int32)

SetEncrypt sets field value

func (*Pool) SetEncryptkey

func (o *Pool) SetEncryptkey(v string)

SetEncryptkey sets field value

func (*Pool) SetEncryptkeyPath

func (o *Pool) SetEncryptkeyPath(v string)

SetEncryptkeyPath sets field value

func (*Pool) SetFragmentation

func (o *Pool) SetFragmentation(v string)

SetFragmentation sets field value

func (*Pool) SetFree

func (o *Pool) SetFree(v int64)

SetFree sets field value

func (*Pool) SetFreeing

func (o *Pool) SetFreeing(v int64)

SetFreeing sets field value

func (*Pool) SetGuid

func (o *Pool) SetGuid(v string)

SetGuid sets field value

func (*Pool) SetHealthy

func (o *Pool) SetHealthy(v bool)

SetHealthy sets field value

func (*Pool) SetId

func (o *Pool) SetId(v int32)

SetId sets field value

func (*Pool) SetIsDecrypted

func (o *Pool) SetIsDecrypted(v bool)

SetIsDecrypted sets field value

func (*Pool) SetIsUpgraded

func (o *Pool) SetIsUpgraded(v bool)

SetIsUpgraded gets a reference to the given bool and assigns it to the IsUpgraded field.

func (*Pool) SetName

func (o *Pool) SetName(v string)

SetName sets field value

func (*Pool) SetPath

func (o *Pool) SetPath(v string)

SetPath sets field value

func (*Pool) SetScan

func (o *Pool) SetScan(v map[string]interface{})

SetScan sets field value

func (*Pool) SetSize

func (o *Pool) SetSize(v int64)

SetSize sets field value

func (*Pool) SetStatus

func (o *Pool) SetStatus(v string)

SetStatus sets field value

func (*Pool) SetStatusDetail

func (o *Pool) SetStatusDetail(v string)

SetStatusDetail sets field value

func (*Pool) SetTopology

func (o *Pool) SetTopology(v PoolTopology)

SetTopology sets field value

func (*Pool) SetWarning

func (o *Pool) SetWarning(v bool)

SetWarning sets field value

func (Pool) ToMap

func (o Pool) ToMap() (map[string]interface{}, error)

func (*Pool) UnmarshalJSON

func (o *Pool) UnmarshalJSON(bytes []byte) (err error)

type PoolApiService

type PoolApiService service

PoolApiService PoolApi service

func (*PoolApiService) ListPools

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

func (o *PoolTopology) SetCache(v []VDev)

SetCache sets field value

func (*PoolTopology) SetData

func (o *PoolTopology) SetData(v []VDev)

SetData sets field value

func (*PoolTopology) SetDedup

func (o *PoolTopology) SetDedup(v []VDev)

SetDedup sets field value

func (*PoolTopology) SetLog

func (o *PoolTopology) SetLog(v []VDev)

SetLog sets field value

func (*PoolTopology) SetSpare

func (o *PoolTopology) SetSpare(v []VDev)

SetSpare sets field value

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

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

func NewVDev(guid string, name string, type_ string, path NullableString, status string) *VDev

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

func (o *VDev) GetChildren() []Device

GetChildren returns the Children field value if set, zero value otherwise.

func (*VDev) GetChildrenOk

func (o *VDev) GetChildrenOk() ([]Device, bool)

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

func (o *VDev) GetGuid() string

GetGuid returns the Guid field value

func (*VDev) GetGuidOk

func (o *VDev) GetGuidOk() (*string, bool)

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

func (*VDev) GetName

func (o *VDev) GetName() string

GetName returns the Name field value

func (*VDev) GetNameOk

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

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

func (*VDev) GetPath

func (o *VDev) GetPath() string

GetPath returns the Path field value If the value is explicit nil, the zero value for string will be returned

func (*VDev) GetPathOk

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

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

func (o *VDev) GetStatus() string

GetStatus returns the Status field value

func (*VDev) GetStatusOk

func (o *VDev) GetStatusOk() (*string, bool)

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

func (*VDev) GetType

func (o *VDev) GetType() string

GetType returns the Type field value

func (*VDev) GetTypeOk

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

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

func (*VDev) HasChildren

func (o *VDev) HasChildren() bool

HasChildren returns a boolean if a field has been set.

func (VDev) MarshalJSON

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

func (*VDev) SetChildren

func (o *VDev) SetChildren(v []Device)

SetChildren gets a reference to the given []Device and assigns it to the Children field.

func (*VDev) SetGuid

func (o *VDev) SetGuid(v string)

SetGuid sets field value

func (*VDev) SetName

func (o *VDev) SetName(v string)

SetName sets field value

func (*VDev) SetPath

func (o *VDev) SetPath(v string)

SetPath sets field value

func (*VDev) SetStatus

func (o *VDev) SetStatus(v string)

SetStatus sets field value

func (*VDev) SetType

func (o *VDev) SetType(v string)

SetType sets field value

func (VDev) ToMap

func (o VDev) ToMap() (map[string]interface{}, error)

func (*VDev) UnmarshalJSON

func (o *VDev) UnmarshalJSON(bytes []byte) (err error)

Jump to

Keyboard shortcuts

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