dmtfmodel

package
v0.0.0-...-695150b Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dmtfmodel

Package dmtfmodel

Package dmtfmodel

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccelerationFunction

type AccelerationFunction struct {
	Oid string `json:"@odata.id"`
}

AccelerationFunction

type AccelerationFunctions

type AccelerationFunctions struct {
	Oid string `json:"@odata.id"`
}

AccelerationFunctions

type Actions

type Actions struct {
}

Actions ...

type Assembly

type Assembly struct {
	Oid string `json:"@odata.id"`
}

Assembly

type Bios

type Bios struct {
	Oid         string `json:"@odata.id"`
	Ocontext    string `json:"@odata.context,omitempty"`
	Oetag       string `json:"@odata.etag,omitempty"`
	Otype       string `json:"@odata.type,omitempty"`
	Description string `json:"description,omitempty"`
	ID          string `json:"Id,omitempty"`
	Name        string `json:"Name,omitempty"`
	Oem         Oem    `json:"Oem,omitempty"`
	/*The reference to the Attribute Registry that lists the metadata describing the
	BIOS attribute settings in this resource.
	*/
	AttributeRegistry string `json:"AttributeRegistry,omitempty"` // read-only (null)
	/* Attributes is an object but we are handling as string
	 */
	Attributes string `json:"Attributes,omitempty"` // object
}

Bios

type Boot

type Boot struct {
	AliasBootOrder               []string     `json:"AliasBootOrder"`
	BootNext                     string       `json:"BootNext"`
	BootOptions                  BootOptions  `json:"BootOptions"`
	BootOrder                    []string     `json:"BootOrder"`
	BootOrderPropertySelection   string       `json:"BootOrderPropertySelection"`
	BootSourceOverrideEnabled    string       `json:"BootSourceOverrideEnabled"`
	BootSourceOverrideMode       string       `json:"BootSourceOverrideMode"`
	BootSourceOverrideTarget     string       `json:"BootSourceOverrideTarget"`
	Certificates                 Certificates `json:"Certificates"`
	UefiTargetBootSourceOverride string       `json:"UefiTargetBootSourceOverride"`
}

Boot

type BootOptions

type BootOptions struct {
	Oid string `json:"@odata.id"`
}

BootOptions

type CacheSummary

type CacheSummary struct {
	PersistentCacheSizeMiB int    `json:"PersistentCacheSizeMiB"`
	Status                 Status `json:"Status"`
	TotalCacheSizeMiB      int    `json:"TotalCacheSizeMiB"`
}

CacheSummary in place object

type Certificates

type Certificates struct {
	Oid string `json:"@odata.id"`
}

Certificates

type Chassis

type Chassis struct {
	Ocontext           string           `json:"@odata.context"`
	Oid                string           `json:"@odata.id"`
	Otype              string           `json:"@odata.type"`
	Oetag              string           `json:"@odata.etag,omitempty"`
	ID                 string           `json:"Id"`
	Description        string           `json:"Description"`
	Name               string           `json:"Name"`
	AssetTag           string           `json:"AssetTag"`
	ChassisType        string           `json:"ChassisType"`
	DepthMm            int              `json:"DepthMm"`
	EnvironmentalClass string           `json:"EnvironmentalClass"`
	HeightMm           int              `json:"HeightMm"`
	IndicatorLED       int              `json:"IndicatorLED"`
	Manufacturer       string           `json:"Manufacturer"`
	Model              string           `json:"Model"`
	PartNumber         string           `json:"PartNumber"`
	PowerState         string           `json:"PowerState"`
	SerialNumber       string           `json:"SerialNumber"`
	SKU                string           `json:"SKU"`
	UUID               string           `json:"UUID"`
	WeightKg           int              `json:"WeightKg"`
	WidthMm            int              `json:"WidthMm"`
	Links              Links            `json:"Links"`
	Location           Location         `json:"Location"`
	LogServices        LogServices      `json:"LogServices"`
	Assembly           Assembly         `json:"Assembly"`
	NetworkAdapters    NetworkAdapters  `json:"NetworkAdapters"`
	PCIeSlots          PCIeSlots        `json:"PCIeSlots"`
	PhysicalSecurity   PhysicalSecurity `json:"PhysicalSecurity"`
	Power              Power            `json:"Power"`
	Sensors            Sensors          `json:"Sensors"`
	Status             Status           `json:"Status"`
	Thermal            Thermal          `json:"Thermal"`
}

Chassis

func (*Chassis) SaveInMemory

func (c *Chassis) SaveInMemory(deviceUUID string) *errors.Error

SaveInMemory will create the Chassis in inmemory DB, with key as UUID Takes:

none as function parameter, but takes c of type *Chassis as a pointer receiver implicitly.

Returns:

err of type error

On Sucess  - returns nil value
On Failure - returns non nil value

type ComputerSystem

