openapi

package module
v0.0.0-...-88577d0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 20 Imported by: 1

README

Go API client for openapi

This page describes the api endpoints for single source of truth infra project

[!NOTE] This project is part of a suite of projects that work together. For all other related projects, see this search query: owner:2zqa topic:ssot

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: 0.1.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 openapi "github.com/2zqa/ssot-specs-api-client"

To use a proxy, set the environment variable HTTP_PROXY:

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

Configuration of Server URL

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

Select Server Configuration

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

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

Documentation for API Endpoints

All URIs are relative to http://localhost:4000/v1

Class Method HTTP request Description
DevicesApi DevicesGet Get /devices Get all devices
DevicesApi DevicesPost Post /devices Create a device
DevicesApi DevicesUuidDelete Delete /devices/{uuid} Delete a device by uuid
DevicesApi DevicesUuidGet Get /devices/{uuid} Find device by uuid
DevicesApi DevicesUuidPut Put /devices/{uuid} Update or create a device by uuid
ServerApi HealthcheckGet Get /healthcheck Check the health of the API

Documentation For Models

Documentation For Authorization

ApiKeyAuth
  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

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

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

func 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 {
	DevicesApi *DevicesApiService

	ServerApi *ServerApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the SSOT API API v0.1.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 ApiDevicesGetRequest

type ApiDevicesGetRequest struct {
	ApiService *DevicesApiService
	// contains filtered or unexported fields
}

func (ApiDevicesGetRequest) Execute

func (ApiDevicesGetRequest) Page

Page number

func (ApiDevicesGetRequest) PageSize

func (r ApiDevicesGetRequest) PageSize(pageSize int32) ApiDevicesGetRequest

Page size

func (ApiDevicesGetRequest) Q

Search query

func (ApiDevicesGetRequest) Sort

Sort by

type ApiDevicesPostRequest

type ApiDevicesPostRequest struct {
	ApiService *DevicesApiService
	// contains filtered or unexported fields
}

func (ApiDevicesPostRequest) DevicePostInput

func (r ApiDevicesPostRequest) DevicePostInput(devicePostInput DevicePostInput) ApiDevicesPostRequest

The device to create

func (ApiDevicesPostRequest) Execute

type ApiDevicesUuidDeleteRequest

type ApiDevicesUuidDeleteRequest struct {
	ApiService *DevicesApiService
	// contains filtered or unexported fields
}

func (ApiDevicesUuidDeleteRequest) Execute

type ApiDevicesUuidGetRequest

type ApiDevicesUuidGetRequest struct {
	ApiService *DevicesApiService
	// contains filtered or unexported fields
}

func (ApiDevicesUuidGetRequest) Execute

type ApiDevicesUuidPutRequest

type ApiDevicesUuidPutRequest struct {
	ApiService *DevicesApiService
	// contains filtered or unexported fields
}

func (ApiDevicesUuidPutRequest) DevicePutInput

func (r ApiDevicesUuidPutRequest) DevicePutInput(devicePutInput DevicePutInput) ApiDevicesUuidPutRequest

The device to create or to update the specified device with

func (ApiDevicesUuidPutRequest) Execute

type ApiHealthcheckGetRequest

type ApiHealthcheckGetRequest struct {
	ApiService *ServerApiService
	// contains filtered or unexported fields
}

func (ApiHealthcheckGetRequest) Execute

type BIOS

type BIOS struct {
	Vendor *string `json:"vendor,omitempty"`
	// Version as reported by the BIOS
	Version *string `json:"version,omitempty"`
	// Date the BIOS was released in ISO 8601 format
	Date *string `json:"date,omitempty"`
}

BIOS struct for BIOS

func NewBIOS

func NewBIOS() *BIOS

NewBIOS instantiates a new BIOS 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 NewBIOSWithDefaults

func NewBIOSWithDefaults() *BIOS

NewBIOSWithDefaults instantiates a new BIOS 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 (*BIOS) GetDate

func (o *BIOS) GetDate() string

GetDate returns the Date field value if set, zero value otherwise.

func (*BIOS) GetDateOk

func (o *BIOS) GetDateOk() (*string, bool)

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

func (*BIOS) GetVendor

func (o *BIOS) GetVendor() string

GetVendor returns the Vendor field value if set, zero value otherwise.

func (*BIOS) GetVendorOk

func (o *BIOS) GetVendorOk() (*string, bool)

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

func (*BIOS) GetVersion

func (o *BIOS) GetVersion() string

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

func (*BIOS) GetVersionOk

func (o *BIOS) GetVersionOk() (*string, bool)

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

func (*BIOS) HasDate

func (o *BIOS) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*BIOS) HasVendor

func (o *BIOS) HasVendor() bool

HasVendor returns a boolean if a field has been set.

func (*BIOS) HasVersion

func (o *BIOS) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (BIOS) MarshalJSON

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

func (*BIOS) SetDate

func (o *BIOS) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*BIOS) SetVendor

func (o *BIOS) SetVendor(v string)

SetVendor gets a reference to the given string and assigns it to the Vendor field.

func (*BIOS) SetVersion

func (o *BIOS) SetVersion(v string)

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

func (BIOS) ToMap

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

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 CPU

type CPU struct {
	// Model name
	Name         *string `json:"name,omitempty"`
	Architecture *string `json:"architecture,omitempty"`
	CoreCount    *int64  `json:"core_count,omitempty"`
	CpuCount     *int64  `json:"cpu_count,omitempty"`
	// Max clock frequency in MHz
	MaxFrequencyMegahertz *int64   `json:"max_frequency_megahertz,omitempty"`
	Mitigations           []string `json:"mitigations,omitempty"`
}

CPU struct for CPU

func NewCPU

func NewCPU() *CPU

NewCPU instantiates a new CPU 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 NewCPUWithDefaults

func NewCPUWithDefaults() *CPU

NewCPUWithDefaults instantiates a new CPU 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 (*CPU) GetArchitecture

func (o *CPU) GetArchitecture() string

GetArchitecture returns the Architecture field value if set, zero value otherwise.

func (*CPU) GetArchitectureOk

func (o *CPU) GetArchitectureOk() (*string, bool)

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

func (*CPU) GetCoreCount

func (o *CPU) GetCoreCount() int64

GetCoreCount returns the CoreCount field value if set, zero value otherwise.

func (*CPU) GetCoreCountOk

func (o *CPU) GetCoreCountOk() (*int64, bool)

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

func (*CPU) GetCpuCount

func (o *CPU) GetCpuCount() int64

GetCpuCount returns the CpuCount field value if set, zero value otherwise.

func (*CPU) GetCpuCountOk

func (o *CPU) GetCpuCountOk() (*int64, bool)

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

func (*CPU) GetMaxFrequencyMegahertz

func (o *CPU) GetMaxFrequencyMegahertz() int64

GetMaxFrequencyMegahertz returns the MaxFrequencyMegahertz field value if set, zero value otherwise.

func (*CPU) GetMaxFrequencyMegahertzOk

func (o *CPU) GetMaxFrequencyMegahertzOk() (*int64, bool)

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

func (*CPU) GetMitigations

func (o *CPU) GetMitigations() []string

GetMitigations returns the Mitigations field value if set, zero value otherwise.

func (*CPU) GetMitigationsOk

func (o *CPU) GetMitigationsOk() ([]string, bool)

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

func (*CPU) GetName

func (o *CPU) GetName() string

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

func (*CPU) GetNameOk

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

func (o *CPU) HasArchitecture() bool

HasArchitecture returns a boolean if a field has been set.

func (*CPU) HasCoreCount

func (o *CPU) HasCoreCount() bool

HasCoreCount returns a boolean if a field has been set.

func (*CPU) HasCpuCount

func (o *CPU) HasCpuCount() bool

HasCpuCount returns a boolean if a field has been set.

func (*CPU) HasMaxFrequencyMegahertz

func (o *CPU) HasMaxFrequencyMegahertz() bool

HasMaxFrequencyMegahertz returns a boolean if a field has been set.

func (*CPU) HasMitigations

func (o *CPU) HasMitigations() bool

HasMitigations returns a boolean if a field has been set.

func (*CPU) HasName

func (o *CPU) HasName() bool

HasName returns a boolean if a field has been set.

func (CPU) MarshalJSON

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

func (*CPU) SetArchitecture

func (o *CPU) SetArchitecture(v string)

SetArchitecture gets a reference to the given string and assigns it to the Architecture field.

func (*CPU) SetCoreCount

func (o *CPU) SetCoreCount(v int64)

SetCoreCount gets a reference to the given int64 and assigns it to the CoreCount field.

func (*CPU) SetCpuCount

func (o *CPU) SetCpuCount(v int64)

SetCpuCount gets a reference to the given int64 and assigns it to the CpuCount field.

func (*CPU) SetMaxFrequencyMegahertz

func (o *CPU) SetMaxFrequencyMegahertz(v int64)

SetMaxFrequencyMegahertz gets a reference to the given int64 and assigns it to the MaxFrequencyMegahertz field.

func (*CPU) SetMitigations

func (o *CPU) SetMitigations(v []string)

SetMitigations gets a reference to the given []string and assigns it to the Mitigations field.

func (*CPU) SetName

func (o *CPU) SetName(v string)

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

func (CPU) ToMap

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

type Configuration

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

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

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

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

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type DIMMsInner

type DIMMsInner struct {
	// Size of the DIMM in gigabytes
	SizeGigabytes *int64 `json:"size_gigabytes,omitempty"`
	// Speed of the DIMM in megatransfers per second
	SpeedMtS *int64 `json:"speed_mt_s,omitempty"`
	// Manufacturer of the DIMM
	Manufacturer *string `json:"manufacturer,omitempty"`
	// Serial number of the DIMM
	SerialNumber *string `json:"serial_number,omitempty"`
	// Type of the DIMM
	Type *string `json:"type,omitempty"`
	// Part number of the DIMM
	PartNumber *string `json:"part_number,omitempty"`
	// Form factor of the DIMM
	FormFactor *string `json:"form_factor,omitempty"`
	// Locator of the DIMM
	Locator *string `json:"locator,omitempty"`
	// Bank locator of the DIMM
	BankLocator *string `json:"bank_locator,omitempty"`
}