type ComputerSystem struct {
	Ocontext           string             `json:"@odata.context"`
	Oid                string             `json:"@odata.id"`
	Otype              string             `json:"@odata.type"`
	Oetag              string             `json:"@odata.etag,omitempty"`
	ID                 string             `json:"Id"`
	Description        string             `json:"Description"`
	Name               string             `json:"Name"`
	AssetTag           string             `json:"AssetTag"`
	BiosVersion        string             `json:"BiosVersion"`
	HostName           string             `json:"HostName"`
	IndicatorLED       string             `json:"IndicatorLED"`
	Manufacturer       string             `json:"Manufacturer"`
	Model              string             `json:"Model"`
	PartNumber         string             `json:"PartNumber"`
	PowerRestorePolicy string             `json:"PowerRestorePolicy"`
	PowerState         string             `json:"PowerState"`
	SerialNumber       string             `json:"SerialNumber"`
	SKU                string             `json:"SKU"`
	SubModel           string             `json:"SubModel"`
	SystemType         string             `json:"SystemType"`
	UUID               string             `json:"UUID"`
	HostingRoles       []string           `json:"HostingRoles"`
	PCIeDevices        []PCIeDevice       `json:"PCIeDevices"`
	PCIeFunctions      []PCIeFunction     `json:"PCIeFunctions"`
	Bios               Bios               `json:"Bios"`
	Boot               Boot               `json:"Boot"`
	EthernetInterfaces EthernetInterfaces `json:"EthernetInterfaces"`
	HostedServices     HostedServices     `json:"HostedServices"`
	HostWatchdogTimer  HostWatchdogTimer  `json:"HostWatchdogTimer"`
	Links              Links              `json:"Links"`
	LogServices        LogServices        `json:"LogServices"`
	Memory             Memory             `json:"Memory"`
	MemoryDomains      MemoryDomains      `json:"MemoryDomains"`
	MemorySummary      MemorySummary      `json:"MemorySummary"`
	NetworkInterfaces  NetworkInterfaces  `json:"NetworkInterfaces"`
	Processors         Processors         `json:"Processors"`
	ProcessorSummary   ProcessorSummary   `json:"ProcessorSummary"`
	Redundancy         []Redundancy       `json:"Redundancy"`
	SecureBoot         SecureBoot         `json:"SecureBoot"`
	SimpleStorage      SimpleStorage      `json:"SimpleStorage"`
	Status             Status             `json:"Status"`
	Storage            Storage            `json:"Storage"`
	TrustedModules     []TrustedModule    `json:"TrustedModules"`
}

ComputerSystem

func (*ComputerSystem) SaveInMemory

func (c *ComputerSystem) SaveInMemory(deviceUUID string) *errors.Error

SaveInMemory will create the ComputerSystem data in in-memory DB, with key as UUID Takes:

none as parameter, but recieves c of type *ComputerSystem as pointeer reciever impicitly.

Returns:

err of type error

On Success - returns nil value
On Failure - return non nil value

type ControllerRates

type ControllerRates struct {
	ConsistencyCheckRatePercent int `json:"ConsistencyCheckRatePercent"`
	RebuildRatePercent          int `json:"RebuildRatePercent"`
	TransformationRatePercent   int `json:"TransformationRatePercent"`
}

ControllerRates in place object

type DHCPv4

type DHCPv4 struct {
	DHCPEnabled     bool   `json:"DHCPEnabled"`
	FallbackAddress string `json:"FallbackAddress"` //enum
	UseDNSServers   bool   `json:"UseDNSServers"`
	UseDomainName   bool   `json:"UseDomainName"`
	UseGateway      bool   `json:"UseGateway"`
	UseNTPServers   bool   `json:"UseNTPServers"`
	UseStaticRoutes bool   `json:"UseStaticRoutes"`
}

DHCPv4 in place object

type DHCPv6

type DHCPv6 struct {
	OperatingMode  string `json:"OperatingMode"` //enum
	UseDNSServers  bool   `json:"UseDNSServers"`
	UseDomainName  bool   `json:"UseDomainName"`
	UseNTPServers  bool   `json:"UseNTPServers"`
	UseRapidCommit bool   `json:"UseRapidCommit"`
}

DHCPv6 in place object

type Device

type Device struct {
	CapacityBytes int    `json:"CapacityBytes"`
	Manufacturer  string `json:"Manufacturer"`
	Model         string `json:"Model"`
	Name          string `json:"Name"`
	Oem           Oem    `json:"Oem"`
	Status        Status `json:"Status"`
}

Device in place object

type Drive

type Drive struct {
	Oid string `json:"@odata.id"`
}

Drive

type Entries

type Entries struct {
	Oid string `json:"@odata.id"`
}

Entries

type Ethernet

type Ethernet struct {
	MaxLanes     int `json:"MaxLanes"`
	MaxSpeedMbps int `json:"MaxSpeedMbps"`
	Oem          Oem `json:"Oem"`
}

Ethernet in place object

type EthernetInterfaces

type EthernetInterfaces struct {
	Oid                    string              `json:"@odata.id"`
	Ocontext               string              `json:"@odata.context,omitempty"`
	Oetag                  string              `json:"@odata.etag,omitempty"`
	Otype                  string              `json:"@odata.type,omitempty"`
	Description            string              `json:"description,omitempty"`
	ID                     string              `json:"Id,omitempty"`
	Name                   string              `json:"Name,omitempty"`
	Oem                    Oem                 `json:"Oem,omitempty"`
	AutoNeg                bool                `json:"AutoNeg,omitempty"`
	DHCPv4                 DHCPv4              `json:"DHCPv4,omitempty"`
	DHCPv6                 DHCPv6              `json:"DHCPv6,omitempty"`
	FQDN                   string              `json:"FQDN,omitempty"`
	FullDuplex             bool                `json:"FullDuplex,omitempty"`
	HostName               string              `json:"HostName,omitempty"`
	InterfaceEnabled       bool                `json:"InterfaceEnabled,omitempty"`
	IPv4Addresses          []IPv4Address       `json:"IPv4Addresses,omitempty"`
	IPv4StaticAddresses    []IPv4Address       `json:"IPv4StaticAddresses,omitempty"`
	IPv6Addresses          []IPv6Address       `json:"IPv6Addresses,omitempty"`
	IPv6AddressPolicyTable []IPv6AddressPolicy `json:"IPv6AddressPolicyTable,omitempty"`
	IPv6DefaultGateway     string              `json:"IPv6DefaultGateway,omitempty"`
	IPv6StaticAddresses    []IPv6StaticAddress `json:"IPv6StaticAddresses,omitempty"`
	/* Note: IPv6GatewayStaticAddress and IPv6StaticAddress objects or exactly same,
	   decided to use IPv6StaticAddress in place of IPv6GatewayStaticAddress to achieving
	   code reusability in below line.
	*/
	IPv6StaticDefaultGateways  []IPv6StaticAddress        `json:"IPv6StaticDefaultGateways,omitempty"`
	Links                      []Link                     `json:"Links,omitempty"`
	LinkStatus                 string                     `json:"LinkStatus,omitempty"`
	MACAddress                 string                     `json:"MACAddress,omitempty"`
	MaxIPv6StaticAddresses     int                        `json:"MaxIPv6StaticAddresses,omitempty"`
	MTUSize                    int                        `json:"MTUSize,omitempty"`
	NameServers                []string                   `json:"NameServers,omitempty"`
	PermanentMACAddress        string                     `json:"PermanentMACAddress,omitempty"`
	SpeedMbps                  int                        `json:"SpeedMbps,omitempty"`
	StatelessAddressAutoConfig StatelessAddressAutoConfig `json:"StatelessAddressAutoConfig,omitempty"`
	StaticNameServers          []string                   `json:"StaticNameServers,omitempty"`
	Status                     Status                     `json:"Status,omitempty"`
	UefiDevicePath             string                     `json:"UefiDevicePath,omitempty"`
	VLAN                       VLAN                       `json:"VLAN,omitempty"`
	VLANs                      VLANs                      `json:"VLANs,omitempty"`
}

EthernetInterfaces get

EthernetInterface 1.5.0 This resource shall be used to represent NIC resources as part of the Redfish specification. URIs: /redfish/v1/Managers/{ManagerId}/EthernetInterfaces/{EthernetInterfaceId} /redfish/v1/Systems/{ComputerSystemId}/EthernetInterfaces/{EthernetInterfaceId}

type FPGA

type FPGA struct {
	ExternalInterfaces   []HostInterface       `json:"ExternalInterfaces"`
	FirmwareID           string                `json:"FirmwareId"`
	FirmwareManufacturer string                `json:"FirmwareManufacturer"`
	FirmwareVersion      string                `json:"FirmwareVersion"`
	FpgaType             string                `json:"FpgaType"` //enum
	HostInterface        HostInterface         `json:"HostInterface"`
	Model                string                `json:"Model"`
	Oem                  Oem                   `json:"Oem"`
	PCIeVirtualFunctions int                   `json:"PCIeVirtualFunctions"`
	ProgrammableFromHost bool                  `json:"ProgrammableFromHost"`
	ReconfigurationSlots []ReconfigurationSlot `json:"ReconfigurationSlots"`
}

FPGA in place object

type HostInterface

type HostInterface struct {
	Ethernet      Ethernet      `json:"Ethernet"`
	InterfaceType string        `json:"InterfaceType"` //enum
	PCIe          PCIeInterface `json:"PCIe"`
}

HostInterface in place object

type HostWatchdogTimer

type HostWatchdogTimer struct {
	FunctionEnabled bool   `json:"FunctionEnabled"`
	Oem             Oem    `json:"Oem"`
	Status          Status `json:"Status"`
	TimeoutAction   string `json:"TimeoutAction"`
	WarningAction   string `json:"WarningAction"`
}

HostWatchdogTimer ..

type HostedServices

type HostedServices struct {
	Oem             Oem             `json:"Oem"`
	StorageServices StorageServices `json:"StorageServices"`
}

HostedServices

type IPv4Address

type IPv4Address struct {
	Address       string `json:"Address"`
	AddressOrigin string `json:"AddressOrigin"` //enum
	Gateway       string `json:"Gateway"`
	Oem           Oem    `json:"Oem"`
	SubnetMask    string `json:"SubnetMask"`
}

IPv4Address in place object

type IPv6Address

type IPv6Address struct {
	Address       string `json:"Address"`
	AddressOrigin string `json:"AddressOrigin"` //enum
	AddressState  string `json:"AddressState"`  //enum
	Oem           Oem    `json:"Oem"`
	PrefixLength  string `json:"PrefixLength"`
}

IPv6Address in place object

type IPv6AddressPolicy

type IPv6AddressPolicy struct {
	Label      int    `json:"Label"`
	Precedence int    `json:"Precedence"`
	Prefix     string `json:"Prefix"`
}

IPv6AddressPolicy in place object

type IPv6StaticAddress

type IPv6StaticAddress struct {
	Address      string `json:"Address"`
	Oem          Oem    `json:"Oem"`
	PrefixLength string `json:"PrefixLength"`
}

IPv6StaticAddress in place object

type Identifier

type Identifier struct {
}

Identifier

type InterleavableMemorySet

type InterleavableMemorySet struct {
	MemorySet []Memory `json:"MemorySet"`
}

InterleavableMemorySet in place object