DIMMsInner struct for DIMMsInner

func NewDIMMsInner

func NewDIMMsInner() *DIMMsInner

NewDIMMsInner instantiates a new DIMMsInner 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 NewDIMMsInnerWithDefaults

func NewDIMMsInnerWithDefaults() *DIMMsInner

NewDIMMsInnerWithDefaults instantiates a new DIMMsInner 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 (*DIMMsInner) GetBankLocator

func (o *DIMMsInner) GetBankLocator() string

GetBankLocator returns the BankLocator field value if set, zero value otherwise.

func (*DIMMsInner) GetBankLocatorOk

func (o *DIMMsInner) GetBankLocatorOk() (*string, bool)

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

func (*DIMMsInner) GetFormFactor

func (o *DIMMsInner) GetFormFactor() string

GetFormFactor returns the FormFactor field value if set, zero value otherwise.

func (*DIMMsInner) GetFormFactorOk

func (o *DIMMsInner) GetFormFactorOk() (*string, bool)

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

func (*DIMMsInner) GetLocator

func (o *DIMMsInner) GetLocator() string

GetLocator returns the Locator field value if set, zero value otherwise.

func (*DIMMsInner) GetLocatorOk

func (o *DIMMsInner) GetLocatorOk() (*string, bool)

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

func (*DIMMsInner) GetManufacturer

func (o *DIMMsInner) GetManufacturer() string

GetManufacturer returns the Manufacturer field value if set, zero value otherwise.

func (*DIMMsInner) GetManufacturerOk

func (o *DIMMsInner) GetManufacturerOk() (*string, bool)

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

func (*DIMMsInner) GetPartNumber

func (o *DIMMsInner) GetPartNumber() string

GetPartNumber returns the PartNumber field value if set, zero value otherwise.

func (*DIMMsInner) GetPartNumberOk

func (o *DIMMsInner) GetPartNumberOk() (*string, bool)

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

func (*DIMMsInner) GetSerialNumber

func (o *DIMMsInner) GetSerialNumber() string

GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.

func (*DIMMsInner) GetSerialNumberOk

func (o *DIMMsInner) GetSerialNumberOk() (*string, bool)

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

func (*DIMMsInner) GetSizeGigabytes

func (o *DIMMsInner) GetSizeGigabytes() int64

GetSizeGigabytes returns the SizeGigabytes field value if set, zero value otherwise.

func (*DIMMsInner) GetSizeGigabytesOk

func (o *DIMMsInner) GetSizeGigabytesOk() (*int64, bool)

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

func (*DIMMsInner) GetSpeedMtS

func (o *DIMMsInner) GetSpeedMtS() int64

GetSpeedMtS returns the SpeedMtS field value if set, zero value otherwise.

func (*DIMMsInner) GetSpeedMtSOk

func (o *DIMMsInner) GetSpeedMtSOk() (*int64, bool)

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

func (*DIMMsInner) GetType

func (o *DIMMsInner) GetType() string

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

func (*DIMMsInner) GetTypeOk

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

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

func (*DIMMsInner) HasBankLocator

func (o *DIMMsInner) HasBankLocator() bool

HasBankLocator returns a boolean if a field has been set.

func (*DIMMsInner) HasFormFactor

func (o *DIMMsInner) HasFormFactor() bool

HasFormFactor returns a boolean if a field has been set.

func (*DIMMsInner) HasLocator

func (o *DIMMsInner) HasLocator() bool

HasLocator returns a boolean if a field has been set.

func (*DIMMsInner) HasManufacturer

func (o *DIMMsInner) HasManufacturer() bool

HasManufacturer returns a boolean if a field has been set.

func (*DIMMsInner) HasPartNumber

func (o *DIMMsInner) HasPartNumber() bool

HasPartNumber returns a boolean if a field has been set.

func (*DIMMsInner) HasSerialNumber

func (o *DIMMsInner) HasSerialNumber() bool

HasSerialNumber returns a boolean if a field has been set.

func (*DIMMsInner) HasSizeGigabytes

func (o *DIMMsInner) HasSizeGigabytes() bool

HasSizeGigabytes returns a boolean if a field has been set.

func (*DIMMsInner) HasSpeedMtS

func (o *DIMMsInner) HasSpeedMtS() bool

HasSpeedMtS returns a boolean if a field has been set.

func (*DIMMsInner) HasType

func (o *DIMMsInner) HasType() bool

HasType returns a boolean if a field has been set.

func (DIMMsInner) MarshalJSON

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

func (*DIMMsInner) SetBankLocator

func (o *DIMMsInner) SetBankLocator(v string)

SetBankLocator gets a reference to the given string and assigns it to the BankLocator field.

func (*DIMMsInner) SetFormFactor

func (o *DIMMsInner) SetFormFactor(v string)

SetFormFactor gets a reference to the given string and assigns it to the FormFactor field.

func (*DIMMsInner) SetLocator

func (o *DIMMsInner) SetLocator(v string)

SetLocator gets a reference to the given string and assigns it to the Locator field.

func (*DIMMsInner) SetManufacturer

func (o *DIMMsInner) SetManufacturer(v string)

SetManufacturer gets a reference to the given string and assigns it to the Manufacturer field.

func (*DIMMsInner) SetPartNumber

func (o *DIMMsInner) SetPartNumber(v string)

SetPartNumber gets a reference to the given string and assigns it to the PartNumber field.

func (*DIMMsInner) SetSerialNumber

func (o *DIMMsInner) SetSerialNumber(v string)

SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field.

func (*DIMMsInner) SetSizeGigabytes

func (o *DIMMsInner) SetSizeGigabytes(v int64)

SetSizeGigabytes gets a reference to the given int64 and assigns it to the SizeGigabytes field.

func (*DIMMsInner) SetSpeedMtS

func (o *DIMMsInner) SetSpeedMtS(v int64)

SetSpeedMtS gets a reference to the given int64 and assigns it to the SpeedMtS field.

func (*DIMMsInner) SetType

func (o *DIMMsInner) SetType(v string)

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

func (DIMMsInner) ToMap

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

type Device

type Device struct {
	// Version 4 UUID
	Uuid *string `json:"uuid,omitempty"`
	// ISO 8601 formatted date-time string
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
	Specs     *Specs     `json:"specs,omitempty"`
}

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

func (o *Device) GetSpecs() Specs

GetSpecs returns the Specs field value if set, zero value otherwise.

func (*Device) GetSpecsOk

func (o *Device) GetSpecsOk() (*Specs, bool)

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

func (*Device) GetUpdatedAt

func (o *Device) GetUpdatedAt() time.Time

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

func (*Device) GetUpdatedAtOk

func (o *Device) GetUpdatedAtOk() (*time.Time, bool)

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

func (*Device) GetUuid

func (o *Device) GetUuid() string

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

func (*Device) GetUuidOk

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

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

func (*Device) HasSpecs

func (o *Device) HasSpecs() bool

HasSpecs returns a boolean if a field has been set.

func (*Device) HasUpdatedAt

func (o *Device) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*Device) HasUuid

func (o *Device) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (Device) MarshalJSON

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

func (*Device) SetSpecs

func (o *Device) SetSpecs(v Specs)

SetSpecs gets a reference to the given Specs and assigns it to the Specs field.

func (*Device) SetUpdatedAt

func (o *Device) SetUpdatedAt(v time.Time)

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

func (*Device) SetUuid

func (o *Device) SetUuid(v string)

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

func (Device) ToMap

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

type DevicePostInput

type DevicePostInput struct {
	// Version 4 UUID
	Uuid  *string `json:"uuid,omitempty"`
	Specs *Specs  `json:"specs,omitempty"`
}

DevicePostInput struct for DevicePostInput

func NewDevicePostInput

func NewDevicePostInput() *DevicePostInput

NewDevicePostInput instantiates a new DevicePostInput 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 NewDevicePostInputWithDefaults

func NewDevicePostInputWithDefaults() *DevicePostInput

NewDevicePostInputWithDefaults instantiates a new DevicePostInput 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 (*DevicePostInput) GetSpecs

func (o *DevicePostInput) GetSpecs() Specs

GetSpecs returns the Specs field value if set, zero value otherwise.

func (*DevicePostInput) GetSpecsOk

func (o *DevicePostInput) GetSpecsOk() (*Specs, bool)

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

func (*DevicePostInput) GetUuid

func (o *DevicePostInput) GetUuid() string

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

func (*DevicePostInput) GetUuidOk

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

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

func (*DevicePostInput) HasSpecs

func (o *DevicePostInput) HasSpecs() bool

HasSpecs returns a boolean if a field has been set.

func (*DevicePostInput) HasUuid

func (o *DevicePostInput) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (DevicePostInput) MarshalJSON

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

func (*DevicePostInput) SetSpecs

func (o *DevicePostInput) SetSpecs(v Specs)

SetSpecs gets a reference to the given Specs and assigns it to the Specs field.

func (*DevicePostInput) SetUuid

func (o *DevicePostInput) SetUuid(v string)

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

func (DevicePostInput) ToMap

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

type DevicePutInput

type DevicePutInput struct {
	Specs *Specs `json:"specs,omitempty"`
}

DevicePutInput struct for DevicePutInput

func NewDevicePutInput

func NewDevicePutInput() *DevicePutInput

NewDevicePutInput instantiates a new DevicePutInput 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 NewDevicePutInputWithDefaults

func NewDevicePutInputWithDefaults() *DevicePutInput