type Link struct {
	Oid string `json:"@odata.id"`
}

Link

type Links struct {
	Chassis                  []Link `json:",omitempty"`
	ComputerSystems          []Link `json:",omitempty"`
	ConsumingComputerSystems []Link `json:",omitempty"`
	ContainedBy              []Link `json:",omitempty"`
	CooledBy                 []Link `json:",omitempty"`
	Endpoints                []Link `json:",omitempty"`
	Drives                   []Link `json:",omitempty"`
	ManagedBy                []Link `json:",omitempty"`
	Oem                      *Oem   `json:",omitempty"`
	ManagersInChassis        []Link `json:",omitempty"`
	PCIeDevices              []Link `json:",omitempty"`
	PCIeFunctions            []Link `json:",omitempty"`
	PoweredBy                []Link `json:",omitempty"`
	Processors               []Link `json:",omitempty"`
	ResourceBlocks           []Link `json:",omitempty"`
	Storage                  []Link `json:",omitempty"`
	SupplyingComputerSystems []Link `json:",omitempty"`
	Switches                 []Link `json:",omitempty"`
}

Links - this is Common to all resources

type Location

type Location struct {
	Oid string `json:"@odata.id"`
}

Location

type LogServices

type LogServices struct {
	Oid                 string  `json:"@odata.id"`
	Ocontext            string  `json:"@odata.context,omitempty"`
	Otype               string  `json:"@odata.type,omitempty"`
	Oetag               string  `json:"@odata.etag,omitempty"`
	ID                  string  `json:"Id,omitempty"`
	Description         string  `json:"Description,omitempty"`
	Name                string  `json:"Name,omitempty"`
	DateTime            string  `json:"DateTime,omitempty"`
	DateTimeLocalOffset string  `json:"DateTimeLocalOffset,omitempty"`
	Entries             Entries `json:"Entries,omitempty"`
	LogEntryType        string  `json:"LogEntryType,omitempty"`
	MaxNumberOfRecords  int     `json:"MaxNumberOfRecords,omitempty"`
	OverWritePolicy     string  `json:"OverWritePolicy,omitempty"`
	ServiceEnabled      bool    `json:"ServiceEnabled,omitempty"`
	Status              Status  `json:"Status,omitempty"`
}

LogServices get

/redfish/v1/Managers/{ManagerId}/LogServices/{LogServiceId} /redfish/v1/Systems/{ComputerSystemId}/LogServices/{LogServiceId}

type Memory

type Memory struct {
	Oid                                     string                `json:"@odata.id"`
	Ocontext                                string                `json:"@odata.context,omitempty"`
	Oetag                                   string                `json:"@odata.etag,omitempty"`
	Otype                                   string                `json:"@odata.type,omitempty"`
	Description                             string                `json:"description,omitempty"`
	ID                                      string                `json:"Id,omitempty"`
	Name                                    string                `json:"Name,omitempty"`
	Oem                                     Oem                   `json:"Oem,omitempty"`
	AllocationAlignmentMiB                  int                   `json:"AllocationAlignmentMiB,omitempty"`
	AllocationIncrementMiB                  int                   `json:"AllocationIncrementMiB,omitempty"`
	AllowedSpeedsMHz                        []int                 `json:"AllowedSpeedsMHz,omitempty"`
	Assembly                                Assembly              `json:"Assembly,omitempty"`
	BaseModuleType                          string                `json:"BaseModuleType,omitempty"` //enum
	BusWidthBits                            int                   `json:"BusWidthBits,omitempty"`
	CacheSizeMiB                            int                   `json:"CacheSizeMiB,omitempty"`
	CapacityMiB                             int                   `json:"CapacityMiB,omitempty"`
	ConfigurationLocked                     bool                  `json:"ConfigurationLocked,omitempty"`
	DataWidthBits                           int                   `json:"DataWidthBits,omitempty"`
	DeviceID                                string                `json:"DeviceID,omitempty"`
	DeviceLocator                           string                `json:"DeviceLocator,omitempty"`
	ErrorCorrection                         string                `json:"ErrorCorrection,omitempty"` //enum
	FirmwareAPIVersion                      string                `json:"FirmwareApiVersion,omitempty"`
	FirmwareRevision                        string                `json:"FirmwareRevision,omitempty"`
	FunctionClasses                         []string              `json:"FunctionClasses,omitempty"`
	IsRankSpareEnabled                      bool                  `json:"IsRankSpareEnabled,omitempty"`
	IsSpareDeviceEnabled                    bool                  `json:"IsSpareDeviceEnabled,omitempty"`
	Links                                   Links                 `json:"Links,omitempty"`
	Location                                Location              `json:"Location,omitempty"`
	LogicalSizeMiB                          int                   `json:"LogicalSizeMiB,omitempty"`
	Manufacturer                            string                `json:"Manufacturer,omitempty"`
	MaxTDPMilliWatts                        []int                 `json:"MaxTDPMilliWatts,omitempty"`
	MemoryDeviceType                        string                `json:"MemoryDeviceType,omitempty"` //enum
	MemoryLocation                          MemoryLocation        `json:"MemoryLocation,omitempty"`
	MemoryMedia                             []string              `json:"MemoryMedia,omitempty"` //enum
	MemorySubsystemControllerManufacturerID string                `json:"MemorySubsystemControllerManufacturerID,omitempty"`
	MemorySubsystemControllerProductID      string                `json:"MemorySubsystemControllerProductID,omitempty"`
	MemoryType                              string                `json:"MemoryType,omitempty"` //enum
	Metrics                                 Metrics               `json:"Metrics,omitempty"`
	ModuleManufacturerID                    string                `json:"ModuleManufacturerID,omitempty"`
	ModuleProductID                         string                `json:"ModuleProductID,omitempty"`
	NonVolatileSizeMiB                      int                   `json:"NonVolatileSizeMiB,omitempty"`
	OperatingMemoryModes                    []string              `json:"OperatingMemoryModes,omitempty"` //enum
	OperatingSpeedMhz                       int                   `json:"OperatingSpeedMhz,omitempty"`
	PartNumber                              string                `json:"PartNumber,omitempty"`
	PersistentRegionNumberLimit             int                   `json:"PersistentRegionNumberLimit,omitempty"`
	PersistentRegionSizeLimitMiB            int                   `json:"PersistentRegionSizeLimitMiB,omitempty"`
	PersistentRegionSizeMaxMiB              int                   `json:"PersistentRegionSizeMaxMiB,omitempty"`
	PowerManagementPolicy                   PowerManagementPolicy `json:"PowerManagementPolicy,omitempty"`
	RankCount                               int                   `json:"RankCount,omitempty"`
	Regions                                 []Region              `json:"Regions,omitempty"`
	SecurityCapabilities                    SecurityCapabilities  `json:"SecurityCapabilities,omitempty"`
	SecurityState                           string                `json:"SecurityState,omitempty"` //enum
	SerialNumber                            string                `json:"SerialNumber,omitempty"`
	SpareDeviceCount                        int                   `json:"SpareDeviceCount,omitempty"`
	Status                                  Status                `json:"Status,omitempty"`
	SubsystemDeviceID                       string                `json:"SubsystemDeviceID,omitempty"`
	SubsystemVendorID                       string                `json:"SubsystemVendorID,omitempty"`
	VendorID                                string                `json:"VendorID,omitempty"`
	VolatileRegionNumberLimit               int                   `json:"VolatileRegionNumberLimit,omitempty"`
	VolatileRegionSizeLimitMiB              int                   `json:"VolatileRegionSizeLimitMiB,omitempty"`
	VolatileRegionSizeMaxMiB                int                   `json:"VolatileRegionSizeMaxMiB,omitempty"`
	VolatileSizeMiB                         int                   `json:"VolatileSizeMiB,omitempty"`
}

Memory

type MemoryChunks

type MemoryChunks struct {
	Oid string `json:"@odata.id"`
}

MemoryChunks

type MemoryDomains

type MemoryDomains struct {
	Oid                       string                   `json:"@odata.id"`
	Ocontext                  string                   `json:"@odata.context,omitempty"`
	Oetag                     string                   `json:"@odata.etag,omitempty"`
	Otype                     string                   `json:"@odata.type,omitempty"`
	Description               string                   `json:"description,omitempty"`
	ID                        string                   `json:"Id,omitempty"`
	Name                      string                   `json:"Name,omitempty"`
	Oem                       Oem                      `json:"Oem,omitempty"`
	AllowsBlockProvisioning   bool                     `json:"AllowsBlockProvisioning,omitempty"`
	AllowsMemoryChunkCreation bool                     `json:"AllowsMemoryChunkCreation,omitempty"`
	AllowsMirroring           bool                     `json:"AllowsMirroring,omitempty"`
	AllowsSparing             bool                     `json:"AllowsSparing,omitempty"`
	InterleavableMemorySets   []InterleavableMemorySet `json:"InterleavableMemorySets,omitempty"`
	MemoryChunks              MemoryChunks             `json:"MemoryChunks,omitempty"`
}

MemoryDomains

type MemoryLocation

type MemoryLocation struct {
	Channel          int `json:"Channel,omitempty"`
	MemoryController int `json:"MemoryController"`
	Slot             int `json:"Slot"`
	Socket           int `json:"Socket"`
}

MemoryLocation in place object

type MemorySummary

type MemorySummary struct {
	MemoryMirroring                string `json:"MemoryMirroring"`
	TotalSystemMemoryGiB           int    `json:"TotalSystemMemoryGiB"`
	TotalSystemPersistentMemoryGiB int    `json:"TotalSystemPersistentMemoryGiB"`
	Status                         Status `json:"Status"`
}

MemorySummary in place object

type Metrics

type Metrics struct {
	Oid string `json:"@odata.id"`
}

Metrics

type NetworkAdapters

type NetworkAdapters struct {
	Oid string `json:"@odata.id"`
}

NetworkAdapters

type NetworkDeviceFunctions

type NetworkDeviceFunctions struct {
	Oid string `json:"@odata.id"`
}

NetworkDeviceFunctions

type NetworkInterfaces

type NetworkInterfaces struct {
	Oid                    string                 `json:"@odata.id"`
	Ocontext               string                 `json:"@odata.context,omitempty"`
	Oetag                  string                 `json:"@odata.etag,omitempty"`
	Otype                  string                 `json:"@odata.type,omitempty"`
	Description            string                 `json:"description,omitempty"`
	ID                     string                 `json:"Id,omitempty"`
	Name                   string                 `json:"Name,omitempty"`
	Oem                    Oem                    `json:"Oem,omitempty"`
	Links                  Links                  `json:"Links,omitempty"`
	NetworkDeviceFunctions NetworkDeviceFunctions `json:"NetworkDeviceFunctions,omitempty"`
	NetworkPorts           NetworkPorts           `json:"NetworkPorts,omitempty"`
	Status                 Status                 `json:"Status,omitempty"`
}