NewDevicePutInputWithDefaults instantiates a new DevicePutInput 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 (*DevicePutInput) GetSpecs

func (o *DevicePutInput) GetSpecs() Specs

GetSpecs returns the Specs field value if set, zero value otherwise.

func (*DevicePutInput) GetSpecsOk

func (o *DevicePutInput) GetSpecsOk() (*Specs, bool)

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

func (*DevicePutInput) HasSpecs

func (o *DevicePutInput) HasSpecs() bool

HasSpecs returns a boolean if a field has been set.

func (DevicePutInput) MarshalJSON

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

func (*DevicePutInput) SetSpecs

func (o *DevicePutInput) SetSpecs(v Specs)

SetSpecs gets a reference to the given Specs and assigns it to the Specs field.

func (DevicePutInput) ToMap

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

type DeviceResponse

type DeviceResponse struct {
	Device *Device `json:"device,omitempty"`
}

DeviceResponse struct for DeviceResponse

func NewDeviceResponse

func NewDeviceResponse() *DeviceResponse

NewDeviceResponse instantiates a new DeviceResponse 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 NewDeviceResponseWithDefaults

func NewDeviceResponseWithDefaults() *DeviceResponse

NewDeviceResponseWithDefaults instantiates a new DeviceResponse 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 (*DeviceResponse) GetDevice

func (o *DeviceResponse) GetDevice() Device

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

func (*DeviceResponse) GetDeviceOk

func (o *DeviceResponse) GetDeviceOk() (*Device, 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 (*DeviceResponse) HasDevice

func (o *DeviceResponse) HasDevice() bool

HasDevice returns a boolean if a field has been set.

func (DeviceResponse) MarshalJSON

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

func (*DeviceResponse) SetDevice

func (o *DeviceResponse) SetDevice(v Device)

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

func (DeviceResponse) ToMap

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

type DevicesApiService

type DevicesApiService service

DevicesApiService DevicesApi service

func (*DevicesApiService) DevicesGet

DevicesGet Get all devices

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

func (*DevicesApiService) DevicesGetExecute

Execute executes the request

@return DevicesGet200Response

func (*DevicesApiService) DevicesPost

DevicesPost Create a device

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

func (*DevicesApiService) DevicesPostExecute

Execute executes the request

@return DevicesPost201Response

func (*DevicesApiService) DevicesUuidDelete

func (a *DevicesApiService) DevicesUuidDelete(ctx context.Context, uuid string) ApiDevicesUuidDeleteRequest

DevicesUuidDelete Delete a device by uuid

Deletes a single device by uuid

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param uuid UUID of device to delete
@return ApiDevicesUuidDeleteRequest

func (*DevicesApiService) DevicesUuidDeleteExecute

func (a *DevicesApiService) DevicesUuidDeleteExecute(r ApiDevicesUuidDeleteRequest) (*http.Response, error)

Execute executes the request

func (*DevicesApiService) DevicesUuidGet

func (a *DevicesApiService) DevicesUuidGet(ctx context.Context, uuid string) ApiDevicesUuidGetRequest

DevicesUuidGet Find device by uuid

Returns a single device

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param uuid UUID of device to return
@return ApiDevicesUuidGetRequest

func (*DevicesApiService) DevicesUuidGetExecute

func (a *DevicesApiService) DevicesUuidGetExecute(r ApiDevicesUuidGetRequest) (*DeviceResponse, *http.Response, error)

Execute executes the request

@return DeviceResponse

func (*DevicesApiService) DevicesUuidPut

func (a *DevicesApiService) DevicesUuidPut(ctx context.Context, uuid string) ApiDevicesUuidPutRequest

DevicesUuidPut Update or create a device by uuid

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param uuid UUID of device to update or create
@return ApiDevicesUuidPutRequest

func (*DevicesApiService) DevicesUuidPutExecute

func (a *DevicesApiService) DevicesUuidPutExecute(r ApiDevicesUuidPutRequest) (*DeviceResponse, *http.Response, error)

Execute executes the request

@return DeviceResponse

type DevicesGet200Response

type DevicesGet200Response struct {
	Devices  []Device  `json:"devices,omitempty"`
	Metadata *Metadata `json:"metadata,omitempty"`
}

DevicesGet200Response struct for DevicesGet200Response

func NewDevicesGet200Response

func NewDevicesGet200Response() *DevicesGet200Response

NewDevicesGet200Response instantiates a new DevicesGet200Response 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 NewDevicesGet200ResponseWithDefaults

func NewDevicesGet200ResponseWithDefaults() *DevicesGet200Response

NewDevicesGet200ResponseWithDefaults instantiates a new DevicesGet200Response 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 (*DevicesGet200Response) GetDevices

func (o *DevicesGet200Response) GetDevices() []Device

GetDevices returns the Devices field value if set, zero value otherwise.

func (*DevicesGet200Response) GetDevicesOk

func (o *DevicesGet200Response) GetDevicesOk() ([]Device, bool)

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

func (*DevicesGet200Response) GetMetadata

func (o *DevicesGet200Response) GetMetadata() Metadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*DevicesGet200Response) GetMetadataOk

func (o *DevicesGet200Response) GetMetadataOk() (*Metadata, bool)

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

func (*DevicesGet200Response) HasDevices

func (o *DevicesGet200Response) HasDevices() bool

HasDevices returns a boolean if a field has been set.

func (*DevicesGet200Response) HasMetadata

func (o *DevicesGet200Response) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (DevicesGet200Response) MarshalJSON

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

func (*DevicesGet200Response) SetDevices

func (o *DevicesGet200Response) SetDevices(v []Device)

SetDevices gets a reference to the given []Device and assigns it to the Devices field.

func (*DevicesGet200Response) SetMetadata

func (o *DevicesGet200Response) SetMetadata(v Metadata)

SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field.

func (DevicesGet200Response) ToMap

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

type DevicesGet401Response

type DevicesGet401Response struct {
	Error *string `json:"error,omitempty"`
}

DevicesGet401Response struct for DevicesGet401Response

func NewDevicesGet401Response

func NewDevicesGet401Response() *DevicesGet401Response

NewDevicesGet401Response instantiates a new DevicesGet401Response 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 NewDevicesGet401ResponseWithDefaults

func NewDevicesGet401ResponseWithDefaults() *DevicesGet401Response

NewDevicesGet401ResponseWithDefaults instantiates a new DevicesGet401Response 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 (*DevicesGet401Response) GetError

func (o *DevicesGet401Response) GetError() string

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

func (*DevicesGet401Response) GetErrorOk

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

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

func (*DevicesGet401Response) HasError

func (o *DevicesGet401Response) HasError() bool

HasError returns a boolean if a field has been set.

func (DevicesGet401Response) MarshalJSON

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

func (*DevicesGet401Response) SetError

func (o *DevicesGet401Response) SetError(v string)

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

func (DevicesGet401Response) ToMap

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

type DevicesPost201Response

type DevicesPost201Response struct {
	Device *Device `json:"device,omitempty"`
}

DevicesPost201Response struct for DevicesPost201Response

func NewDevicesPost201Response

func NewDevicesPost201Response() *DevicesPost201Response

NewDevicesPost201Response instantiates a new DevicesPost201Response 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 NewDevicesPost201ResponseWithDefaults

func NewDevicesPost201ResponseWithDefaults() *DevicesPost201Response

NewDevicesPost201ResponseWithDefaults instantiates a new DevicesPost201Response 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 (*DevicesPost201Response) GetDevice

func (o *DevicesPost201Response) GetDevice() Device

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

func (*DevicesPost201Response) GetDeviceOk

func (o *DevicesPost201Response) GetDeviceOk() (*Device, 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 (*DevicesPost201Response) HasDevice

func (o *DevicesPost201Response) HasDevice() bool

HasDevice returns a boolean if a field has been set.

func (DevicesPost201Response) MarshalJSON

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

func (*DevicesPost201Response) SetDevice

func (o *DevicesPost201Response) SetDevice(v Device)

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

func (DevicesPost201Response) ToMap

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

type DisksInner

type DisksInner struct {
	// Model name
	Name *string `json:"name,omitempty"`
	// Size in megabytes
	SizeMegabytes *int64      `json:"size_megabytes,omitempty"`
	Partitions    []Partition `json:"partitions,omitempty"`
}

DisksInner struct for DisksInner

func NewDisksInner

func NewDisksInner() *DisksInner

NewDisksInner instantiates a new DisksInner 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 NewDisksInnerWithDefaults

func NewDisksInnerWithDefaults() *DisksInner

NewDisksInnerWithDefaults instantiates a new DisksInner 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 (*DisksInner) GetName

func (o *DisksInner) GetName() string

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

func (*DisksInner) GetNameOk

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

func (o *DisksInner) GetPartitions() []Partition

GetPartitions returns the Partitions field value if set, zero value otherwise.

func (*DisksInner) GetPartitionsOk

func (o *DisksInner) GetPartitionsOk() ([]Partition, bool)

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

func (*DisksInner) GetSizeMegabytes

func (o *DisksInner) GetSizeMegabytes() int64

GetSizeMegabytes returns the SizeMegabytes field value if set, zero value otherwise.

func (*DisksInner) GetSizeMegabytesOk

func (o *DisksInner) GetSizeMegabytesOk() (*int64, bool)

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

func (*DisksInner) HasName

func (o *DisksInner) HasName() bool

HasName returns a boolean if a field has been set.

func (*DisksInner) HasPartitions

func (o *DisksInner) HasPartitions() bool

HasPartitions returns a boolean if a field has been set.

func (*DisksInner) HasSizeMegabytes

func (o *DisksInner) HasSizeMegabytes() bool

HasSizeMegabytes returns a boolean if a field has been set.

func (DisksInner) MarshalJSON

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

func (*DisksInner) SetName

func (o *DisksInner) SetName(v string)

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

func (*DisksInner) SetPartitions

func (o *DisksInner) SetPartitions(v []Partition)

SetPartitions gets a reference to the given []Partition and assigns it to the Partitions field.

func (*DisksInner) SetSizeMegabytes

func (o *DisksInner) SetSizeMegabytes(v int64)

SetSizeMegabytes gets a reference to the given int64 and assigns it to the SizeMegabytes field.

func (DisksInner) ToMap

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

type Driver

type Driver struct {
	Name            *string `json:"name,omitempty"`
	Version         *string `json:"version,omitempty"`
	FirmwareVersion *string `json:"firmware_version,omitempty"`
}

Driver struct for Driver

func NewDriver

func NewDriver() *Driver

NewDriver instantiates a new Driver 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 NewDriverWithDefaults

func NewDriverWithDefaults() *Driver

NewDriverWithDefaults instantiates a new Driver 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 (*Driver) GetFirmwareVersion

func (o *Driver) GetFirmwareVersion() string

GetFirmwareVersion returns the FirmwareVersion field value if set, zero value otherwise.

func (*Driver) GetFirmwareVersionOk

func (o *Driver) GetFirmwareVersionOk() (*string, bool)

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

func (*Driver) GetName

func (o *Driver) GetName() string

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

func (*Driver) GetNameOk

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

func (o *Driver) GetVersion() string

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

func (*Driver) GetVersionOk

func (o *Driver) GetVersionOk() (*string, bool)

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

func (*Driver) HasFirmwareVersion

func (o *Driver) HasFirmwareVersion() bool

HasFirmwareVersion returns a boolean if a field has been set.

func (*Driver) HasName

func (o *Driver) HasName() bool

HasName returns a boolean if a field has been set.

func (*Driver) HasVersion

func (o *Driver) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (Driver) MarshalJSON

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

func (*Driver) SetFirmwareVersion

func (o *Driver) SetFirmwareVersion(v string)

SetFirmwareVersion gets a reference to the given string and assigns it to the FirmwareVersion field.

func (*Driver) SetName

func (o *Driver) SetName(v string)

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

func (*Driver) SetVersion

func (o *Driver) SetVersion(v string)

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

func (Driver) ToMap

func (o Driver) 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 Kernel

type Kernel struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

Kernel struct for Kernel

func NewKernel

func NewKernel() *Kernel

NewKernel instantiates a new Kernel 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 NewKernelWithDefaults

func NewKernelWithDefaults() *Kernel

NewKernelWithDefaults instantiates a new Kernel 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 (*Kernel) GetName

func (o *Kernel) GetName() string

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

func (*Kernel) GetNameOk

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

func (o *Kernel) GetVersion() string

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

func (*Kernel) GetVersionOk

func (o *Kernel) GetVersionOk() (*string, bool)

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

func (*Kernel) HasName

func (o *Kernel) HasName() bool

HasName returns a boolean if a field has been set.

func (*Kernel) HasVersion

func (o *Kernel) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (Kernel) MarshalJSON

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

func (*Kernel) SetName

func (o *Kernel) SetName(v string)

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

func (*Kernel) SetVersion

func (o *Kernel) SetVersion(v string)

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

func (Kernel) ToMap

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

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type Memory

type Memory struct {
	// Total memory installed on device in megabytes
	Memory *int64 `json:"memory,omitempty"`
	// Total swap memory installed on device in megabytes
	Swap        *int64       `json:"swap,omitempty"`
	SwapDevices []SwapDevice `json:"swap_devices,omitempty"`
}

Memory struct for Memory

func NewMemory

func NewMemory() *Memory

NewMemory instantiates a new Memory 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 NewMemoryWithDefaults

func NewMemoryWithDefaults() *Memory

NewMemoryWithDefaults instantiates a new Memory 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 (*Memory) GetMemory

func (o *Memory) GetMemory() int64

GetMemory returns the Memory field value if set, zero value otherwise.

func (*Memory) GetMemoryOk

func (o *Memory) GetMemoryOk() (*int64, bool)

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

func (*Memory) GetSwap

func (o *Memory) GetSwap() int64

GetSwap returns the Swap field value if set, zero value otherwise.

func (*Memory) GetSwapDevices

func (o *Memory) GetSwapDevices() []SwapDevice

GetSwapDevices returns the SwapDevices field value if set, zero value otherwise.

func (*Memory) GetSwapDevicesOk

func (o *Memory) GetSwapDevicesOk() ([]SwapDevice, bool)

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

func (*Memory) GetSwapOk

func (o *Memory) GetSwapOk() (*int64, bool)

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

func (*Memory) HasMemory

func (o *Memory) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*Memory) HasSwap

func (o *Memory) HasSwap() bool

HasSwap returns a boolean if a field has been set.

func (*Memory) HasSwapDevices

func (o *Memory) HasSwapDevices() bool

HasSwapDevices returns a boolean if a field has been set.

func (Memory) MarshalJSON

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

func (*Memory) SetMemory

func (o *Memory) SetMemory(v int64)

SetMemory gets a reference to the given int64 and assigns it to the Memory field.

func (*Memory) SetSwap

func (o *Memory) SetSwap(v int64)

SetSwap gets a reference to the given int64 and assigns it to the Swap field.

func (*Memory) SetSwapDevices

func (o *Memory) SetSwapDevices(v []SwapDevice)

SetSwapDevices gets a reference to the given []SwapDevice and assigns it to the SwapDevices field.

func (Memory) ToMap

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

type Metadata

type Metadata struct {
	// Page number
	CurrentPage *int32 `json:"current_page,omitempty"`
	// Page size
	PageSize *int32 `json:"page_size,omitempty"`
	// First page number
	FirstPage *int32 `json:"first_page,omitempty"`
	// Last page number
	LastPage *int32 `json:"last_page,omitempty"`
	// Total number of records
	TotalRecords *int32 `json:"total_records,omitempty"`
}

Metadata struct for Metadata

func NewMetadata

func NewMetadata() *Metadata

NewMetadata instantiates a new Metadata 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 NewMetadataWithDefaults

func NewMetadataWithDefaults() *Metadata

NewMetadataWithDefaults instantiates a new Metadata 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 (*Metadata) GetCurrentPage

func (o *Metadata) GetCurrentPage() int32

GetCurrentPage returns the CurrentPage field value if set, zero value otherwise.

func (*Metadata) GetCurrentPageOk

func (o *Metadata) GetCurrentPageOk() (*int32, bool)

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

func (*Metadata) GetFirstPage

func (o *Metadata) GetFirstPage() int32

GetFirstPage returns the FirstPage field value if set, zero value otherwise.

func (*Metadata) GetFirstPageOk

func (o *Metadata) GetFirstPageOk() (*int32, bool)

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

func (*Metadata) GetLastPage

func (o *Metadata) GetLastPage() int32

GetLastPage returns the LastPage field value if set, zero value otherwise.

func (*Metadata) GetLastPageOk

func (o *Metadata) GetLastPageOk() (*int32, bool)

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

func (*Metadata) GetPageSize

func (o *Metadata) GetPageSize() int32

GetPageSize returns the PageSize field value if set, zero value otherwise.

func (*Metadata) GetPageSizeOk

func (o *Metadata) GetPageSizeOk() (*int32, bool)

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

func (*Metadata) GetTotalRecords

func (o *Metadata) GetTotalRecords() int32

GetTotalRecords returns the TotalRecords field value if set, zero value otherwise.

func (*Metadata) GetTotalRecordsOk

func (o *Metadata) GetTotalRecordsOk() (*int32, bool)

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

func (*Metadata) HasCurrentPage

func (o *Metadata) HasCurrentPage() bool

HasCurrentPage returns a boolean if a field has been set.

func (*Metadata) HasFirstPage

func (o *Metadata) HasFirstPage() bool

HasFirstPage returns a boolean if a field has been set.

func (*Metadata) HasLastPage

func (o *Metadata) HasLastPage() bool

HasLastPage returns a boolean if a field has been set.

func (*Metadata) HasPageSize

func (o *Metadata) HasPageSize() bool

HasPageSize returns a boolean if a field has been set.

func (*Metadata) HasTotalRecords

func (o *Metadata) HasTotalRecords() bool

HasTotalRecords returns a boolean if a field has been set.

func (Metadata) MarshalJSON

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

func (*Metadata) SetCurrentPage

func (o *Metadata) SetCurrentPage(v int32)

SetCurrentPage gets a reference to the given int32 and assigns it to the CurrentPage field.

func (*Metadata) SetFirstPage

func (o *Metadata) SetFirstPage(v int32)

SetFirstPage gets a reference to the given int32 and assigns it to the FirstPage field.

func (*Metadata) SetLastPage

func (o *Metadata) SetLastPage(v int32)

SetLastPage gets a reference to the given int32 and assigns it to the LastPage field.

func (*Metadata) SetPageSize

func (o *Metadata) SetPageSize(v int32)

SetPageSize gets a reference to the given int32 and assigns it to the PageSize field.

func (*Metadata) SetTotalRecords

func (o *Metadata) SetTotalRecords(v int32)

SetTotalRecords gets a reference to the given int32 and assigns it to the TotalRecords field.

func (Metadata) ToMap

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

type Motherboard

type Motherboard struct {
	Vendor       *string `json:"vendor,omitempty"`
	Name         *string `json:"name,omitempty"`
	SerialNumber *string `json:"serial_number,omitempty"`
}

Motherboard struct for Motherboard

func NewMotherboard

func NewMotherboard() *Motherboard

NewMotherboard instantiates a new Motherboard 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 NewMotherboardWithDefaults

func NewMotherboardWithDefaults() *Motherboard

NewMotherboardWithDefaults instantiates a new Motherboard 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 (*Motherboard) GetName

func (o *Motherboard) GetName() string

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

func (*Motherboard) GetNameOk

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

func (o *Motherboard) GetSerialNumber() string

GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.

func (*Motherboard) GetSerialNumberOk