NetworkInterfaces get

NetworkInterface 1.1.2

A NetworkInterface contains references linking NetworkAdapter, NetworkPort, and NetworkDeviceFunction resources and represents the functionality available to the containing system. URIs: /redfish/v1/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}

type NetworkPorts

type NetworkPorts struct {
	Oid string `json:"@odata.id"`
}

NetworkPorts

type Oem

type Oem struct {
}

Oem

type PCIeDevice

type PCIeDevice struct {
	Oid             string        `json:"@odata.id"`
	Ocontext        string        `json:"@odata.context,omitempty"`
	Oetag           string        `json:"@odata.etag,omitempty"`
	Otype           string        `json:"@odata.type,omitempty"`
	Description     string        `json:"description,omitempty"`
	ID              string        `json:"Id,omitempty"`
	Name            string        `json:"Name,omitempty"`
	Oem             Oem           `json:"Oem,omitempty"`
	Assembly        Assembly      `json:"Assembly,omitempty"`
	AssetTag        string        `json:"AssetTag,omitempty"`
	DeviceType      string        `json:"DeviceType,omitempty"` //enum
	FirmwareVersion string        `json:"FirmwareVersion,omitempty"`
	Links           Links         `json:"Links,omitempty"`
	Manufacturer    string        `json:"Manufacturer,omitempty"`
	Model           string        `json:"Model,omitempty"`
	PartNumber      string        `json:"PartNumber,omitempty"`
	PCIeInterface   PCIeInterface `json:"PCIeInterface,omitempty"`
	SerialNumber    string        `json:"SerialNumber,omitempty"`
	SKU             string        `json:"SKU,omitempty"`
	Status          Status        `json:"Status,omitempty"`
}

PCIeDevice get

PCIeDevice 1.3.1

This resource shall be used to represent a PCIeDevice attached to a System. URIs: /redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId} /redfish/v1/Systems/{ComputerSystemId}/PCIeDevices/{PCIeDeviceId}

type PCIeFunction

type PCIeFunction struct {
	Oid               string `json:"@odata.id"`
	Ocontext          string `json:"@odata.context,omitempty"`
	Oetag             string `json:"@odata.etag,omitempty"`
	Otype             string `json:"@odata.type,omitempty"`
	Description       string `json:"description,omitempty"`
	ID                string `json:"Id,omitempty"`
	Name              string `json:"Name,omitempty"`
	Oem               Oem    `json:"Oem,omitempty"`
	ClassCode         string `json:"ClassCode,omitempty"`
	DeviceClass       string `json:"DeviceClass,omitempty"` //enum
	DeviceID          string `json:"DeviceId,omitempty"`
	FunctionID        int    `json:"FunctionId,omitempty"`
	FunctionType      string `json:"FunctionType,omitempty"` //enum
	Links             Links  `json:"Links,omitempty"`
	RevisionID        string `json:"RevisionId,omitempty"`
	Status            Status `json:"Status,omitempty"`
	SubsystemID       string `json:"SubsystemId,omitempty"`
	SubsystemVendorID string `json:"SubsystemVendorId,omitempty"`
	VendorID          string `json:"VendorId,omitempty"`
}

PCIeFunction

PCIeFunction 1.2.2 This resource shall be used to represent a PCIeFunction attached to a System. URIs: /redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}/PCIeFunctions/{PCIeFunctionId} /redfish/v1/Systems/{ComputerSystemId}/PCIeDevices/{PCIeDeviceId}/PCIeFunctions/{PCIeFunctionId}

type PCIeInterface

type PCIeInterface struct {
	LanesInUse  int    `json:"LanesInUse"`
	MaxLanes    int    `json:"MaxLanes"`
	MaxPCIeType string `json:"MaxPCIeType"` //enum
	Oem         Oem    `json:"Oem"`
	PCIeType    string `json:"PCIeType"` //enum
}

PCIeInterface in place object

type PCIeSlots

type PCIeSlots struct {
	Oid string `json:"@odata.id"`
}

PCIeSlots

type PhysicalSecurity

type PhysicalSecurity struct {
	IntrusionSensor       string
	IntrusionSensorNumber int
	IntrusionSensorReArm  string
}

PhysicalSecurity

type Ports

type Ports struct {
	Oid string `json:"@odata.id"`
}

Ports

type Power

type Power struct {
	Oid string `json:"@odata.id"`
}

Power

type PowerManagementPolicy

type PowerManagementPolicy struct {
	AveragePowerBudgetMilliWatts int  `json:"AveragePowerBudgetMilliWatts"`
	MaxTDPMilliWatts             int  `json:"MaxTDPMilliWatts"`
	PeakPowerBudgetMilliWatts    int  `json:"PeakPowerBudgetMilliWatts"`
	PolicyEnabled                bool `json:"PolicyEnabled"`
}

PowerManagementPolicy in place object

type ProcessorID

type ProcessorID struct {
	EffectiveFamily         string `json:"EffectiveFamily"`
	EffectiveModel          string `json:"EffectiveModel"`
	IdentificationRegisters string `json:"IdentificationRegisters"`
	MicrocodeInfo           string `json:"MicrocodeInfo"`
	Step                    string `json:"Step"`
	VendorID                string `json:"VendorId"`
}

ProcessorID in place object

type ProcessorMemory