func (o *Motherboard) GetSerialNumberOk() (*string, bool)

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

func (*Motherboard) GetVendor

func (o *Motherboard) GetVendor() string

GetVendor returns the Vendor field value if set, zero value otherwise.

func (*Motherboard) GetVendorOk

func (o *Motherboard) GetVendorOk() (*string, bool)

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

func (*Motherboard) HasName

func (o *Motherboard) HasName() bool

HasName returns a boolean if a field has been set.

func (*Motherboard) HasSerialNumber

func (o *Motherboard) HasSerialNumber() bool

HasSerialNumber returns a boolean if a field has been set.

func (*Motherboard) HasVendor

func (o *Motherboard) HasVendor() bool

HasVendor returns a boolean if a field has been set.

func (Motherboard) MarshalJSON

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

func (*Motherboard) SetName

func (o *Motherboard) SetName(v string)

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

func (*Motherboard) SetSerialNumber

func (o *Motherboard) SetSerialNumber(v string)

SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field.

func (*Motherboard) SetVendor

func (o *Motherboard) SetVendor(v string)

SetVendor gets a reference to the given string and assigns it to the Vendor field.

func (Motherboard) ToMap

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

type Network

type Network struct {
	Hostname   *string            `json:"hostname,omitempty"`
	Interfaces []NetworkInterface `json:"interfaces,omitempty"`
}

Network struct for Network

func NewNetwork

func NewNetwork() *Network

NewNetwork instantiates a new Network 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 NewNetworkWithDefaults

func NewNetworkWithDefaults() *Network

NewNetworkWithDefaults instantiates a new Network 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 (*Network) GetHostname

func (o *Network) GetHostname() string

GetHostname returns the Hostname field value if set, zero value otherwise.

func (*Network) GetHostnameOk

func (o *Network) GetHostnameOk() (*string, bool)

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

func (*Network) GetInterfaces

func (o *Network) GetInterfaces() []NetworkInterface

GetInterfaces returns the Interfaces field value if set, zero value otherwise.

func (*Network) GetInterfacesOk

func (o *Network) GetInterfacesOk() ([]NetworkInterface, bool)

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

func (*Network) HasHostname

func (o *Network) HasHostname() bool

HasHostname returns a boolean if a field has been set.

func (*Network) HasInterfaces

func (o *Network) HasInterfaces() bool

HasInterfaces returns a boolean if a field has been set.

func (Network) MarshalJSON

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

func (*Network) SetHostname

func (o *Network) SetHostname(v string)

SetHostname gets a reference to the given string and assigns it to the Hostname field.

func (*Network) SetInterfaces

func (o *Network) SetInterfaces(v []NetworkInterface)

SetInterfaces gets a reference to the given []NetworkInterface and assigns it to the Interfaces field.

func (Network) ToMap

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

type NetworkInterface

type NetworkInterface struct {
	// MAC address of the interface formatted in six groups of two hexadecimal digits, separated by colons
	MacAddress    *string  `json:"mac_address,omitempty"`
	Driver        *Driver  `json:"driver,omitempty"`
	Ipv4Addresses []string `json:"ipv4_addresses,omitempty"`
	Ipv6Addresses []string `json:"ipv6_addresses,omitempty"`
}

NetworkInterface struct for NetworkInterface

func NewNetworkInterface

func NewNetworkInterface() *NetworkInterface

NewNetworkInterface instantiates a new NetworkInterface 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 NewNetworkInterfaceWithDefaults

func NewNetworkInterfaceWithDefaults() *NetworkInterface

NewNetworkInterfaceWithDefaults instantiates a new NetworkInterface 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 (*NetworkInterface) GetDriver

func (o *NetworkInterface) GetDriver() Driver

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

func (*NetworkInterface) GetDriverOk

func (o *NetworkInterface) GetDriverOk() (*Driver, bool)

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

func (*NetworkInterface) GetIpv4Addresses

func (o *NetworkInterface) GetIpv4Addresses() []string

GetIpv4Addresses returns the Ipv4Addresses field value if set, zero value otherwise.

func (*NetworkInterface) GetIpv4AddressesOk

func (o *NetworkInterface) GetIpv4AddressesOk() ([]string, bool)

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

func (*NetworkInterface) GetIpv6Addresses

func (o *NetworkInterface) GetIpv6Addresses() []string

GetIpv6Addresses returns the Ipv6Addresses field value if set, zero value otherwise.

func (*NetworkInterface) GetIpv6AddressesOk

func (o *NetworkInterface) GetIpv6AddressesOk() ([]string, bool)

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

func (*NetworkInterface) GetMacAddress

func (o *NetworkInterface) GetMacAddress() string

GetMacAddress returns the MacAddress field value if set, zero value otherwise.

func (*NetworkInterface) GetMacAddressOk

func (o *NetworkInterface) GetMacAddressOk() (*string, bool)

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

func (*NetworkInterface) HasDriver

func (o *NetworkInterface) HasDriver() bool

HasDriver returns a boolean if a field has been set.

func (*NetworkInterface) HasIpv4Addresses

func (o *NetworkInterface) HasIpv4Addresses() bool

HasIpv4Addresses returns a boolean if a field has been set.

func (*NetworkInterface) HasIpv6Addresses

func (o *NetworkInterface) HasIpv6Addresses() bool

HasIpv6Addresses returns a boolean if a field has been set.

func (*NetworkInterface) HasMacAddress

func (o *NetworkInterface) HasMacAddress() bool

HasMacAddress returns a boolean if a field has been set.

func (NetworkInterface) MarshalJSON

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

func (*NetworkInterface) SetDriver

func (o *NetworkInterface) SetDriver(v Driver)

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

func (*NetworkInterface) SetIpv4Addresses

func (o *NetworkInterface) SetIpv4Addresses(v []string)

SetIpv4Addresses gets a reference to the given []string and assigns it to the Ipv4Addresses field.

func (*NetworkInterface) SetIpv6Addresses

func (o *NetworkInterface) SetIpv6Addresses(v []string)

SetIpv6Addresses gets a reference to the given []string and assigns it to the Ipv6Addresses field.

func (*NetworkInterface) SetMacAddress

func (o *NetworkInterface) SetMacAddress(v string)

SetMacAddress gets a reference to the given string and assigns it to the MacAddress field.

func (NetworkInterface) ToMap

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

type NullableBIOS

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

func NewNullableBIOS

func NewNullableBIOS(val *BIOS) *NullableBIOS

func (NullableBIOS) Get

func (v NullableBIOS) Get() *BIOS

func (NullableBIOS) IsSet

func (v NullableBIOS) IsSet() bool

func (NullableBIOS) MarshalJSON

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

func (*NullableBIOS) Set

func (v *NullableBIOS) Set(val *BIOS)

func (*NullableBIOS) UnmarshalJSON

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

func (*NullableBIOS) Unset

func (v *NullableBIOS) 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 NullableCPU

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

func NewNullableCPU

func NewNullableCPU(val *CPU) *NullableCPU

func (NullableCPU) Get

func (v NullableCPU) Get() *CPU

func (NullableCPU) IsSet

func (v NullableCPU) IsSet() bool

func (NullableCPU) MarshalJSON

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

func (*NullableCPU) Set

func (v *NullableCPU) Set(val *CPU)

func (*NullableCPU) UnmarshalJSON

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

func (*NullableCPU) Unset

func (v *NullableCPU) Unset()

type NullableDIMMsInner

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

func NewNullableDIMMsInner

func NewNullableDIMMsInner(val *DIMMsInner) *NullableDIMMsInner

func (NullableDIMMsInner) Get

func (v NullableDIMMsInner) Get() *DIMMsInner

func (NullableDIMMsInner) IsSet

func (v NullableDIMMsInner) IsSet() bool

func (NullableDIMMsInner) MarshalJSON

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

func (*NullableDIMMsInner) Set

func (v *NullableDIMMsInner) Set(val *DIMMsInner)

func (*NullableDIMMsInner) UnmarshalJSON

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

func (*NullableDIMMsInner) Unset

func (v *NullableDIMMsInner) 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 NullableDevicePostInput

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

func NewNullableDevicePostInput

func NewNullableDevicePostInput(val *DevicePostInput) *NullableDevicePostInput

func (NullableDevicePostInput) Get

func (NullableDevicePostInput) IsSet

func (v NullableDevicePostInput) IsSet() bool

func (NullableDevicePostInput) MarshalJSON

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

func (*NullableDevicePostInput) Set

func (*NullableDevicePostInput) UnmarshalJSON

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

func (*NullableDevicePostInput) Unset

func (v *NullableDevicePostInput) Unset()

type NullableDevicePutInput

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

func NewNullableDevicePutInput

func NewNullableDevicePutInput(val *DevicePutInput) *NullableDevicePutInput

func (NullableDevicePutInput) Get

func (NullableDevicePutInput) IsSet

func (v NullableDevicePutInput) IsSet() bool

func (NullableDevicePutInput) MarshalJSON

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

func (*NullableDevicePutInput) Set

func (*NullableDevicePutInput) UnmarshalJSON

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

func (*NullableDevicePutInput) Unset

func (v *NullableDevicePutInput) Unset()

type NullableDeviceResponse

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

func NewNullableDeviceResponse

func NewNullableDeviceResponse(val *DeviceResponse) *NullableDeviceResponse

func (NullableDeviceResponse) Get

func (NullableDeviceResponse) IsSet

func (v NullableDeviceResponse) IsSet() bool

func (NullableDeviceResponse) MarshalJSON

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

func (*NullableDeviceResponse) Set

func (*NullableDeviceResponse) UnmarshalJSON

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

func (*NullableDeviceResponse) Unset

func (v *NullableDeviceResponse) Unset()

type NullableDevicesGet200Response

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

func (NullableDevicesGet200Response) Get

func (NullableDevicesGet200Response) IsSet

func (NullableDevicesGet200Response) MarshalJSON

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

func (*NullableDevicesGet200Response) Set

func (*NullableDevicesGet200Response) UnmarshalJSON

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

func (*NullableDevicesGet200Response) Unset

func (v *NullableDevicesGet200Response) Unset()

type NullableDevicesGet401Response

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

func (NullableDevicesGet401Response) Get

func (NullableDevicesGet401Response) IsSet

func (NullableDevicesGet401Response) MarshalJSON

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

func (*NullableDevicesGet401Response) Set

func (*NullableDevicesGet401Response) UnmarshalJSON

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

func (*NullableDevicesGet401Response) Unset

func (v *NullableDevicesGet401Response) Unset()

type NullableDevicesPost201Response

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

func (NullableDevicesPost201Response) Get

func (NullableDevicesPost201Response) IsSet

func (NullableDevicesPost201Response) MarshalJSON

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

func (*NullableDevicesPost201Response) Set

func (*NullableDevicesPost201Response) UnmarshalJSON

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

func (*NullableDevicesPost201Response) Unset

func (v *NullableDevicesPost201Response) Unset()

type NullableDisksInner

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

func NewNullableDisksInner

func NewNullableDisksInner(val *DisksInner) *NullableDisksInner

func (NullableDisksInner) Get

func (v NullableDisksInner) Get() *DisksInner

func (NullableDisksInner) IsSet

func (v NullableDisksInner) IsSet() bool

func (NullableDisksInner) MarshalJSON

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

func (*NullableDisksInner) Set

func (v *NullableDisksInner) Set(val *DisksInner)

func (*NullableDisksInner) UnmarshalJSON

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

func (*NullableDisksInner) Unset

func (v *NullableDisksInner) Unset()

type NullableDriver

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

func NewNullableDriver

func NewNullableDriver(val *Driver) *NullableDriver

func (NullableDriver) Get

func (v NullableDriver) Get() *Driver

func (NullableDriver) IsSet

func (v NullableDriver) IsSet() bool

func (NullableDriver) MarshalJSON

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

func (*NullableDriver) Set

func (v *NullableDriver) Set(val *Driver)

func (*NullableDriver) UnmarshalJSON

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

func (*NullableDriver) Unset

func (v *NullableDriver) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

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

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

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

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableKernel

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

func NewNullableKernel

func NewNullableKernel(val *Kernel) *NullableKernel

func (NullableKernel) Get

func (v NullableKernel) Get() *Kernel

func (NullableKernel) IsSet

func (v NullableKernel) IsSet() bool

func (NullableKernel) MarshalJSON

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

func (*NullableKernel) Set

func (v *NullableKernel) Set(val *Kernel)

func (*NullableKernel) UnmarshalJSON

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

func (*NullableKernel) Unset

func (v *NullableKernel) Unset()

type NullableMemory

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

func NewNullableMemory

func NewNullableMemory(val *Memory) *NullableMemory

func (NullableMemory) Get

func (v NullableMemory) Get() *Memory

func (NullableMemory) IsSet

func (v NullableMemory) IsSet() bool

func (NullableMemory) MarshalJSON

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

func (*NullableMemory) Set

func (v *NullableMemory) Set(val *Memory)

func (*NullableMemory) UnmarshalJSON

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

func (*NullableMemory) Unset

func (v *NullableMemory) Unset()

type NullableMetadata

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

func NewNullableMetadata

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON

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

func (*NullableMetadata) Set

func (v *NullableMetadata) Set(val *Metadata)

func (*NullableMetadata) UnmarshalJSON

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

func (*NullableMetadata) Unset

func (v *NullableMetadata) Unset()

type NullableMotherboard

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

func NewNullableMotherboard

func NewNullableMotherboard(val *Motherboard) *NullableMotherboard

func (NullableMotherboard) Get

func (NullableMotherboard) IsSet

func (v NullableMotherboard) IsSet() bool

func (NullableMotherboard) MarshalJSON

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

func (*NullableMotherboard) Set

func (v *NullableMotherboard) Set(val *Motherboard)

func (*NullableMotherboard) UnmarshalJSON

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

func (*NullableMotherboard) Unset

func (v *NullableMotherboard) Unset()

type NullableNetwork

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

func NewNullableNetwork

func NewNullableNetwork(val *Network) *NullableNetwork

func (NullableNetwork) Get

func (v NullableNetwork) Get() *Network

func (NullableNetwork) IsSet

func (v NullableNetwork) IsSet() bool

func (NullableNetwork) MarshalJSON

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

func (*NullableNetwork) Set

func (v *NullableNetwork) Set(val *Network)

func (*NullableNetwork) UnmarshalJSON

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

func (*NullableNetwork) Unset

func (v *NullableNetwork) Unset()

type NullableNetworkInterface

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

func NewNullableNetworkInterface

func NewNullableNetworkInterface(val *NetworkInterface) *NullableNetworkInterface

func (NullableNetworkInterface) Get

func (NullableNetworkInterface) IsSet

func (v NullableNetworkInterface) IsSet() bool

func (NullableNetworkInterface) MarshalJSON

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

func (*NullableNetworkInterface) Set

func (*NullableNetworkInterface) UnmarshalJSON

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

func (*NullableNetworkInterface) Unset

func (v *NullableNetworkInterface) Unset()

type NullableOEM

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

func NewNullableOEM

func NewNullableOEM(val *OEM) *NullableOEM

func (NullableOEM) Get

func (v NullableOEM) Get() *OEM

func (NullableOEM) IsSet

func (v NullableOEM) IsSet() bool

func (NullableOEM) MarshalJSON

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

func (*NullableOEM) Set

func (v *NullableOEM) Set(val *OEM)

func (*NullableOEM) UnmarshalJSON

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

func (*NullableOEM) Unset

func (v *NullableOEM) Unset()

type NullablePartition

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

func NewNullablePartition

func NewNullablePartition(val *Partition) *NullablePartition

func (NullablePartition) Get

func (v NullablePartition) Get() *Partition

func (NullablePartition) IsSet

func (v NullablePartition) IsSet() bool

func (NullablePartition) MarshalJSON

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

func (*NullablePartition) Set

func (v *NullablePartition) Set(val *Partition)

func (*NullablePartition) UnmarshalJSON

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

func (*NullablePartition) Unset

func (v *NullablePartition) Unset()

type NullableRelease

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

func NewNullableRelease

func NewNullableRelease(val *Release) *NullableRelease

func (NullableRelease) Get

func (v NullableRelease) Get() *Release

func (NullableRelease) IsSet

func (v NullableRelease) IsSet() bool

func (NullableRelease) MarshalJSON

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

func (*NullableRelease) Set

func (v *NullableRelease) Set(val *Release)

func (*NullableRelease) UnmarshalJSON

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

func (*NullableRelease) Unset

func (v *NullableRelease) Unset()

type NullableServerInfo

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

func NewNullableServerInfo

func NewNullableServerInfo(val *ServerInfo) *NullableServerInfo

func (NullableServerInfo) Get

func (v NullableServerInfo) Get() *ServerInfo

func (NullableServerInfo) IsSet

func (v NullableServerInfo) IsSet() bool

func (NullableServerInfo) MarshalJSON

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

func (*NullableServerInfo) Set

func (v *NullableServerInfo) Set(val *ServerInfo)

func (*NullableServerInfo) UnmarshalJSON

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

func (*NullableServerInfo) Unset

func (v *NullableServerInfo) Unset()

type NullableServerInfoSystemInfo

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

func NewNullableServerInfoSystemInfo

func NewNullableServerInfoSystemInfo(val *ServerInfoSystemInfo) *NullableServerInfoSystemInfo

func (NullableServerInfoSystemInfo) Get

func (NullableServerInfoSystemInfo) IsSet

func (NullableServerInfoSystemInfo) MarshalJSON

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

func (*NullableServerInfoSystemInfo) Set

func (*NullableServerInfoSystemInfo) UnmarshalJSON

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

func (*NullableServerInfoSystemInfo) Unset

func (v *NullableServerInfoSystemInfo) Unset()

type NullableSpecs

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

func NewNullableSpecs

func NewNullableSpecs(val *Specs) *NullableSpecs

func (NullableSpecs) Get

func (v NullableSpecs) Get() *Specs

func (NullableSpecs) IsSet

func (v NullableSpecs) IsSet() bool

func (NullableSpecs) MarshalJSON

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

func (*NullableSpecs) Set

func (v *NullableSpecs) Set(val *Specs)

func (*NullableSpecs) UnmarshalJSON

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

func (*NullableSpecs) Unset

func (v *NullableSpecs) 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 NullableSwapDevice

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

func NewNullableSwapDevice

func NewNullableSwapDevice(val *SwapDevice) *NullableSwapDevice

func (NullableSwapDevice) Get

func (v NullableSwapDevice) Get() *SwapDevice

func (NullableSwapDevice) IsSet

func (v NullableSwapDevice) IsSet() bool

func (NullableSwapDevice) MarshalJSON

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

func (*NullableSwapDevice) Set

func (v *NullableSwapDevice) Set(val *SwapDevice)

func (*NullableSwapDevice) UnmarshalJSON

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

func (*NullableSwapDevice) Unset

func (v *NullableSwapDevice) 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 NullableVirtualization

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

func NewNullableVirtualization

func NewNullableVirtualization(val *Virtualization) *NullableVirtualization

func (NullableVirtualization) Get

func (NullableVirtualization) IsSet

func (v NullableVirtualization) IsSet() bool

func (NullableVirtualization) MarshalJSON

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

func (*NullableVirtualization) Set

func (*NullableVirtualization) UnmarshalJSON

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

func (*NullableVirtualization) Unset

func (v *NullableVirtualization) Unset()

type OEM