type ProcessorMemory struct {
	CapacityMiB      int    `json:"CapacityMiB"`
	IntegratedMemory bool   `json:"IntegratedMemory"`
	MemoryType       string `json:"MemoryType"` //enum
	SpeedMHz         int    `json:"SpeedMHz"`
}

ProcessorMemory in place object

type ProcessorSummary

type ProcessorSummary struct {
	Count                 int     `json:"Count"`
	LogicalProcessorCount int     `json:"LogicalProcessorCount"`
	Model                 string  `json:"Model"`
	Metrics               Metrics `json:"Metrics"`
	Status                Status  `json:"Status"`
}

ProcessorSummary

type Processors

type Processors struct {
	Oid                   string                `json:"@odata.id"`
	Ocontext              string                `json:"@odata.context,omitempty"`
	Oetag                 string                `json:"@odata.etag,omitempty"`
	Otype                 string                `json:"@odata.type,omitempty"`
	Description           string                `json:"description,omitempty"`
	ID                    string                `json:"Id,omitempty"`
	Name                  string                `json:"Name,omitempty"`
	Oem                   Oem                   `json:"Oem,omitempty"`
	AccelerationFunctions AccelerationFunctions `json:"AccelerationFunctions,omitempty"`
	Assembly              Assembly              `json:"Assembly,omitempty"`
	FPGA                  FPGA                  `json:"FPGA,omitempty"`
	InstructionSet        string                `json:"InstructionSet,omitempty"` //enum
	Links                 Links                 `json:"Links,omitempty"`
	Location              Location              `json:"Location,omitempty"`
	Manufacturer          string                `json:"Manufacturer,omitempty"`
	MaxSpeedMHz           int                   `json:"MaxSpeedMHz,omitempty"`
	MaxTDPWatts           int                   `json:"MaxTDPWatts,omitempty"`
	Metrics               Metrics               `json:"Metrics,omitempty"`
	Model                 string                `json:"Model,omitempty"`
	ProcessorArchitecture string                `json:"ProcessorArchitecture,omitempty"` //enum
	ProcessorID           ProcessorID           `json:"ProcessorId,omitempty"`
	ProcessorMemory       []ProcessorMemory     `json:"ProcessorMemory,omitempty"`
	ProcessorType         string                `json:"ProcessorType,omitempty"` //enum
	Socket                string                `json:"Socket,omitempty"`
	Status                Status                `json:"Status,omitempty"`
	SubProcessors         SubProcessors         `json:"SubProcessors,omitempty"`
	TDPWatts              int                   `json:"TDPWatts,omitempty"`
	TotalCores            int                   `json:"TotalCores,omitempty"`
	TotalEnabledCores     int                   `json:"TotalEnabledCores,omitempty"`
	TotalThreads          int                   `json:"TotalThreads,omitempty"`
	UUID                  string                `json:"UUID,omitempty"`
}

Processors

Processor 1.5.0

This resource shall be used to represent a single processor contained within a system. URIs: /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId} /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/SubProcessors/{ProcessorId2}

type ReconfigurationSlot

type ReconfigurationSlot struct {
	AccelerationFunction AccelerationFunction `json:"AccelerationFunction"`
	ProgrammableFromHost bool                 `json:"ProgrammableFromHost"`
	SlotID               string               `json:"SlotId"`
	UUID                 string               `json:"UUID"`
}

ReconfigurationSlot in place object

type Redundancy

type Redundancy struct {
	Oid string `json:"@odata.id"`
}

Redundancy

type Region

type Region struct {
	MemoryClassification string `json:"MemoryClassification"` //enum
	OffsetMiB            int    `json:"OffsetMiB"`
	PassphraseEnabled    bool   `json:"PassphraseEnabled"`
	PassphraseState      bool   `json:"PassphraseState"`
	RegionID             string `json:"RegionId"`
	SizeMiB              int    `json:"SizeMiB"`
}

Region in place object

type SecureBoot

type SecureBoot struct {
	Oid                   string `json:"@odata.id"`
	Ocontext              string `json:"@odata.context,omitempty"`
	Oetag                 string `json:"@odata.etag,omitempty"`
	Otype                 string `json:"@odata.type,omitempty"`
	Description           string `json:"description,omitempty"`
	ID                    string `json:"Id,omitempty"`
	Name                  string `json:"Name,omitempty"`
	Oem                   Oem    `json:"Oem,omitempty"`
	SecureBootCurrentBoot string `json:"SecureBootCurrentBoot,omitempty"`
	SecureBootEnable      bool   `json:"SecureBootEnable,omitempty"`
	SecureBootMode        string `json:"SecureBootMode,omitempty"`
}

SecureBoot

type SecurityCapabilities

type SecurityCapabilities struct {
	ConfigurationLockCapable bool     `json:"ConfigurationLockCapable"`
	DataLockCapable          bool     `json:"DataLockCapable"`
	MaxPassphraseCount       int      `json:"MaxPassphraseCount"`
	PassphraseCapable        bool     `json:"PassphraseCapable"`
	PassphraseLockLimit      int      `json:"PassphraseLockLimit"`
	SecurityStates           []string `json:"SecurityStates"` //enum
}

SecurityCapabilities in place object

type Sensors

type Sensors struct {
	Oid string `json:"@odata.id"`
}

Sensors

type SimpleStorage