type OEM struct {
	Manufacturer *string `json:"manufacturer,omitempty"`
	ProductName  *string `json:"product_name,omitempty"`
	SerialNumber *string `json:"serial_number,omitempty"`
}

OEM struct for OEM

func NewOEM

func NewOEM() *OEM

NewOEM instantiates a new OEM 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 NewOEMWithDefaults

func NewOEMWithDefaults() *OEM

NewOEMWithDefaults instantiates a new OEM 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 (*OEM) GetManufacturer

func (o *OEM) GetManufacturer() string

GetManufacturer returns the Manufacturer field value if set, zero value otherwise.

func (*OEM) GetManufacturerOk

func (o *OEM) GetManufacturerOk() (*string, bool)

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

func (*OEM) GetProductName

func (o *OEM) GetProductName() string

GetProductName returns the ProductName field value if set, zero value otherwise.

func (*OEM) GetProductNameOk

func (o *OEM) GetProductNameOk() (*string, bool)

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

func (*OEM) GetSerialNumber

func (o *OEM) GetSerialNumber() string

GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.

func (*OEM) GetSerialNumberOk

func (o *OEM) GetSerialNumberOk() (*string, bool)

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

func (*OEM) HasManufacturer

func (o *OEM) HasManufacturer() bool

HasManufacturer returns a boolean if a field has been set.

func (*OEM) HasProductName

func (o *OEM) HasProductName() bool

HasProductName returns a boolean if a field has been set.

func (*OEM) HasSerialNumber

func (o *OEM) HasSerialNumber() bool

HasSerialNumber returns a boolean if a field has been set.

func (OEM) MarshalJSON

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

func (*OEM) SetManufacturer

func (o *OEM) SetManufacturer(v string)

SetManufacturer gets a reference to the given string and assigns it to the Manufacturer field.

func (*OEM) SetProductName

func (o *OEM) SetProductName(v string)

SetProductName gets a reference to the given string and assigns it to the ProductName field.

func (*OEM) SetSerialNumber

func (o *OEM) SetSerialNumber(v string)

SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field.

func (OEM) ToMap

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

type Partition

type Partition struct {
	Filesystem *string `json:"filesystem,omitempty"`
	// Amount of megabytes the partition can store
	CapacityMegabytes *int64  `json:"capacity_megabytes,omitempty"`
	Source            *string `json:"source,omitempty"`
	Target            *string `json:"target,omitempty"`
}

Partition struct for Partition

func NewPartition

func NewPartition() *Partition

NewPartition instantiates a new Partition 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 NewPartitionWithDefaults

func NewPartitionWithDefaults() *Partition

NewPartitionWithDefaults instantiates a new Partition 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 (*Partition) GetCapacityMegabytes

func (o *Partition) GetCapacityMegabytes() int64

GetCapacityMegabytes returns the CapacityMegabytes field value if set, zero value otherwise.

func (*Partition) GetCapacityMegabytesOk

func (o *Partition) GetCapacityMegabytesOk() (*int64, bool)

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

func (*Partition) GetFilesystem

func (o *Partition) GetFilesystem() string

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

func (*Partition) GetFilesystemOk

func (o *Partition) GetFilesystemOk() (*string, bool)

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

func (*Partition) GetSource

func (o *Partition) GetSource() string

GetSource returns the Source field value if set, zero value otherwise.

func (*Partition) GetSourceOk

func (o *Partition) GetSourceOk() (*string, bool)

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

func (*Partition) GetTarget

func (o *Partition) GetTarget() string

GetTarget returns the Target field value if set, zero value otherwise.

func (*Partition) GetTargetOk

func (o *Partition) GetTargetOk() (*string, bool)

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

func (*Partition) HasCapacityMegabytes

func (o *Partition) HasCapacityMegabytes() bool

HasCapacityMegabytes returns a boolean if a field has been set.

func (*Partition) HasFilesystem

func (o *Partition) HasFilesystem() bool

HasFilesystem returns a boolean if a field has been set.

func (*Partition) HasSource

func (o *Partition) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*Partition) HasTarget

func (o *Partition) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (Partition) MarshalJSON

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

func (*Partition) SetCapacityMegabytes

func (o *Partition) SetCapacityMegabytes(v int64)

SetCapacityMegabytes gets a reference to the given int64 and assigns it to the CapacityMegabytes field.

func (*Partition) SetFilesystem

func (o *Partition) SetFilesystem(v string)

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

func (*Partition) SetSource

func (o *Partition) SetSource(v string)

SetSource gets a reference to the given string and assigns it to the Source field.

func (*Partition) SetTarget

func (o *Partition) SetTarget(v string)

SetTarget gets a reference to the given string and assigns it to the Target field.

func (Partition) ToMap

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

type Release

type Release struct {
	Name     *string `json:"name,omitempty"`
	Version  *string `json:"version,omitempty"`
	Codename *string `json:"codename,omitempty"`
}

Release struct for Release

func NewRelease

func NewRelease() *Release

NewRelease instantiates a new Release 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 NewReleaseWithDefaults

func NewReleaseWithDefaults() *Release

NewReleaseWithDefaults instantiates a new Release 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 (*Release) GetCodename

func (o *Release) GetCodename() string

GetCodename returns the Codename field value if set, zero value otherwise.

func (*Release) GetCodenameOk

func (o *Release) GetCodenameOk() (*string, bool)

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

func (*Release) GetName

func (o *Release) GetName() string

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

func (*Release) GetNameOk

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

func (o *Release) GetVersion() string

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

func (*Release) GetVersionOk

func (o *Release) GetVersionOk() (*string, bool)

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

func (*Release) HasCodename

func (o *Release) HasCodename() bool

HasCodename returns a boolean if a field has been set.

func (*Release) HasName

func (o *Release) HasName() bool

HasName returns a boolean if a field has been set.

func (*Release) HasVersion

func (o *Release) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (Release) MarshalJSON

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

func (*Release) SetCodename

func (o *Release) SetCodename(v string)

SetCodename gets a reference to the given string and assigns it to the Codename field.

func (*Release) SetName

func (o *Release) SetName(v string)

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

func (*Release) SetVersion

func (o *Release) SetVersion(v string)

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

func (Release) ToMap

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

type ServerApiService

type ServerApiService service

ServerApiService ServerApi service

func (*ServerApiService) HealthcheckGet

HealthcheckGet Check the health of the API

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

func (*ServerApiService) HealthcheckGetExecute

func (a *ServerApiService) HealthcheckGetExecute(r ApiHealthcheckGetRequest) (*ServerInfo, *http.Response, error)

Execute executes the request

@return ServerInfo

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 ServerInfo

type ServerInfo struct {
	Status     *string               `json:"status,omitempty"`
	SystemInfo *ServerInfoSystemInfo `json:"system_info,omitempty"`
}

ServerInfo struct for ServerInfo

func NewServerInfo

func NewServerInfo() *ServerInfo

NewServerInfo instantiates a new ServerInfo 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 NewServerInfoWithDefaults

func NewServerInfoWithDefaults() *ServerInfo

NewServerInfoWithDefaults instantiates a new ServerInfo 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 (*ServerInfo) GetStatus

func (o *ServerInfo) GetStatus() string

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

func (*ServerInfo) GetStatusOk

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

func (o *ServerInfo) GetSystemInfo() ServerInfoSystemInfo

GetSystemInfo returns the SystemInfo field value if set, zero value otherwise.

func (*ServerInfo) GetSystemInfoOk

func (o *ServerInfo) GetSystemInfoOk() (*ServerInfoSystemInfo, bool)

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

func (*ServerInfo) HasStatus

func (o *ServerInfo) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*ServerInfo) HasSystemInfo

func (o *ServerInfo) HasSystemInfo() bool

HasSystemInfo returns a boolean if a field has been set.

func (ServerInfo) MarshalJSON

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

func (*ServerInfo) SetStatus

func (o *ServerInfo) SetStatus(v string)

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

func (*ServerInfo) SetSystemInfo

func (o *ServerInfo) SetSystemInfo(v ServerInfoSystemInfo)

SetSystemInfo gets a reference to the given ServerInfoSystemInfo and assigns it to the SystemInfo field.

func (ServerInfo) ToMap

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

type ServerInfoSystemInfo

type ServerInfoSystemInfo struct {
	Environment *string `json:"environment,omitempty"`
	Version     *string `json:"version,omitempty"`
}

ServerInfoSystemInfo struct for ServerInfoSystemInfo

func NewServerInfoSystemInfo

func NewServerInfoSystemInfo() *ServerInfoSystemInfo

NewServerInfoSystemInfo instantiates a new ServerInfoSystemInfo 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 NewServerInfoSystemInfoWithDefaults

func NewServerInfoSystemInfoWithDefaults() *ServerInfoSystemInfo

NewServerInfoSystemInfoWithDefaults instantiates a new ServerInfoSystemInfo 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 (*ServerInfoSystemInfo) GetEnvironment

func (o *ServerInfoSystemInfo) GetEnvironment() string

GetEnvironment returns the Environment field value if set, zero value otherwise.

func (*ServerInfoSystemInfo) GetEnvironmentOk

func (o *ServerInfoSystemInfo) GetEnvironmentOk() (*string, bool)

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

func (*ServerInfoSystemInfo) GetVersion

func (o *ServerInfoSystemInfo) GetVersion() string

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

func (*ServerInfoSystemInfo) GetVersionOk

func (o *ServerInfoSystemInfo) GetVersionOk() (*string, bool)

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

func (*ServerInfoSystemInfo) HasEnvironment

func (o *ServerInfoSystemInfo) HasEnvironment() bool

HasEnvironment returns a boolean if a field has been set.

func (*ServerInfoSystemInfo) HasVersion

func (o *ServerInfoSystemInfo) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ServerInfoSystemInfo) MarshalJSON

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

func (*ServerInfoSystemInfo) SetEnvironment

func (o *ServerInfoSystemInfo) SetEnvironment(v string)