type SimpleStorage struct {
	Oid            string   `json:"@odata.id"`
	Ocontext       string   `json:"@odata.context,omitempty"`
	Oetag          string   `json:"@odata.etag,omitempty"`
	Otype          string   `json:"@odata.type,omitempty"`
	Description    string   `json:"description,omitempty"`
	ID             string   `json:"Id,omitempty"`
	Name           string   `json:"Name,omitempty"`
	Oem            Oem      `json:"Oem,omitempty"`
	Devices        []Device `json:"Devices,omitempty"`
	Links          Link     `json:"Links,omitempty"`
	Status         Status   `json:"Status,omitempty"`
	UefiDevicePath string   `json:"UefiDevicePath,omitempty"`
}

SimpleStorage

type StatelessAddressAutoConfig

type StatelessAddressAutoConfig struct {
	IPv4AutoConfigEnabled bool `json:"IPv4AutoConfigEnabled"`
	IPv6AutoConfigEnabled bool `json:"IPv6AutoConfigEnabled"`
}

StatelessAddressAutoConfig in place object

type Status

type Status struct {
	Oid          string `json:"@odata.id"`
	Ocontext     string `json:"@odata.context,omitempty"`
	Oetag        string `json:"@odata.etag,omitempty"`
	Otype        string `json:"@odata.type,omitempty"`
	Description  string `json:"description,omitempty"`
	ID           string `json:"Id,omitempty"`
	Name         string `json:"Name,omitempty"`
	Health       string `json:"Health,omitempty"`
	HealthRollup string `json:"HealthRollup,omitempty"`
	State        string `json:"State,omitempty"`
	Oem          Oem    `json:"Oem,omitempty"`
}

Status

type Storage

type Storage struct {
	Oid                string              `json:"@odata.id"`
	Ocontext           string              `json:"@odata.context,omitempty"`
	Oetag              string              `json:"@odata.etag,omitempty"`
	Otype              string              `json:"@odata.type,omitempty"`
	Description        string              `json:"description,omitempty"`
	ID                 string              `json:"Id,omitempty"`
	Name               string              `json:"Name,omitempty"`
	Oem                Oem                 `json:"Oem,omitempty"`
	Drives             []Drive             `json:"Drives,omitempty"`
	Links              Links               `json:"Links,omitempty"`
	Redundancy         []Redundancy        `json:"Redundancy,omitempty"` //TODO
	Status             Status              `json:"Status,omitempty"`
	StorageControllers []StorageController `json:"StorageControllers,omitempty"`
	Volumes            Volumes             `json:"Volumes,omitempty"`
}

Storage

type StorageController

type StorageController struct {
	Oid                          string          `json:"@odata.id"`
	Actions                      Actions         `json:"Actions,omitempty"`
	Assembly                     Assembly        `json:"Assembly,omitempty"`
	AssetTag                     string          `json:"AssetTag,omitempty"`
	CacheSummary                 CacheSummary    `json:"CacheSummary,omitempty"`
	ControllerRates              ControllerRates `json:"ControllerRates,omitempty"`
	FirmwareVersion              string          `json:"FirmwareVersion,omitempty"`
	Identifiers                  []Identifier    `json:"Identifiers,omitempty"`
	Links                        Links           `json:"Links,omitempty"`
	Location                     Location        `json:"Location,omitempty"`
	Manufacturer                 string          `json:"Manufacturer,omitempty"`
	MemberID                     string          `json:"MemberId,omitempty"`
	Model                        string          `json:"Model,omitempty"`
	Name                         string          `json:"Name,omitempty"`
	Oem                          Oem             `json:"Oem,omitempty"`
	PartNumber                   string          `json:"PartNumber,omitempty"`
	PCIeInterface                PCIeInterface   `json:"PCIeInterface,omitempty"`
	Ports                        Ports           `json:"Ports,omitempty"`
	SerialNumber                 string          `json:"SerialNumber,omitempty"`
	SKU                          string          `json:"SKU,omitempty"`
	SpeedGbps                    int             `json:"SpeedGbps,omitempty"`
	Status                       Status          `json:"Status,omitempty"`
	SupportedControllerProtocols []string        `json:"SupportedControllerProtocols,omitempty"` //enum
	SupportedDeviceProtocols     []string        `json:"SupportedDeviceProtocols,omitempty"`     //enum
	SupportedRAIDTypes           []string        `json:"SupportedRAIDTypes,omitempty"`           //enum
}

StorageController in place(it has Oid it may be get, TODO)

type StorageServices

type StorageServices struct {
	Oid string `json:"@odata.id"`
}

StorageServices

type SubProcessors

type SubProcessors struct {
	Oid string `json:"@odata.id"`
}

SubProcessors

type Thermal

type Thermal struct {
	Oid string `json:"@odata.id"`
}

Thermal

type TrustedModule

type TrustedModule struct {
	FirmwareVersion        string `json:"FirmwareVersion"`
	FirmwareVersion2       string `json:"FirmwareVersion2"`
	InterfaceType          string `json:"InterfaceType"`
	InterfaceTypeSelection string `json:"InterfaceTypeSelection"`
	Oem                    Oem    `json:"Oem"`
	Status                 Status `json:"Status"`
}

TrustedModule

type VLAN

type VLAN struct {
	Oid string `json:"@odata.id"`
}

VLAN

type VLANs

type VLANs struct {
	Oid string `json:"@odata.id"`
}

VLANs

type Volumes

type Volumes struct {
	Oid string `json:"@odata.id"`
}

Volumes

Jump to

Keyboard shortcuts

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