SetEnvironment gets a reference to the given string and assigns it to the Environment field.

func (*ServerInfoSystemInfo) SetVersion

func (o *ServerInfoSystemInfo) SetVersion(v string)

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

func (ServerInfoSystemInfo) ToMap

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

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type Specs

type Specs struct {
	Motherboard *Motherboard `json:"motherboard,omitempty"`
	Cpu         *CPU         `json:"cpu,omitempty"`
	Disks       []DisksInner `json:"disks,omitempty"`
	Network     *Network     `json:"network,omitempty"`
	Bios        *BIOS        `json:"bios,omitempty"`
	Memory      *Memory      `json:"memory,omitempty"`
	Dimms       []DIMMsInner `json:"dimms,omitempty"`
	// ISO 8601 formatted date-time string of the time the device booted
	BootTime       *time.Time      `json:"boot_time,omitempty"`
	Kernel         *Kernel         `json:"kernel,omitempty"`
	Release        *Release        `json:"release,omitempty"`
	Oem            *OEM            `json:"oem,omitempty"`
	Virtualization *Virtualization `json:"virtualization,omitempty"`
}

Specs struct for Specs

func NewSpecs

func NewSpecs() *Specs

NewSpecs instantiates a new Specs 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 NewSpecsWithDefaults

func NewSpecsWithDefaults() *Specs

NewSpecsWithDefaults instantiates a new Specs 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 (*Specs) GetBios

func (o *Specs) GetBios() BIOS

GetBios returns the Bios field value if set, zero value otherwise.

func (*Specs) GetBiosOk

func (o *Specs) GetBiosOk() (*BIOS, bool)

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

func (*Specs) GetBootTime

func (o *Specs) GetBootTime() time.Time

GetBootTime returns the BootTime field value if set, zero value otherwise.

func (*Specs) GetBootTimeOk

func (o *Specs) GetBootTimeOk() (*time.Time, bool)

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

func (*Specs) GetCpu

func (o *Specs) GetCpu() CPU

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*Specs) GetCpuOk

func (o *Specs) GetCpuOk() (*CPU, bool)

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

func (*Specs) GetDimms

func (o *Specs) GetDimms() []DIMMsInner

GetDimms returns the Dimms field value if set, zero value otherwise.

func (*Specs) GetDimmsOk

func (o *Specs) GetDimmsOk() ([]DIMMsInner, bool)

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

func (*Specs) GetDisks

func (o *Specs) GetDisks() []DisksInner

GetDisks returns the Disks field value if set, zero value otherwise.

func (*Specs) GetDisksOk

func (o *Specs) GetDisksOk() ([]DisksInner, bool)

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

func (*Specs) GetKernel

func (o *Specs) GetKernel() Kernel

GetKernel returns the Kernel field value if set, zero value otherwise.

func (*Specs) GetKernelOk

func (o *Specs) GetKernelOk() (*Kernel, bool)

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

func (*Specs) GetMemory

func (o *Specs) GetMemory() Memory

GetMemory returns the Memory field value if set, zero value otherwise.

func (*Specs) GetMemoryOk

func (o *Specs) GetMemoryOk() (*Memory, bool)

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

func (*Specs) GetMotherboard

func (o *Specs) GetMotherboard() Motherboard

GetMotherboard returns the Motherboard field value if set, zero value otherwise.

func (*Specs) GetMotherboardOk

func (o *Specs) GetMotherboardOk() (*Motherboard, bool)

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

func (*Specs) GetNetwork

func (o *Specs) GetNetwork() Network

GetNetwork returns the Network field value if set, zero value otherwise.

func (*Specs) GetNetworkOk

func (o *Specs) GetNetworkOk() (*Network, bool)

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

func (*Specs) GetOem

func (o *Specs) GetOem() OEM

GetOem returns the Oem field value if set, zero value otherwise.

func (*Specs) GetOemOk

func (o *Specs) GetOemOk() (*OEM, bool)

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

func (*Specs) GetRelease

func (o *Specs) GetRelease() Release

GetRelease returns the Release field value if set, zero value otherwise.

func (*Specs) GetReleaseOk

func (o *Specs) GetReleaseOk() (*Release, bool)

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

func (*Specs) GetVirtualization

func (o *Specs) GetVirtualization() Virtualization

GetVirtualization returns the Virtualization field value if set, zero value otherwise.

func (*Specs) GetVirtualizationOk

func (o *Specs) GetVirtualizationOk() (*Virtualization, bool)

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

func (*Specs) HasBios

func (o *Specs) HasBios() bool

HasBios returns a boolean if a field has been set.

func (*Specs) HasBootTime

func (o *Specs) HasBootTime() bool

HasBootTime returns a boolean if a field has been set.

func (*Specs) HasCpu

func (o *Specs) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*Specs) HasDimms

func (o *Specs) HasDimms() bool

HasDimms returns a boolean if a field has been set.

func (*Specs) HasDisks

func (o *Specs) HasDisks() bool

HasDisks returns a boolean if a field has been set.

func (*Specs) HasKernel

func (o *Specs) HasKernel() bool

HasKernel returns a boolean if a field has been set.

func (*Specs) HasMemory

func (o *Specs) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*Specs) HasMotherboard

func (o *Specs) HasMotherboard() bool

HasMotherboard returns a boolean if a field has been set.

func (*Specs) HasNetwork

func (o *Specs) HasNetwork() bool

HasNetwork returns a boolean if a field has been set.

func (*Specs) HasOem

func (o *Specs) HasOem() bool

HasOem returns a boolean if a field has been set.

func (*Specs) HasRelease

func (o *Specs) HasRelease() bool

HasRelease returns a boolean if a field has been set.

func (*Specs) HasVirtualization

func (o *Specs) HasVirtualization() bool

HasVirtualization returns a boolean if a field has been set.

func (Specs) MarshalJSON

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

func (*Specs) SetBios

func (o *Specs) SetBios(v BIOS)

SetBios gets a reference to the given BIOS and assigns it to the Bios field.

func (*Specs) SetBootTime

func (o *Specs) SetBootTime(v time.Time)

SetBootTime gets a reference to the given time.Time and assigns it to the BootTime field.

func (*Specs) SetCpu

func (o *Specs) SetCpu(v CPU)

SetCpu gets a reference to the given CPU and assigns it to the Cpu field.

func (*Specs) SetDimms

func (o *Specs) SetDimms(v []DIMMsInner)

SetDimms gets a reference to the given []DIMMsInner and assigns it to the Dimms field.

func (*Specs) SetDisks

func (o *Specs) SetDisks(v []DisksInner)

SetDisks gets a reference to the given []DisksInner and assigns it to the Disks field.

func (*Specs) SetKernel

func (o *Specs) SetKernel(v Kernel)

SetKernel gets a reference to the given Kernel and assigns it to the Kernel field.

func (*Specs) SetMemory

func (o *Specs) SetMemory(v Memory)

SetMemory gets a reference to the given Memory and assigns it to the Memory field.

func (*Specs) SetMotherboard

func (o *Specs) SetMotherboard(v Motherboard)

SetMotherboard gets a reference to the given Motherboard and assigns it to the Motherboard field.

func (*Specs) SetNetwork

func (o *Specs) SetNetwork(v Network)

SetNetwork gets a reference to the given Network and assigns it to the Network field.

func (*Specs) SetOem

func (o *Specs) SetOem(v OEM)

SetOem gets a reference to the given OEM and assigns it to the Oem field.

func (*Specs) SetRelease

func (o *Specs) SetRelease(v Release)

SetRelease gets a reference to the given Release and assigns it to the Release field.

func (*Specs) SetVirtualization

func (o *Specs) SetVirtualization(v Virtualization)

SetVirtualization gets a reference to the given Virtualization and assigns it to the Virtualization field.

func (Specs) ToMap

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

type SwapDevice

type SwapDevice struct {
	Name *string `json:"name,omitempty"`
	Size *int64  `json:"size,omitempty"`
}

SwapDevice struct for SwapDevice

func NewSwapDevice

func NewSwapDevice() *SwapDevice

NewSwapDevice instantiates a new SwapDevice 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 NewSwapDeviceWithDefaults

func NewSwapDeviceWithDefaults() *SwapDevice

NewSwapDeviceWithDefaults instantiates a new SwapDevice 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 (*SwapDevice) GetName

func (o *SwapDevice) GetName() string

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

func (*SwapDevice) GetNameOk

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

func (o *SwapDevice) GetSize() int64

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

func (*SwapDevice) GetSizeOk

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

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

func (*SwapDevice) HasName

func (o *SwapDevice) HasName() bool

HasName returns a boolean if a field has been set.

func (*SwapDevice) HasSize

func (o *SwapDevice) HasSize() bool

HasSize returns a boolean if a field has been set.

func (SwapDevice) MarshalJSON

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

func (*SwapDevice) SetName

func (o *SwapDevice) SetName(v string)

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

func (*SwapDevice) SetSize

func (o *SwapDevice) SetSize(v int64)

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

func (SwapDevice) ToMap

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

type Virtualization

type Virtualization struct {
	Type *string `json:"type,omitempty"`
}

Virtualization struct for Virtualization

func NewVirtualization

func NewVirtualization() *Virtualization

NewVirtualization instantiates a new Virtualization 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 NewVirtualizationWithDefaults

func NewVirtualizationWithDefaults() *Virtualization

NewVirtualizationWithDefaults instantiates a new Virtualization 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 (*Virtualization) GetType

func (o *Virtualization) GetType() string

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

func (*Virtualization) GetTypeOk

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

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

func (*Virtualization) HasType

func (o *Virtualization) HasType() bool

HasType returns a boolean if a field has been set.

func (Virtualization) MarshalJSON

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

func (*Virtualization) SetType

func (o *Virtualization) SetType(v string)

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

func (Virtualization) ToMap

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

Jump to

Keyboard shortcuts

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