ov

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ov -

Package ov for working with HP OneView

Package ov -

Package ov -

Package ov -

Package ov -

Package ov -

Package ov -

Package ov

Package ov -

Package ov -

Package ov -

Package ov -

Package ov -

Package ov -

Package ov -

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersion

type APIVersion struct {
	CurrentVersion int `json:"currentVersion,omitempty"`
	MinimumVersion int `json:"minimumVersion,omitempty"`
}

APIVersion struct

type ActiveQosConfig

type ActiveQosConfig struct {
	Category                   utils.Nstring          `json:"category,omitempty"`                   // "category": "null",
	ConfigType                 string                 `json:"configType,omitempty"`                 // "configType": "CustomWithFCoE",
	Created                    string                 `json:"created,omitempty"`                    // "created": "20150831T154835.250Z",
	Description                utils.Nstring          `json:"description,omitempty,omitempty"`      // "description": "Ethernet Settings",
	DownlinkClassificationType string                 `json:"downlinkClassificationType,omitempty"` //"downlinkClassifcationType": "DOT1P_AND_DSCP",
	ETAG                       string                 `json:"eTag,omitempty"`                       // "eTag": "1441036118675/8",
	Modified                   string                 `json:"modified,omitempty"`                   // "modified": "20150831T154835.250Z",
	Name                       string                 `json:"name,omitempty"`                       // "name": "active QOS Config 1",
	QosTrafficClassifiers      []QosTrafficClassifier `json:"qosTrafficClassifiers"`                // "qosTrafficClassifiers": {...},
	State                      string                 `json:"state,omitempty"`                      // "state": "Normal",
	Status                     string                 `json:"status,omitempty"`                     // "status": "Critical",
	Type                       string                 `json:"type,omitempty"`                       // "type": "QosConfiguration",
	UplinkClassificationType   string                 `json:"uplinkClassificationType,omitempty"`   // "uplinkClassificationType": "DOT1P"
	URI                        utils.Nstring          `json:"uri,omitempty"`                        // "uri": null
}

type ApplianceBay added in v1.0.0

type ApplianceBay struct {
	BayNumber       int    `json:"bayNumber"`                 // "bayNumber": 1,
	BayPowerState   string `json:"bayPowerState,omitempty"`   // "bayPowerState": "Unknown",
	DevicePresence  string `json:"devicePresence,omitempty"`  // "devicePresence": "Present",
	Model           string `json:"model,omitempty"`           // "model": null,
	PartNumber      string `json:"partNumber,omitempty"`      // "partNumber": ""
	PoweredOn       bool   `json:"poweredOn,omitempty"`       // "poweredOn": true
	SerialNumber    string `json:"serialNumber,omitempty"`    // "serialNumber": "",
	SparePartNumber string `json:"sparePartNumber,omitempty"` // "sparePartNumber": ""
	Status          string `json:"status,omitempty"`          // "status": ""
}

type AssociatedResource

type AssociatedResource struct {
	ResourceName     utils.Nstring `json:"resourceName,omitempty"`     // "resourceName": "se05, bay 16",
	AssociationType  string        `json:"associationType,omitempty"`  // "associationType": "MANAGED_BY",
	ResourceCateogry string        `json:"resourceCategory,omitempty"` // "resourceCategory": "server-hardware",
	ResourceURI      utils.Nstring `json:"resourceUri,omitempty"`      // "resourceUri": "/rest/server-hardware/30373237-3132-4D32-3235-303930524D57"
}

AssociatedResource associated resource

type Auth

type Auth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
	Domain   string `json:"authLoginDomain,omitempty"`
}

Auth structure

type AuthHeader

type AuthHeader struct {
	ContentType string `json:"Content-Type,omitempty"`
	XAPIVersion int    `json:"X-API-Version,omitempty"`
	Auth        string `json:"auth,omitempty"`
	IfMatch     string `json:"If-Match,omitempty`
}

AuthHeader Marshal a json into a auth header

type Bandwidth added in v1.0.0

type Bandwidth struct {
	MaximumBandwidth int `json:"maximumBandwidth"` //"maximumBandwidth":10000
	TypicalBandwidth int `json:"typicalBandwidth"` //"typicalBandwidth":2000
}

type BiosOption

type BiosOption struct {
	ManageBios         bool           `json:"manageBios,omitempty"`         // "manageBios": false,
	OverriddenSettings []BiosSettings `json:"overriddenSettings,omitempty"` // "overriddenSettings": []
}

BiosOption - bios options

type BiosSettings

type BiosSettings struct {
	ID    string `json:"id,omitempty"`    // id
	Value string `json:"value,omitempty"` // value
}

BiosSettings structure

type BootManagement

type BootManagement struct {
	ManageBoot bool     `json:"manageBoot,omitempty"` // "manageBoot": true,
	Order      []string `json:"order,omitempty"`      // "order": ["CD","USB","HardDisk","PXE"]
}

BootManagement management

type BootModeOption

type BootModeOption struct {
	ManageMode    bool          `json:"manageMode,omitempty"`    // "manageMode": true,
	Mode          string        `json:"mode,omitempty"`          // "mode": "BIOS",
	PXEBootPolicy utils.Nstring `json:"pxeBootPolicy,omitempty"` // "pxeBootPolicy": null
}

BootModeOption mode option

type BootOption

type BootOption struct {
	BootOptionV3
	Priority string       `json:"priority,omitempty"` // priority(const_string), indicates the boot priority for this device. PXE and Fibre Channel connections are treated separately; an Ethernet connection and a Fibre Channel connection can both be marked as Primary. The 'order' attribute controls ordering among the different device types.
	Targets  []BootTarget `json:"targets,omitempty"`  // targets {BootTarget}
}

BootOption -

type BootOptionV3 added in v0.8.2

type BootOptionV3 struct {
	BootTargetLun        string `json:"bootTargetLun,omitempty"`        // "bootTargetLun": "0",
	BootTargetName       string `json:"bootTargetName,omitempty"`       // "bootTargetName": "iqn.2015-02.com.hpe:iscsi.target",
	BootVolumeSource     string `json:"bootVolumeSource,omitempty"`     // "bootVolumeSource": "",
	ChapLevel            string `json:"chapLevel,omitempty"`            // "chapLevel": "None",
	ChapName             string `json:"chapName,omitempty"`             // "chapName": "chap name",
	ChapSecret           string `json:"chapSecret,omitempty"`           // "chapSecret": "super secret chap secret",
	FirstBootTargetIp    string `json:"firstBootTargetIp,omitempty"`    // "firtBootTargetIp": "10.0.0.50",
	FirstBootTargetPort  string `json:"firstBootTargetPort,omitempty"`  // "firstBootTargetPort": "8080",
	InitiatorGateway     string `json:"initiatorGateway,omitempty"`     // "initiatorGateway": "3260",
	InitiatorIp          string `json:"initiatorIp,omitempty"`          // "initiatorIp": "192.168.6.21",
	InitiatorName        string `json:"initiatorName,omitempty"`        // "initiatorName": "iqn.2015-02.com.hpe:oneview-vcgs02t012",
	InitiatorNameSource  string `json:"initiatorNameSource,omitempty"`  // "initiatorNameSource": "UserDefined"
	InitiatorSubnetMask  string `json:"initiatorSubnetMask,omitempty"`  // "initiatorSubnetMask": "255.255.240.0",
	InitiatorVlanId      int    `json:"initiatorVlanId,omitempty"`      // "initiatorVlanId": 77,
	MutualChapName       string `json:"mutualChapName,omitempty"`       // "mutualChapName": "name of mutual chap",
	MutualChapSecret     string `json:"mutualChapSecret,omitempty"`     // "mutualChapSecret": "secret of mutual chap",
	SecondBootTargetIp   string `json:"secondBootTargetIp,omitempty"`   // "secondBootTargetIp": "10.0.0.51",
	SecondBootTargetPort string `json:"secondBootTargetPort,omitempty"` // "secondBootTargetPort": "78"
}

type BootTarget

type BootTarget struct {
	ArrayWWPN string `json:"arrayWwpn,omitempty"` // arrayWwpn(string,required),The wwpn of the target device that provides access to the Boot Volume. This value must contain 16 HEX digits.
	LUN       string `json:"lun,omitempty"`       // lun(string,required), The LUN of the Boot Volume presented by the target device. This value can be either 1 to 3 decimal digits in the range 0 to 255, or 13 to 16 hex digits with no other characters
}

BootTarget -

type BulkEthernetNetwork added in v1.0.0

type BulkEthernetNetwork struct {
	VlanIdRange    string    `json:"vlanIdRange"`    // "vlanIdRange":"1-500",
	Purpose        string    `json:"purpose"`        // "purpose":"General",
	NamePrefix     string    `json:"namePrefix"`     // "namePrefix":"TestNetwork",
	SmartLink      bool      `json:"smartLink"`      // "smartLink":false,
	PrivateNetwork bool      `json:"privateNetwork"` // "privateNetwork":false,
	Bandwidth      Bandwidth `json:"bandwidth"`      // "bandwidth":10000,2000
	Type           string    `json:"type"`           // "type":"bulk-ethernet-network",
}

type Chap added in v1.0.0

type Chap struct {
	Name string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

type Connection

type Connection struct {
	Connectionv200
	AllocatedMbps    int           `json:"allocatedMbps,omitempty"`    // allocatedMbps(int:read), The transmit throughput (mbps) currently allocated to this connection. When Fibre Channel connections are set to Auto for requested bandwidth, the value can be set to -2000 to indicate that the actual value is unknown until OneView is able to negotiate the actual speed.
	Boot             BootOption    `json:"boot,omitempty"`             // boot {}
	DeploymentStatus string        `json:"deploymentStatus,omitempty"` // deploymentStatus(const_string:read), The deployment status of the connection. The value can be 'Undefined', 'Reserved', or 'Deployed'.
	FunctionType     string        `json:"functionType,omitempty"`     // functionType(const_string),  Type of function required for the connection. functionType cannot be modified after the connection is created. 'Ethernet', 'FibreChannel'
	ID               int           `json:"id,omitempty"`               // id(int), A unique identifier for this connection. When creating or editing a profile, an id is automatically assigned if the attribute is omitted or 0 is specified. When editing a profile, a connection is created if the id does not identify an existing connection.
	InterconnectURI  utils.Nstring `json:"interconnectUri,omitempty"`  // interconnectUri(Nstring:read), The interconnectUri associated with the connection.
	MAC              utils.Nstring `json:"mac,omitempty"`              // mac(Nstring), The MAC address that is currently programmed on the FlexNic. The value can be a virtual MAC, user defined MAC or physical MAC read from the device. It cannot be modified after the connection is created.
	MacType          string        `json:"macType,omitempty"`          // macType(const_string), Physical, UserDefined, Virtual
	MaximumMbps      int           `json:"maximumMbps,omitempty"`      // maximumMbps(int:read),  Maximum transmit throughput (mbps) allowed on this connection. The value is limited by the maximum throughput of the network link and maximumBandwidth of the selected network (networkUri). For Fibre Channel connections, the value is limited to the same value as the allocatedMbps.
	Name             string        `json:"name,omitempty"`             // name(string), A string used to identify the respective connection. The connection name is case insensitive, limited to 63 characters and must be unique within the profile.
	NetworkURI       utils.Nstring `json:"networkUri,omitempty"`       // networkUri(Nstring, required), Identifies the network or network set to be connected. Use GET /rest/server-profiles/available-networks to retrieve the list of available Ethernet networks, Fibre Channel networks and network sets that are available along with their respective ports.
	PortID           string        `json:"portId,omitempty"`           // portId(string), Identifies the port (FlexNIC) used for this connection, for example 'Flb 1:1-a'. The port can be automatically selected by specifying 'Auto', 'None', or a physical port when creating or editing the connection. If 'Auto' is specified, a port that provides access to the selected network (networkUri) will be selected. A physical port (e.g. 'Flb 1:2') can be specified if the choice of a specific FlexNIC on the physical port is not important. If 'None' is specified, the connection will not be configured on the server hardware. When omitted, portId defaults to 'Auto'. Use /rest/server-profiles/profile-ports to retrieve the list of available ports.
	RequestedMbps    string        `json:"requestedMbps,omitempty"`    // requestedMbps(string), The transmit throughput (mbps) that should be allocated to this connection. For FlexFabric connections, this value must not exceed the maximum bandwidth of the selected network (networkUri). If omitted, this value defaults to the typical bandwidth value of the selected network. The sum of the requestedBW values for the connections (FlexNICs) on an adapter port cannot exceed the capacity of the network link. For Virtual Connect Fibre Channel connections, the available discrete values are based on the adapter and the Fibre Channel interconnect module. Use GET /rest/server-profiles/profile-ports to retrieve the list of available ports and the acceptable bandwidth values for the ports.
	WWNN             utils.Nstring `json:"wwnn,omitempty"`             // wwnn(Nstring), The node WWN address that is currently programmed on the FlexNic. The value can be a virtual WWNN, user defined WWNN or physical WWNN read from the device. It cannot be modified after the connection is created.
	WWPN             utils.Nstring `json:"wwpn,omitempty"`             // wwpn(Nstring), The port WWN address that is currently programmed on the FlexNIC. The value can be a virtual WWPN, user defined WWPN or the physical WWPN read from the device. It cannot be modified after the connection is created.
	WWPNType         string        `json:"wwpnType,omitempty"`         // wwpnType(const_string), Physical, UserDefined, Virtual
}

Connection server profile object for ov

func (Connection) Clone

func (c Connection) Clone() Connection

Clone clone connection

type ConnectionSettings added in v1.0.0

type ConnectionSettings struct {
	ComplianceControl string       `json:"complianceControl,omitempty"` // "complianceControl": "Checked",
	ManageConnections bool         `json:"manageConnections,omitempty"` // "manageConnections": false,
	Connections       []Connection `json:"connections,omitempty"`
}

type Connectionv200

type Connectionv200 struct {
	AllocatedVFs int    `json:"allocatedVFs,omitempty"` // allocatedVFs The number of virtual functions allocated to this connection. This value will be null. integer read only
	RequestedVFs string `json:"requestedVFs,omitempty"` // requestedVFs This value can be "Auto" or 0. string
}

Connectionv200 server profile object for ov

type Credentials added in v1.0.0

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

type CrossBar added in v1.0.0

type CrossBar struct {
	BayNumber    int    `json:"bayNumber,omitempty"`    // "bayNumber": 1,
	HwVersion    string `json:"hwVersion,omitempty"`    // "hwVersion": "",
	Manufacturer string `json:"manufacturer,omitempty"` // "manufacturer": ""
	PartNumber   string `json:"partNumber,omitempty"`   // "partNumber": ""
	Presence     string `json:"presence,omitempty"`     // "presence": ""
	SerialNumber string `json:"serialNumber,omitempty"` // "serialNumber": "",
	Status       string `json:"status,omitempty"`       // "status": ""

}

type CustomAttribute added in v0.8.2

type CustomAttribute struct {
	CaConstraints string `json:"caConstraints,omitempty"` // "caConstraints": "{}",
	CaEditable    bool   `json:"caEditable,omitempty"`    // "caEditable": true,
	CaID          string `json:"caId,omitempty"`          // "caId": "23436361-3a69-4ff0-9b97-85a2deb10822",
	CaType        string `json:"caType,omitempty"`        // "caType": "string",
	Description   string `json:"description,omitempty"`   // "description": "",
	Name          string `json:"name,omitempty"`          // "name": "attribute_name",
	Value         string `json:"value,omitempty"`         // "value": "attribute_value",
}

type CustomizeServer added in v0.8.2

type CustomizeServer struct {
	ProfileName            string            // name of server
	OSDeploymentBuildPlan  string            // name of the OS build plan
	OSDeploymentAttributes map[string]string // name value pairs for server custom attributes
	EthernetNetworkName    string            // deployment network name
}

CustomizeServer - use customizeserver when working with creating a new server server create if it's missing server apply deployment job

type DcbxInfo added in v1.0.0

type DcbxInfo struct {
	DcbxApReason  string `json:"dcbxApReason,omitempty"`  // "dcbxApReason": "Disabled",
	DcbxPfcReason string `json:"dcbxPfcReason,omitempty"` // "dcbxPfcReason": "Disabled",
	DcbxPgReason  string `json:"dcbxPgReason,omitempty"`  // "dcbxPgReason": "Disabled",
	DcbxStatus    string `json:"dcbxStatus,omitempty"`    // "dcbxStatus": "NotApplicable",
}

type DeploymentManagerSettings added in v1.0.0

type DeploymentManagerSettings struct {
	DeploymentClusterUri utils.Nstring           `json:"deploymentClusterUri,omitempty"` //"deploymentClusterUri":""
	OsDeploymentSettings *LeOsDeploymentSettings `json:"osDeploymentSettings,omitempty"` //"OsdeploymentSettings":""
}

type DeploymentModeSetting added in v1.0.0

type DeploymentModeSetting struct {
	DeploymentMode       string `json:"deploymentMode,omitempty"`       // "deploymentMode": "None",
	DeploymentNetworkUri string `json:"deploymentNetworkUri,omitempty"` // "deploymentNetworkUri": null,
}

type DeploymentModeSettings added in v1.0.0

type DeploymentModeSettings struct {
	DeploymentMode       string        `json:"deploymentMode,omitempty"`       //"deploymentMode":"None"
	DeploymentNetworkUri utils.Nstring `json:"deploymentNetworkUri,omitempty"` //"deploymentNetworkUri":"/rest/ethernet-networks/e2f0031b-52bd-4223-9ac1-d91cb519d548"
}

type DeviceBayMap added in v1.0.0

type DeviceBayMap struct {
	AvailableForFullHeightProfile           bool          `json:"availableForFullHeightProfile"`           // "availableForFullHeightProfile": false,
	AvailableForFullHeightDoubleWideProfile bool          `json:"availableForHalfHeightDoubleWideProfile"` // "availableForHalfHeightDoubleWideProfile": true,
	AvailableForHalfHeightProfile           bool          `json:"availableForHalfHeightProfile"`           // "availableForHalfHeightProfile": true,
	AvailableForHalfHeightDoubleWideProfile bool          `json:"availableForHalfHeightDoubleWideProfile"` // "availableForHalfHeightDoubleWideProfile": true,
	BayNumber                               int           `json:"bayNumber"`                               // "bayNumber": 1,
	BayPowerState                           string        `json:"bayPowerState,omitempty"`                 // "bayPowerState": "Unknown",
	Category                                string        `json:"category,omitempty"`                      // "category": "device-bays",
	ChangeState                             string        `json:"changeState,omitempty"`                   // "changeState": "None",
	CoveredByDevice                         utils.Nstring `json:"coveredByDevice,omitempty"`               // "coveredByDevice": "/rest/server-hardware/30373237-3132-4D32-3236-303730344E54",
	CoveredByProfile                        string        `json:"coveredByProfile,omitempty"`              // "coveredByProfile": null,
	Created                                 string        `json:"created,omitempty"`                       // "created": null,
	DeviceFormFactor                        string        `json:"deviceFormFactor,omitempty"`              // "deviceFormFactor": "SingleHeightSingleWide",
	DevicePresence                          string        `json:"devicePresence,omitempty"`                // "devicePresence": "Present",
	DeviceUri                               utils.Nstring `json:"deviceUri,omitempty"`                     // "deviceUri": "/rest/server-hardware/30373237-3132-4D32-3236-303730344E54",
	EnclosureUri                            utils.Nstring `json:"enclosureUri,omitempty"`                  // "enclosureUri": null,
	ETAG                                    string        `json:"eTag,omitempty"`                          // "eTag": null,
	Ipv4Setting                             Ipv4Setting   `json:"ipv4Setting,omitempty"`                   // "ipv4Setting": {},
	Model                                   string        `json:"model,omitempty"`                         // "model": null,
	Modified                                string        `json:"modified,omitempty"`                      // "modified": null,
	PowerAllocationWatts                    int           `json:"powerAllocationWatts,omitempty"`          // "powerAllocationWatts": 1,
	ProfileUri                              utils.Nstring `json:"profileUri,omitempty"`                    // "profileUri": null,
	SerialConsole                           bool          `json:"serialConsole,omitempty"`                 // "serialConsole": true,
	SerialNumber                            string        `json:"serialNumber,omitempty"`                  // "serialNumber": "",
	Type                                    string        `json:"type,omitempty"`                          // "type": "DeviceBay",
	URI                                     utils.Nstring `json:"uri,omitempty"`                           // "uri": "/rest/enclosures/09USE62519EE/device-bays/1"
}

type DeviceSlotsv200

type DeviceSlotsv200 struct {
	DeviceName    string             `json:"deviceName,omitempty"`    // deviceName The name or model of the adapter. string read only
	DeviceNumber  int                `json:"deviceNumber,omitempty"`  // deviceNumber The device number of a blade server in an enclosure. integer read only
	Location      string             `json:"location,omitempty"`      // location The location of the adapter in the server. Lom indicates LAN on motherboard, Flb is for FlexibleLOM for blades and Mezz is for Mezzanine adapters.
	PhysicalPorts []PhysicalPortv200 `json:"physicalPorts,omitempty"` // physicalPorts        //
	SlotNumber    int                `json:"slotNumber,omitempty"`    // slotNumber The slot number of the adapter on the server hardware within its specified location. integer read only
}

DeviceSlotsv200 -

type DeviceSpecificAttributes added in v1.0.0

type DeviceSpecificAttributes struct {
	Transport           string        `json:"transport,omitempty"`
	Iqn                 string        `json:"iqn,omitempty"`
	NumberOfReplicas    int           `json:"numberOfReplicas,omitempty"`
	DataProtectionLevel string        `json:"dataProtectionLevel,omitempty"`
	Id                  int           `json:"id,omitempty"`
	Uri                 utils.Nstring `json:"uri,omitempty"`
	CopyState           string        `json:"copyState,omitempty"`
	SnapshotPoolUri     utils.Nstring `json:"snapshotPoolUri,omitempty"`
}

type DownlinkPortCapability

type DownlinkPortCapability struct {
	Category           utils.Nstring          `json:"category,omitempty"`           // "category": null,
	Created            string                 `json:"created,omitempty"`            // "created": "20150831T154835.250Z",
	Description        string                 `json:"description,omitempty"`        // "description": "Downlink Port Capability",
	DownlinkSubPorts   map[string]interface{} `json:"downlinkSubPorts,omitempty"`   // "downlinkSubPorts": null,
	ETAG               string                 `json:"eTag,omitempty"`               // "eTag": "1441036118675/8",
	MaxBandwidthInGbps int                    `json:"maxBandwidthInGbps,omitempty"` // "maxBandwidthInGbps": 10,
	Modified           string                 `json:"modified,omitempty"`           // "modified": "20150831T154835.250Z",
	Name               utils.Nstring          `json:"name,omitempty"`               // "name": null,
	PortCapabilities   []string               `json:"portCapabilities,omitempty"`   //"portCapabilites":  ["ConnectionReservation","FibreChannel","ConnectionDeployment"],
	State              string                 `json:"state,omitempty"`              // "state": "Normal",
	Status             string                 `json:"status,omitempty"`             // "status": "Critical",
	TotalSubPort       int                    `json:"totalSubPort,omitempty"`       // "totalSubPort": 1,
	Type               string                 `json:"type,omitempty"`               // "type": "downlink-port-capability",
	URI                utils.Nstring          `json:"uri,omitempty"`                // "uri": "null"
}

type Enclosure added in v1.0.0

type Enclosure struct {
	ActiveOaPreferredIP                       string                `json:"activeOaPreferredIP,omitempty"`                       // "activeOaPreferredIP": "16.124.135.110",
	ApplianceBayCount                         int                   `json:"applianceBayCount,omitempty"`                         // "applianceBayCount": 16,
	ApplianceBays                             []ApplianceBay        `json:"applianceBays,omitempty"`                             // "applianceBays": [],
	AssetTag                                  string                `json:"assetTag,omitempty"`                                  // "assetTag": "",
	Category                                  string                `json:"category,omitempty"`                                  // "category": "enclosures",
	Created                                   string                `json:"created,omitempty"`                                   // "created": "20150831T154835.250Z",
	CrossBars                                 []CrossBar            `json:"crossBars,omitempty"`                                 // "crossBars": {},
	Description                               string                `json:"description,omitempty"`                               // "description": "Enclosure Group 1",
	DeviceBayCount                            int                   `json:"deviceBayCount,omitempty"`                            // "deviceBayCount": 16,
	DeviceBays                                []DeviceBayMap        `json:"deviceBays,omitempty`                                 // "deviceBays": [],
	DeviceBayWatts                            int                   `json:"deviceBayWatts,omitempty"`                            // "deviceBayWatts": 16,
	ETAG                                      string                `json:"eTag,omitempty"`                                      // "eTag": "1441036118675/8",
	EmBays                                    int                   `json:"emBays,omitempty"`                                    // "emBays": 16,
	EnclosureGroupUri                         utils.Nstring         `json:"enclosureGroupUri,omitempty"`                         // "enclosureGroupUri": "/rest/enclosure-groups/293e8efe-c6b1-4783-bf88-2d35a8e49071",
	EnclosureModel                            string                `json:"enclosureModel,omitempty"`                            // "enclosureModel": "Enclosure Group 1",
	EnclosureType                             string                `json:"enclosureType,omitempty"`                             // "enclosureType": "BladeSystem c7000 Enclosure",
	EnclosureTypeUri                          utils.Nstring         `json:"enclosureTypeUriomitempty"`                           // "enclosureTypeUri": "/rest/enclosure-groups/293e8efe-c6b1-4783-bf88-2d35a8e49071",
	FanBayCount                               int                   `json:"fanBayCount,omitempty"`                               // "fanBayCount": 16,
	FanBays                                   []FanBay              `json:"fanBays,omitempty`                                    // "fanBays": [],
	FanAndManagementDevicesWatts              int                   `json:"fanAndManagementDevicesWatts,omitempty"`              // "fanAndManagementDevicesWatts": 16,
	ForceInstallFirmware                      bool                  `json:"forceInstallFirmware,omitempty"`                      // "forceInstallFirmware": true
	FrameLinkModuleDomain                     string                `json:"frameLinkModuleDomain,omitempty"`                     // "frameLinkModuleDomain": "",
	FwBaselineName                            string                `json:"fwBaselineName,omitempty"`                            // "fwBaselineName": null,
	FwBaselineUri                             utils.Nstring         `json:"fwBaselineUri,omitempty"`                             // "fwBaselineUri": null,
	InterconnectBayCount                      int                   `json:"interconnectBayCount,omitempty"`                      // "interconnectBayCount": 8,
	InterconnectBays                          []InterconnectBay     `json:"interconnectBays"`                                    // "interconnectBays": [],
	InterconnectBayWatts                      int                   `json:"interconnectBayWatts,omitempty"`                      // "interconnectBayWatts": 8,
	IsFwManaged                               bool                  `json:"isFwManaged"`                                         // "isFwManaged": false,
	LicensingIntent                           string                `json:"licensingIntent,omitempty"`                           // "licensingIntent": "OneView",
	LogicalEnclosureUri                       utils.Nstring         `json:"logicalEnclosureUri,omitempty"`                       // "logicalEnclosureUri": null,
	ManagerBays                               []ManagerBay          `json:"managerBays,omitempty"`                               // "managerBays": [],
	MinimumPowerSupplies                      int                   `json:"minimumPowerSupplies,omitempty"`                      // "minimumPowerSupplies": 8,
	MinimumPowerSuppliesForRedundantPowerFeed int                   `json:"minimumPowerSuppliesForRedundantPowerFeed,omitempty"` // "minimumPowerSuppliesForRedundantPowerFeed": 8,
	Modified                                  string                `json:"modified,omitempty"`                                  // "modified": "20150831T154835.250Z",
	Name                                      string                `json:"name,omitempty"`                                      // "name": "e10",
	OA                                        []OAMap               `json:"oa,omitempty"`                                        // "oa": [],
	OaBayCount                                int                   `json:"oaBayCount,omitempty"`                                // "oaBayCount": 2,
	PartNumber                                string                `json:"partNumber,omitempty"`                                // "partNumber": "403320-B21",
	Partitions                                []Partition           `json:"partitions,omitempty"`                                // "partitions": [],
	PowerAllocatedWatts                       int                   `json:"powerAllocatedWatts,omitempty"`                       // "powerAllocatedWatts": ""
	PowerAvailableWatts                       int                   `json:"powerCapacityWatts,omitempty"`                        // "powerCapacityBoostWatts": ""
	PowerCapacityBoostWatts                   int                   `json:"powerCapacityBoostWatts,omitempty"`                   // "powerCapacityBoostWatts": ""
	PowerMode                                 string                `json:"powerMode,omitempty"`                                 // "powerMode": ""
	PowerSupplyBayCount                       int                   `json:"powerSupplyBayCount,omitempty"`                       // "powerSupplyBayCount": 1
	PowerSupplyBays                           []PowerSupplyBay      `json:"powerSupplyBay,omitempty"`                            // "powerSupplyBay": ""
	RackName                                  string                `json:"rackName,omitempty"`                                  // "rackName": "Rack-Renamed",
	ReconfigurationState                      string                `json:"reconfigurationState,omitempty"`                      // "reconfigurationState": "Pending"
	RefreshState                              string                `json:"refreshState,omitempty"`                              // "refreshState": "NotRefreshing",
	RemoteSupportSettings                     RemoteSupportSettings `json:"remoteSupportSettings,omitempty"`                     // "remoteSupportSettings": {},
	RemoteSupportUri                          utils.Nstring         `json:"remoteSupportUri,omitempty"`                          // "remoteSupportUri": "/rest/support/resources/enclosures/09USE62519EE",
	ScopesUri                                 utils.Nstring         `json:"scopesUri,omitempty"`                                 // "scopesUri": "/rest/scopes/resources/rest/server-profiles/DB7726F7-F601-4EA8-B4A6-D1EE1B32C07C",
	SerialNumber                              string                `json:"serialNumber,omitempty"`                              // "serialNumber": "USE62519EE",
	StandbyOaPreferredIP                      string                `json:"standbyOaPreferredIP,omitempty"`                      // "standbyOaPreferredIP": "",
	State                                     string                `json:"state,omitempty"`                                     // "state": "Configured",
	StateReason                               string                `json:"stateReason"`                                         // "stateReason": "None",
	Status                                    string                `json:"status,omitempty"`                                    // "status": "Critical",
	SupportDataCollectionState                string                `json:"supportDataCollectionState,omitempty"`                // "supportDataCollectionState": "PendingEnable",
	SupportDataCollectionType                 string                `json:"supportDataCollectionType,omitempty"`                 // "supportDataCollectionType": "",
	SupportDataCollectionUri                  utils.Nstring         `json:"supportDataCollectionUri,omitempty"`                  // "supportDataCollectionUri": "/rest/support/data-collections",
	SupportState                              string                `json:"supportState,omitempty"`                              // "supportState": "PendingEnable",
	Type                                      string                `json:"type,omitempty"`                                      // "type": "Enclosure",
	UIDState                                  string                `json:"uidState,omitempty"`                                  // "uidState": "Blink",
	URI                                       utils.Nstring         `json:"uri,omitempty"`                                       // "uri": "/rest/enclosures/09USE62519EE",
	UUID                                      string                `json:"uuid,omitempty"`                                      // "uuid": "09USE62519EE",
	VcmDomainId                               string                `json:"vcmDomainId,omitempty"`                               // "vcmDomainId": "@914ae756bdbce70cf7cbce65d34a23",
	VcmDomainName                             string                `json:"vcmDomainName,omitempty"`                             // "vcmDomainName": "OneViewDomain",
	VcmMode                                   bool                  `json:"vcmMode,omitempty"`                                   // "vcmMode": true,
	VcmUrl                                    string                `json:"vcmUrl,omitempty"`                                    // "vcmUrl": "https://16.124.128.80"
}

type EnclosureCreateMap added in v1.0.0

type EnclosureCreateMap struct {
	EnclosureGroupUri    utils.Nstring `json:"enclosureGroupUri"`
	Hostname             string        `json:"hostname"`
	Username             string        `json:"username"`
	Password             string        `json:"password"`
	LicensingIntent      string        `json:"licensingIntent"`
	ForceInstallFirmware bool          `json:"forceInstallFirmware,omitempty"`
	FirmwareBaselineUri  string        `json:"firmwareBaselineUri,omitempty"`
	Force                bool          `json:"force,omitempty"`
	InitialScopeUris     []string      `json:"initialScopeUris"`
	UpdateFirmwareOn     string        `json:"updateFirmwareOn,omitempty"`
}

type EnclosureGroup added in v0.8.1

type EnclosureGroup struct {
	AmbientTemperatureMode              string               `json:"ambientTemperatureMode,omitempty"`       // "ambientTemperatureMode": "Standard"
	AssociatedLogicalInterconnectGroups []string             `json:"associatedInterconnectGroups,omitempty"` // "associatedInterconnectGorups": [],
	Category                            string               `json:"category,omitempty"`                     // "category": "enclosure-groups",
	Created                             string               `json:"created,omitempty"`                      // "created": "20150831T154835.250Z",
	Description                         string               `json:"description,omitempty"`                  // "description": "Enclosure Group 1",
	ETAG                                string               `json:"eTag,omitempty"`                         // "eTag": "1441036118675/8",
	EnclosureCount                      int                  `json:"enclosureCount,omitempty"`               // "enclosureCount": 1,
	EnclosureTypeUri                    utils.Nstring        `json:"enclosureTypeUri,omitempty"`             // "enclosureTypeUri": "/rest/enclosures/e2f0031b-52bd-4223-9ac1-d91cb5219d548"
	InitialScopeUris                    []utils.Nstring      `json:"initialScopeUris,omitempty"`             // "initialScopeUris":[]
	InterconnectBayMappingCount         int                  `json:"interconnectBayMappingCount,omitempty"`  // "interconnectBayMappingCount": 8,
	InterconnectBayMappings             []InterconnectBayMap `json:"interconnectBayMappings"`                // "interconnectBayMappings": [],
	IpAddressingMode                    string               `json:"ipAddressingMode,omitempty"`             // "ipAddressingMode": "DHCP"
	IpRangeUris                         []utils.Nstring      `json:"ipRangeUris,omitempty"`
	Modified                            string               `json:"modified,omitempty"`             // "modified": "20150831T154835.250Z",
	Name                                string               `json:"name,omitempty"`                 // "name": "Enclosure Group 1",
	OsDeploymentSettings                *OsDeploymentSetting `json:"osDeploymentSettings,omitempty"` // "osDeploymentSetting": {},
	PortMappingCount                    int                  `json:"portMappingCount,omitempty"`     // "portMappingCount": 1,
	PortMappings                        []PortMap            `json:"portMappings,omitempty"`         // "portMappings": [],
	PowerMode                           string               `json:"powerMode,omitempty"`            // "powerMode": RedundantPowerFeed,
	ScopesUri                           utils.Nstring        `json:"scopesUri,omitempty"`            // "ScopesUri": "/rest/scopes/resources/rest/enclosure-groups/2b322628-e5a9-4843-b184-08345e7140c3",
	StackingMode                        string               `json:"stackingMode,omitempty"`         // "stackingMode": "Enclosure"
	State                               string               `json:"state,omitempty"`                // "state": "Normal",
	Status                              string               `json:"status,omitempty"`               // "status": "Critical",
	Type                                string               `json:"type,omitempty"`                 // "type": "EnclosureGroupV200",
	URI                                 utils.Nstring        `json:"uri,omitempty"`                  // "uri": "/rest/enclosure-groups/e2f0031b-52bd-4223-9ac1-d91cb519d548"
}

type EnclosureGroupList added in v0.8.1

type EnclosureGroupList struct {
	Total       int              `json:"total,omitempty"`       // "total": 1,
	Count       int              `json:"count,omitempty"`       // "count": 1,
	Start       int              `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring    `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring    `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring    `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []EnclosureGroup `json:"members,omitempty"`     // "members":[]
}

type EnclosureList added in v1.0.0

type EnclosureList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/enclosures?sort=name:asc"
	Members     []Enclosure   `json:"members,omitempty"`     // "members":[]
}

type EnclosurePatchMap added in v1.0.0

type EnclosurePatchMap struct {
	Op    string `json:"op"`
	Path  string `json:"path"`
	Value string `json:"value"`
}

type Enclosures added in v1.0.0

type Enclosures struct {
	EnclosureUri     utils.Nstring      `json:"enclosureUri,omitempty"`     //"enclosureUri":"",
	InterconnectBays []InterconnectBays `json:"interconnectBays,omitempty"` //"interconnectBays":"[]",
}

type EthernetNetwork

type EthernetNetwork struct {
	Category              string          `json:"category,omitempty"`              // "category": "ethernet-networks",
	ConnectionTemplateUri utils.Nstring   `json:"connectionTemplateUri,omitempty"` // "connectionTemplateUri": "/rest/connection-templates/7769cae0-b680-435b-9b87-9b864c81657f",
	Created               string          `json:"created,omitempty"`               // "created": "20150831T154835.250Z",
	Description           utils.Nstring   `json:"description,omitempty"`           // "description": "Ethernet network 1",
	ETAG                  string          `json:"eTag,omitempty"`                  // "eTag": "1441036118675/8",
	EthernetNetworkType   string          `json:"ethernetNetworkType,omitempty"`   // "ethernetNetworkType": "Tagged",
	FabricUri             utils.Nstring   `json:"fabricUri,omitempty"`             // "fabricUri": "/rest/fabrics/9b8f7ec0-52b3-475e-84f4-c4eac51c2c20",
	Modified              string          `json:"modified,omitempty"`              // "modified": "20150831T154835.250Z",
	Name                  string          `json:"name,omitempty"`                  // "name": "Ethernet Network 1",
	PrivateNetwork        bool            `json:"privateNetwork"`                  // "privateNetwork": false,
	Purpose               string          `json:"purpose,omitempty"`               // "purpose": "General",
	SmartLink             bool            `json:"smartLink"`                       // "smartLink": false,
	State                 string          `json:"state,omitempty"`                 // "state": "Normal",
	Status                string          `json:"status,omitempty"`                // "status": "Critical",
	Type                  string          `json:"type,omitempty"`                  // "type": "ethernet-networkV3",
	URI                   utils.Nstring   `json:"uri,omitempty"`                   // "uri": "/rest/ethernet-networks/e2f0031b-52bd-4223-9ac1-d91cb519d548"
	VlanId                int             `json:"vlanId,omitempty"`                // "vlanId": 1,
	ScopesUri             utils.Nstring   `json:"scopesUri,omitempty"`             // "scopesUri":
	InitialScopeUris      []utils.Nstring `json:"initialScopeUris,omitempty"`      // "initialScopUris":
}

type EthernetNetworkList

type EthernetNetworkList struct {
	Total       int               `json:"total,omitempty"`       // "total": 1,
	Count       int               `json:"count,omitempty"`       // "count": 1,
	Start       int               `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring     `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring     `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring     `json:"uri,omitempty"`         // "uri": "/rest/ethernet-networks?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []EthernetNetwork `json:"members,omitempty"`     // "members":[]
}

type EthernetSettings

type EthernetSettings struct {
	Category                    utils.Nstring `json:"category,omitempty"`                    // "category": null,
	Created                     string        `json:"created,omitempty"`                     // "created": "20150831T154835.250Z",
	DependentResourceUri        utils.Nstring `json:"dependentResourceUri,omitempty"`        // dependentResourceUri": "/rest/logical-interconnect-groups/b7b144e9-1f5e-4d52-8534-2e39280f9e86",
	Description                 utils.Nstring `json:"description,omitempty,omitempty"`       // "description": "Ethernet Settings",
	ETAG                        string        `json:"eTag,omitempty"`                        // "eTag": "1441036118675/8",
	EnableFastMacCacheFailover  *bool         `json:"enableFastMacCacheFailover,omitempty"`  //"enableFastMacCacheFailover": false,
	EnableIgmpSnooping          *bool         `json:"enableIgmpSnooping,omitempty"`          // "enableIgmpSnooping": false,
	EnableNetworkLoopProtection *bool         `json:"enableNetworkLoopProtection,omitempty"` // "enableNetworkLoopProtection": false,
	EnablePauseFloodProtection  *bool         `json:"enablePauseFloodProtection,omitempty"`  // "enablePauseFloodProtection": false,
	EnableRichTLV               *bool         `json:"enableRichTLV,omitempty"`               // "enableRichTLV": false,
	EnableStormControl          *bool         `json:"enableStormControl,omitempty"`          // "enableStormControl": false,
	EnableTaggedLldp            *bool         `json:"enableTaggedLldp,omitempty"`            // "enableTaggedLldp": false,
	ID                          string        `json:"id,omitempty"`                          //"id": "0c398238-2d35-48eb-9eb5-7560d59f94b3",
	IgmpIdleTimeoutInterval     int           `json:"igmpIdleTimeoutInterval,omitempty"`     // "igmpIdleTimeoutInterval": 260,
	IgmpSnoopingVlanIds         string        `json:"igmpSnoopingVlanIds,omitempty"`         // "igmpSnoopingVlanIds": "",
	LldpIpAddressMode           string        `json:"lldpIpAddressMode,omitempty"`           // "lldpIpAddressMode": "IPV4",
	LldpIpv4Address             string        `json:"lldpIpv4Address,omitempty"`             // "lldpIpv4Address": "",
	LldpIpv6Address             string        `json:"lldpIpv6Address,omitempty"`             //"lldpIpv6Address": "",
	InterconnectType            string        `json:"interconnectType,omitempty"`            // "interconnectType": "Ethernet",
	MacRefreshInterval          int           `json:"macRefreshInterval,omitempty"`          // "macRefreshInterval": 5,
	Modified                    string        `json:"modified,omitempty"`                    // "modified": "20150831T154835.250Z",
	Name                        string        `json:"name,omitempty"`                        // "name": "ethernetSettings 1",
	State                       string        `json:"state,omitempty"`                       // "state": "Normal",
	Status                      string        `json:"status,omitempty"`                      // "status": "Critical",
	StormControlPollingInterval int           `json:"stormControlPollingInterval,omitempty"` //"stormControlPollingInterval": 10,
	StormControlThreshold       int           `json:"stormControlThreshold,,omitempty"`      //"stormControlThreshold": 0,
	Type                        string        `json:"type,omitempty"`                        // "EthernetInterconnectSettingsV3",
	URI                         utils.Nstring `json:"uri,omitempty"`                         // "uri": "/rest/logical-interconnect-groups/b7b144e9-1f5e-4d52-8534-2e39280f9e86/ethernetSettings"
}

type ExpectedNeighbor added in v1.0.0

type ExpectedNeighbor struct {
	RemoteChassisId string `json:"remoteChassisId,omitempty"` //"remoteChassisId":"",
	RemotePortId    string `json:"remotePortId,omitempty"`    //"remotePortId":"",
}

type ExtentedProperty added in v1.0.0

type ExtentedProperty struct {
	PropertyName string `json:"propertyName"` //"propertyName":"",
	Value        string `json:"value"`        //"value":"",
	ValueFormat  string `json:"valueFormat"`  //"valueFormat":"",
	ValueType    string `json:"valueType"`    //"valueType":"",

}

type ExtraAttributes added in v1.0.0

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

type FCNetwork added in v0.8.1

type FCNetwork struct {
	Type                    string          `json:"type,omitempty"`
	FabricType              string          `json:"fabricType,omitempty"`
	FabricUri               utils.Nstring   `json:"fabricUri,omitempty"`
	ConnectionTemplateUri   utils.Nstring   `json:"connectionTemplateUri,omitempty"`
	ManagedSanURI           utils.Nstring   `json:"managedSanUri,omitempty"`
	LinkStabilityTime       int             `json:"linkStabilityTime"`
	AutoLoginRedistribution bool            `json:"autoLoginRedistribution"`
	Description             string          `json:"description,omitempty"`
	Name                    string          `json:"name,omitempty"`
	State                   string          `json:"state,omitempty"`
	Status                  string          `json:"status,omitempty"`
	Category                string          `json:"category,omitempty"`
	URI                     utils.Nstring   `json:"uri,omitempty"`
	ETAG                    string          `json:"eTag,omitempty"`
	Modified                string          `json:"modified,omitempty"`
	Created                 string          `json:"created,omitempty"`
	ScopesUri               utils.Nstring   `json:"scopesUri,omitempty"`
	InitialScopeUris        []utils.Nstring `json:"initialScopeUris,omitempty"` // "initialScopeUris":[]
}

type FCNetworkList added in v0.8.1

type FCNetworkList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []FCNetwork   `json:"members,omitempty"`     // "members":[]
}

type FCoENetwork

type FCoENetwork struct {
	Type                  string        `json:"type,omitempty"`
	VlanId                int           `json:"vlanId,omitempty"`
	ConnectionTemplateUri utils.Nstring `json:"connectionTemplateUri,omitempty"`
	ManagedSanUri         utils.Nstring `json:"managedSanUri,omitempty"`
	FabricUri             utils.Nstring `json:"fabricUri,omitempty"`
	Description           utils.Nstring `json:"description,omitempty"`
	Name                  string        `json:"name,omitempty"`
	State                 string        `json:"state,omitempty"`
	Status                string        `json:"status,omitempty"`
	ETAG                  string        `json:"eTag,omitempty"`
	Modified              string        `json:"modified,omitempty"`
	Created               string        `json:"created,omitempty"`
	Category              string        `json:"category,omitempty"`
	URI                   utils.Nstring `json:"uri,omitempty"`
}

type FCoENetworkList

type FCoENetworkList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []FCoENetwork `json:"members,omitempty"`     // "members":[]
}

type FanBay added in v1.0.0

type FanBay struct {
	BayNumber       int    `json:"bayNumber,omitempty"`       // "bayNumber": 1,
	ChangeState     string `json:"changeState,omitempty"`     // "changeState": "None",
	DevicePresence  string `json:"devicePresence,omitempty"`  // "devicePresence": "Present",
	DeviceRequired  bool   `json:"deviceRequired,omitempty"`  // "deviceRequired": false,
	Model           string `json:"model,omitempty"`           // "model": null,
	PartNumber      string `json:"partNumber,omitempty"`      // "partNumber": ""
	SerialNumber    string `json:"serialNumber,omitempty"`    // "serialNumber": "",
	SparePartNumber string `json:"sparePartNumber,omitempty"` // "sparePartNumber": ""
	State           string `json:"state,omitempty"`           // "state": null
	Status          string `json:"status,omitempty"`          // "status": ""
}

type FcPortProperties added in v1.0.0

type FcPortProperties struct {
	FcfMac                        string   `json:"fcfMac,omitempty"`                        // "fcfMac": "",
	Logins                        string   `json:"logins,omitempty"`                        // "logins": "",
	LoginsCount                   int      `json:"loginsCount,omitempty"`                   // "loginsCount": 0,
	NeighborInterconnectName      string   `json:"neighborInterconnectName,omitempty"`      // "neighborInterconnectName": "",
	OpOnline                      bool     `json:"opOnline,omitempty"`                      // "opOnline": false,
	OpOnlineReason                string   `json:"opOnlineReason,omitempty"`                // "opOnlineReason": "",
	PrincipleInterconnectName     string   `json:"principleInterconnectName,omitempty"`     // "principleInterconnectName": "",
	PrincipleInterconnectNameList []string `json:"principleInterconnectNameList,omitempty"` // "principleInterconnectNameList": [],
	TrunkMaster                   string   `json:"trunkMaster,omitempty"`                   // "trunkMaster": "",
	WWNN                          string   `json:"wwnn,omitempty"`                          // "wwnn": "",
	WWPN                          string   `json:"wwpn,omitempty"`                          // "wwpn": "",
}

type Firmware added in v1.0.0

type Firmware struct {
	Command                 string                 `json:"command"`                           //command": "Update",
	FwBaseline              string                 `json:"fwBaseline,omitempty"`              //"fwBaseline": "1.16",
	SppUri                  utils.Nstring          `json:"sppUri"`                            //"sppUri": "/rest/firmware-drivers/SPP_2018_06_20180709_for_HPE_Synergy_Z7550-96524",
	SppName                 string                 `json:"sppName,omitempty"`                 //"sppName": "HPE Synergy Custom SPP 2018 06 19  2018 07 09 2018.07.09.00",
	Interconnects           []FirmwareInterconnect `json:"interconnects,omitempty"`           //"interconnects":[]
	State                   string                 `json:"state,omitempty"`                   // "state": "Activated",
	Force                   bool                   `json:"force,omitempty"`                   //"force": false,
	EthernetActivationType  string                 `json:"ethernetActivationType,omitempty"`  //"ethernetActivationType": "None",
	EthernetActivationDelay int                    `json:"ethernetActivationDelay,omitempty"` //"ethernetActivationDelay": 0,
	FcActivationType        string                 `json:"fcActivationType,omitempty"`        //"fcActivationType": "None",
	FcActivationDelay       int                    `json:"fcActivationDelay,omitempty"`       //"fcActivationDelay": 0,
	ValidationType          string                 `json:"validationType,omitempty"`          //"validationType": "None",
	LogicalSwitchId         string                 `json:"logicalSwitchId,omitempty"`         //"logicalSwitchId": "d4468f89-4442-4324-9c01-624c7382db2d"
}

type FirmwareAndDriversInstallStatev200

type FirmwareAndDriversInstallStatev200 struct {
	InstallState            string `json:"installState,omitempty"`            // installState The installation state information of the firmware and/or OS drivers on the server.
	InstalledStateTimestamp string `json:"installedStateTimestamp,omitempty"` // The timestamp information indicating the time when the install state value got updated. string
}

FirmwareAndDriversInstallStatev200 -

type FirmwareInterconnect added in v1.0.0

type FirmwareInterconnect struct {
	DesiredFw        string `json:"desiredFw,omitempty"`        //"desiredFw": "1.16",
	DeviceType       string `json:"deviceType,omitempty"`       //"deviceType": "Synergy 20Gb Interconnect Link Module",
	InstalledFw      string `json:"installedFw,omitempty"`      //"installedFw": "1.16",
	InterconnectName string `json:"interconnectName,omitempty"` //"interconnectName": "SYN03_Frame2, interconnect 3",
	InterconnectUri  string `json:"interconnectUri,omitempty"`  //"interconnectUri": "/rest/interconnects/394a88fb-b6b0-430a-907f-aed03275b0ef",
	SppName          string `json:"sppName,omitempty"`          //"sppName": "HPE Synergy Custom SPP 2018 06 19  2018 07 09 2018.07.09.00",
	SppURI           string `json:"sppUri,omitempty"`           //"sppUri": "/rest/firmware-drivers/SPP_2018_06_20180709_for_HPE_Synergy_Z7550-96524",
	State            string `json:"state,omitempty"`            //"state": "Active",
	UpdateFlagDesc   string `json:"updateFlagDesc,omitempty"`   //"updateFlagDesc": "Interconnect already has same firmware version",
}

type FirmwareOption

type FirmwareOption struct {
	FirmwareOptionv200
	ForceInstallFirmware bool          `json:"forceInstallFirmware,omitempty"` // "forceInstallFirmware": false,
	FirmwareBaselineUri  utils.Nstring `json:"firmwareBaselineUri,omitempty"`  // "firmwareBaselineUri": null,
	ManageFirmware       bool          `json:"manageFirmware,omitempty"`       // "manageFirmware": false
}

FirmwareOption structure for firware settings

type FirmwareOptionv200

type FirmwareOptionv200 struct {
	FirmwareInstallType string `json:"firmwareInstallType,omitempty"` // Specifies the way a Service Pack for ProLiant (SPP) is installed. This field is used if the 'manageFirmware' field is true. Possible values are
}

firmware additional properties introduced in 200 "FirmwareOnly" - Updates the firmware without powering down the server hardware using using HP Smart Update Tools. "FirmwareAndOSDrivers" - Updates the firmware and OS drivers without powering down the server hardware using HP Smart Update Tools. "FirmwareOnlyOfflineMode" - Manages the firmware through HP OneView. Selecting this option requires the server hardware to be powered down.

type HardwareState

type HardwareState int

HardwareState

const (
	H_UNKNOWN HardwareState = 1 + iota
	H_ADDING
	H_NOPROFILE_APPLIED
	H_MONITORED
	H_UNMANAGED
	H_REMOVING
	H_REMOVE_FAILED
	H_REMOVED
	H_APPLYING_PROFILE
	H_PROFILE_APPLIED
	H_REMOVING_PROFILE
	H_PROFILE_ERROR
	H_UNSUPPORTED
	H_UPATING_FIRMWARE
)

func (HardwareState) Equal

func (h HardwareState) Equal(s string) bool

func (HardwareState) String

func (h HardwareState) String() string

type Host added in v1.0.0

type Host struct {
	Name string `json:"name,omitempty"`
	Os   string `json:"os,omitempty"`
}

type HpSmartUpdateToolStatusv200

type HpSmartUpdateToolStatusv200 struct {
	HPSUTInstallState string `json:"hpSUTInstallState,omitempty"` // hpSUTInstallState HpSUT Install State Enum
	InstallState      string `json:"installState,omitempty"`      // installState HP Smart Update Tool's installed state on the server indicating whether it is installed, not installed or unknown.
	LastOperationTime string `json:"lastOperationTime,omitempty"` // lastOperationTime The timestamp indicating when HP Smart Update Tool was active or running a firmware update operation. string
	Mode              string `json:"mode,omitempty"`              // mode The current run mode configured for HP Smart Update Tool installed on the server. string
	ServiceState      string `json:"serviceState,omitempty"`      // serviceState The state of the HP Smart Update Tool Service running on the server operating system. string
	Version           string `json:"version,omitempty"`           // version The current version of the HP Smart Update Tool installed on the server. string
}

type IcmLicenses added in v1.0.0

type IcmLicenses struct {
	License []License `json:"License"` //"License": [{...}],
}

type InactiveFCoEQosConfig

type InactiveFCoEQosConfig struct {
	Category                   utils.Nstring          `json:"category,omitempty"`                   // "category": "null",
	ConfigType                 string                 `json:"configType,omitempty"`                 // "configType": "CustomWithFCoE",
	Created                    string                 `json:"created,omitempty"`                    // "created": "20150831T154835.250Z",
	Description                utils.Nstring          `json:"description,omitempty,omitempty"`      // "description": "Ethernet Settings",
	DownlinkClassificationType string                 `json:"downlinkClassificationType,omitempty"` //"downlinkClassifcationType": "DOT1P_AND_DSCP",
	ETAG                       string                 `json:"eTag,omitempty"`                       // "eTag": "1441036118675/8",
	Modified                   string                 `json:"modified,omitempty"`                   // "modified": "20150831T154835.250Z",
	Name                       string                 `json:"name,omitempty"`                       // "name": "active QOS Config 1",
	QosTrafficClassifiers      []QosTrafficClassifier `json:"qosTrafficClassifiers,omitempty"`      // "qosTrafficClassifiers": {...},
	State                      string                 `json:"state,omitempty"`                      // "state": "Normal",
	Status                     string                 `json:"status,omitempty"`                     // "status": "Critical",
	Type                       string                 `json:"type,omitempty"`                       // "type": "QosConfiguration",
	UplinkClassificationType   string                 `json:"uplinkClassificationType,omitempty"`   // "uplinkClassificationType": "DOT1P"
	URI                        utils.Nstring          `json:"uri,omitempty"`                        // "uri": null
}

type InactiveNonFCoEQosConfig

type InactiveNonFCoEQosConfig struct {
	Category                   utils.Nstring          `json:"category,omitempty"`                   // "category": "null",
	ConfigType                 string                 `json:"configType,omitempty"`                 // "configType": "CustomWithFCoE",
	Created                    string                 `json:"created,omitempty"`                    // "created": "20150831T154835.250Z",
	Description                utils.Nstring          `json:"description,omitempty,omitempty"`      // "description": "Ethernet Settings",
	DownlinkClassificationType string                 `json:"downlinkClassificationType,omitempty"` //"downlinkClassifcationType": "DOT1P_AND_DSCP",
	ETAG                       string                 `json:"eTag,omitempty"`                       // "eTag": "1441036118675/8",
	Modified                   string                 `json:"modified,omitempty"`                   // "modified": "20150831T154835.250Z",
	Name                       string                 `json:"name,omitempty"`                       // "name": "active QOS Config 1",
	QosTrafficClassifiers      []QosTrafficClassifier `json:"qosTrafficClassifiers,omitempty"`      // "qosTrafficClassifiers": {...},
	State                      string                 `json:"state,omitempty"`                      // "state": "Normal",
	Status                     string                 `json:"status,omitempty"`                     // "status": "Critical",
	Type                       string                 `json:"type,omitempty"`                       // "type": "QosConfiguration",
	UplinkClassificationType   string                 `json:"uplinkClassificationType,omitempty"`   // "uplinkClassificationType": "DOT1P"
	URI                        utils.Nstring          `json:"uri,omitempty"`                        // "uri": null
}

type Initiator added in v1.0.0

type Initiator struct {
	Chap       *Chap       `json:"chap,omitempty"`
	MutualChap *MutualChap `json:"mutualChap,omitempty"`
	Name       string      `json:"name,omitempty"`
}

type Interconnect added in v1.0.0

type Interconnect struct {
	BaseWWN                       string               `json:"baseWWN,omitempty"`                       // "baseWWN": "10:00:00:11:0A:06:08:69",
	Category                      string               `json:"category,omitempty"`                      // "category": "interconnects",
	Created                       string               `json:"created,omitempty"`                       // "created": "2018-08-02T15:49:59.963Z",
	Description                   string               `json:"description,omitempty"`                   // "description": null,
	DeviceResetState              string               `json:"deviceResetState,omitempty"`              // "deviceResetState": "Normal",
	EdgeVirtualBridgingAvailable  bool                 `json:"edgeVirtualBridgingAvailable,omitempty"`  // "edgeVirtualBridgingAvailable": false,
	EnableCutThrough              bool                 `json:"enableCutThrough,omitempty"`              // "enableCutThrough": false,
	EnableFastMacCacheFailover    bool                 `json:"enableFastMacCacheFailover,omitempty"`    // "enableFastMacCacheFailover": true,
	EnableIgmpSnooping            bool                 `json:"enableIgmpSnooping,omitempty"`            // "enableIgmpSnooping": false,
	EnableNetworkLoopProtection   bool                 `json:"enableNetworkLoopProtection,omitempty"`   // "enableNetworkLoopProtection": true,
	EnablePauseFloodProtection    bool                 `json:"enablePauseFloodProtection,omitempty"`    // "enablePauseFloodProtection": true,
	EnableRichTLV                 bool                 `json:"enableRichTLV,omitempty"`                 // "enableRichTLV": false,
	EnableStormControl            bool                 `json:"enableStormControl,omitempty"`            // "enableStormControl": false,
	EnableTaggedLldp              bool                 `json:"enableTaggedLldp,omitempty"`              // "enableTaggedLldp": false,
	EnclosureName                 string               `json:"enclosureName,omitempty"`                 // "enclosureName": "SYN03_Frame1",
	EnclosureType                 string               `json:"enclosureType,omitempty"`                 // "enclosureType": "SY12000",
	EnclosureUri                  utils.Nstring        `json:"enclosureUri,omitempty"`                  // "enclosureUri": "/rest/enclosures/013645CN759000AC",
	ETag                          string               `json:"eTag,omitempty"`                          // "eTag": "463bd328-ffc8-40ae-9603-6136fa9e6e58",
	FirmwareVersion               string               `json:"firmwareVersion,omitempty"`               // "firmwareVersion": "1.3.0.1005",
	HostName                      string               `json:"hostName,omitempty"`                      // "hostName": "VC4040F8-2TV5451754",
	IcmLicenses                   IcmLicenses          `json:"icmLicenses,omitempty"`                   // "icmLicenses": {},
	IgmpIdleTimeoutInterval       int                  `json:"igmpIdleTimeoutInterval,omitempty"`       // "igmpIdleTimeoutInterval": 260,
	IgmpSnoopingVlanIds           string               `json:"igmpSnoopingVlanIds,omitempty"`           // "igmpSnoopingVlanIds": "",
	InitialScopeUris              []string             `json:"initialScopeUris,omitempty"`              // "initialScopeUris": [],
	InterconnectIP                string               `json:"interconnectIP,omitempty"`                // "interconnectIP": "fe80::5eb9:1ff:fe47:f5d2",
	InterconnectLocation          InterconnectLocation `json:"interconnectLocation,omitempty"`          // "interconnectLocation": {}
	InterconnectMAC               string               `json:"interconnectMAC,omitempty"`               // "interconnectMAC": "5C:B9:01:47:F5:D2",
	InterconnectTypeUri           utils.Nstring        `json:"interconnectTypeUri,omitempty"`           // "interconnectTypeUri": "/rest/interconnect-types/59080afb-85b5-43ae-8c69-27c08cb91f3a",
	IpAddressList                 []IpAddressList      `json:"ipAddressList,omitempty"`                 // "ipAddressList": []
	LldpIpAddressMode             string               `json:"lldpIpAddressMode,omitempty"`             // "lldpIpAddressMode": "IPV4",
	LldpIpv4Address               string               `json:"lldpIpv4Address,omitempty"`               // "lldpIpv4Address": "",
	LldpIpv6Address               string               `json:"lldpIpv6Address,omitempty"`               // "lldpIpv6Address": "",
	LogicalInterconnectUri        utils.Nstring        `json:"logicalInterconnectUri,omitempty"`        // "logicalInterconnectUri": "/rest/logical-interconnects/d4468f89-4442-4324-9c01-624c7382db2d",
	MaxBandwidth                  string               `json:"maxBandwidth,omitempty"`                  // "maxBandwidth": "Speed_20G",
	MgmtInterface                 string               `json:"mgmtInterface,omitempty"`                 // "mgmtInterface": null,
	MigrationState                string               `json:"migrationState,omitempty"`                // "migrationState": null,
	Model                         string               `json:"model,omitempty"`                         // "model": "Virtual Connect SE 40Gb F8 Module for Synergy",
	Modified                      string               `json:"modified,omitempty"`                      // "modified": "2018-12-03T18:26:43.335Z",
	Name                          string               `json:"name,omitempty"`                          // "name": "SYN03_Frame1, interconnect 3",
	NetworkLoopProtectionInterval int                  `json:"networkLoopProtectionInterval,omitempty"` // "networkLoopProtectionInterval": 5,
	PartNumber                    string               `json:"partNumber,omitempty"`                    // "partNumber": "794502-B23",
	PortCount                     int                  `json:"portCount,omitempty"`                     // "portCount": 42,
	Ports                         []Port               `json:"ports,omitempty"`                         // "ports": [],
	PowerState                    string               `json:"powerState"`                              // "powerState": "On",
	ProductName                   string               `json:"productName,omitempty"`                   // "productName": "Virtual Connect SE 40Gb F8 Module for Synergy"
	QosConfiguration              QosConfiguration     `json:"qosConfiguration,omitempty"`              // "qosConfiguration": {},
	RemoteSupport                 RemoteSupport        `json:"remoteSupport,omitempty"`                 // "remoteSupport": {},
	Roles                         []string             `json:"roles,omitempty"`                         // "roles": []
	ScopesUri                     utils.Nstring        `json:"scopesUri,omitempty"`                     // "scopesUri": "/rest/scopes/resources/rest/interconnects/2b322628-e5a9-4843-b184-08345e7140c3",
	SerialNumber                  string               `json:"serialNumber,omitempty"`                  // "serialNumber": "2TV5451754",
	SnmpConfiguration             SnmpConfiguration    `json:"snmpConfiguration,omitempty"`             // "snmpConfiguration": {},
	SparePartNumber               string               `json:"sparePartNumber,omitempty"`               // "sparePartNumber": "813174-001",
	StackingDomainId              int                  `json:"stackingDomainId,omitempty"`              // "stackingDomainId": 3,
	StackingDomainRole            string               `json:"stackingDomainRole,omitempty"`            // "stackingDomainRole": "Master",
	StackingMemberId              int                  `json:"stackingMemberId,omitempty"`              // "stackingMemberId": 0,
	State                         string               `json:"state,omitempty"`                         // "state": "Configured",
	Status                        string               `json:"status,omitempty"`                        // "status": "OK",
	StormControlPollingInterval   int                  `json:"stormControlPollingInterval,omitempty"`   // "stormControlPollingInterval": 10,
	StormControlThreshold         int                  `json:"stormControlThreshold,omitempty"`         // "stormControlThreshold": 0,
	SubPortCount                  int                  `json:"subPortCount,omitempty"`                  // "subPortCount": 8,
	Type                          string               `json:"type,omitempty"`                          // "type": "InterconnectV4",
	UidState                      string               `json:"uidState,omitempty"`                      // "uidState": "Off",
	UnsupportedCapabilities       string               `json:unsupportedCapabilities,omitempty"`        // "unsupportedCapabilities": null,
	URI                           utils.Nstring        `json:"uri,omitempty"`                           // "uri": "/rest/interconnects/2b322628-e5a9-4843-b184-08345e7140c3"
}

type InterconnectBay added in v1.0.0

type InterconnectBay struct {
	BayNumber              int         `json:"bayNumber,omitempty"`              // "bayNumber": 1,
	BayPowerState          string      `json:"bayPowerState,omitempty"`          // "bayPowerState": "Unknown",
	ChangeState            string      `json:"changeState,omitempty"`            // "changeState": "None",
	ContainedRisResources  []string    `json:"containedRisResources,omitempty"`  // "containedRisResources": ["/rest/v1/Interconnect/1"],
	Empty                  bool        `json:"empty,omitempty"`                  // "empty": false,
	EnclosureUri           string      `json:"enclosureUri,omitempty"`           // "enclosureUri": "/rest/enclosures/013645CN759000AD",
	InterconnectBayType    string      `json:"interconnectBayType,omitempty"`    // "interconnectBayType": "SY12000InterconnectBay",
	InterconnectModel      string      `json:"interconnectModel,omitempty"`      // "interconnectModel": "Synergy 12Gb SAS Connection Module",
	InterconnectReady      bool        `json:"interconnectReady,omitempty"`      // "interconnectReady": true,
	InterconnectUri        string      `json:"interconnectUri,omitempty"`        // "interconnectUri": "/rest/sas-interconnects/TWT546W04N",
	Ipv4Setting            Ipv4Setting `json:"ipv4Setting,omitempty"`            // "ipv4Setting": {},
	LogicalInterconnectUri string      `json:"logicalInterconnectUri,omitempty"` // "logicalInterconnectUri": "/rest/sas-logical-interconnects/23868fa4-b773-4fea-a1ab-44c0d30b2d50",
	OriginOfCondition      string      `json:"originOfCondition,omitempty"`      // "originOfCondition": "/rest/v1/InterconnectManager/1",
	PartNumber             string      `json:"partNumber,omitempty"`             // "partNumber": "755985-B21",
	PowerAllocationWatts   int         `json:"powerAllocationWatts,omitempty"`   // "powerAllocationWatts": 32,
	SerialConsole          bool        `json:"serialConsole,omitempty"`          // "serialConsole": true,
	SerialNumber           string      `json:"serialNumber,omitempty"`           // "serialNumber": "TWT546W04N",
}

type InterconnectBayMap added in v0.8.1

type InterconnectBayMap struct {
	EnclosureIndex              int           `json:"enclosureIndex,omitempty"`              // "enclosureIndex": 0,
	InterconnectBay             int           `json:"interconnectBay,omitempty"`             // "interconnectBay": 0,
	LogicalInterconnectGroupUri utils.Nstring `json:"logicalInterconnectGroupUri,omitempty"` // "logicalInterconnectGroupUri": "",
}

type InterconnectBays added in v1.0.0

type InterconnectBays struct {
	BayNumber      int             `json:"bayNumber,omitempty"`      //"bayNumber":"3",
	LicenseIntents *LicenseIntents `json:"licenseIntents,omitempty"` //"licenseIntent":"",
}

type InterconnectCapability

type InterconnectCapability struct {
	Capabilities       []string `json:"capabilities,omitempty"`       // "capabilities": ["Ethernet"],
	MaxBandwidthInGbps int      `json:"maxBandwidthInGbps,omitempty"` // "maxBandwidthInGbps": 10,
}

type InterconnectFibData added in v1.0.0

type InterconnectFibData struct {
	Count   int                        `json:"count,omitempty"`   //"count": "1",
	Members []InterconnectFibDataEntry `json:"members,omitempty"` //"members":[],
}

type InterconnectFibDataEntry added in v1.0.0

type InterconnectFibDataEntry struct {
	InterconnectName string        `json:"interconnectName,omitempty"` //"interconnectName": "SYN03_Frame2, interconnect 6",
	InterconnectURI  utils.Nstring `json:"interconnectUri,omitempty"`  //"interconnectUri": "/rest/interconnects/aca6687f-1370-46cd-b832-7e3192dbddfd",
	NetworkInterface string        `json:"networkInterface,omitempty"` //"networkInterface": "Q3",
	MacAddress       string        `json:"macAddress,omitempty"`       //"macAddress": "94:57:A5:67:2C:BE",
	EntryType        string        `json:"entryType,omitempty"`        //"entryType": "Learned",
	NetworkName      string        `json:"networkName,omitempty"`      //"networkName": "vlan504",
	NetworkUri       utils.Nstring `json:"networkUri,omitempty"`       //"networkUri": "/rest/ethernet-networks/6de2920a-8ad4-4cd8-865c-1907d3b4682e",
	ExternalVlan     string        `json:"externalVlan,omitempty"`     //"externalVlan": "504",
	InternalVlan     string        `json:"internalVlan,omitempty"`     //"internalVlan": "504"
}

type InterconnectList added in v1.0.0

type InterconnectList struct {
	Total       int            `json:"total,omitempty"`       // "total": 1,
	Count       int            `json:"count,omitempty"`       // "count": 1,
	Start       int            `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring  `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring  `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring  `json:"uri,omitempty"`         // "uri": "/rest/interconnects?start=2&count=2",
	Members     []Interconnect `json:"members,omitempty"`     // "members":[]
}

type InterconnectLocation added in v1.0.0

type InterconnectLocation struct {
	LocationEntries []InterconnectLocationEntry `json:"locationEntries,omitempty"` // "locationEntries": []
}

type InterconnectLocationEntry added in v1.0.0

type InterconnectLocationEntry struct {
	Type  string `json:"type"`  // "type": null
	Value string `json:"value"` // "value": null
}

type InterconnectMap added in v1.0.0

type InterconnectMap struct {
	InterconnectMapEntries []InterconnectMapEntries `json:"interconnectMapEntries"` //"interconnectMapEntries": [{...}],
}

type InterconnectMapEntries added in v1.0.0

type InterconnectMapEntries struct {
	LogicalLocation              LogicalLocation `json:"logicalLocation,omitempty"`              //"logicalLocation":{...},
	LogicalDownlinkUri           utils.Nstring   `json:"logicalDownlinkUri,omitempty"`           //"logicalDownlinkUri": "/rest/logical-downlinks/126ee6e0-db82-4fac-a4ce-c8ee423b77dc",
	PermittedInterconnectTypeUri utils.Nstring   `json:"permittedInterconnectTypeUri,omitempty"` //"permittedInterconnectTypeUri": "/rest/interconnect-types/59080afb-85b5-43ae-8c69-27c08cb91f3a",
	InterconnectUri              utils.Nstring   `json:"interconnectUri,omitempty"`              //"interconnectUri": "/rest/interconnects/aca6687f-1370-46cd-b832-7e3192dbddfd",
	EnclosureIndex               int             `json:"enclosureIndex,omitempty"`               //"enclosureIndex": 2
}

type InterconnectMapEntryTemplate

type InterconnectMapEntryTemplate struct {
	EnclosureIndex               int             `json:"enclosureIndex,omitempty"`               // "enclosureIndex": 1,
	LogicalDownlinkUri           utils.Nstring   `json:"logicalDownlinkUri,omitempty"`           // "logicalDownlinkUri": "/rest/logical-downlinks/5b33fec1-63e8-40e1-9e3d-3af928917b2f",
	LogicalLocation              LogicalLocation `json:"logicalLocation,omitempty"`              // "logicalLocation": {...},
	PermittedInterconnectTypeUri utils.Nstring   `json:"permittedInterconnectTypeUri,omitempty"` //"permittedSwitchTypeUri": "/rest/switch-types/a2bc8f42-8bb8-4560-b80f-6c3c0e0d66e0",
}

type InterconnectMapTemplate

type InterconnectMapTemplate struct {
	InterconnectMapEntryTemplates []InterconnectMapEntryTemplate `json:"interconnectMapEntryTemplates"` // "interconnectMapEntryTemplates": {...},
}

type InterconnectType

type InterconnectType struct {
	Category                 string                 `json:"category,omitempty"`                 // "category": "interconnect-types",
	Created                  string                 `json:"created,omitempty"`                  // "created": "20150831T154835.250Z",
	Description              string                 `json:"description,omitempty"`              // "description": "Interconnect Type 1",
	DownlinkCount            int                    `json:"downlinkCount,omitempty"`            // "downlinkCount": 2,
	DownlinkPortCapability   DownlinkPortCapability `json:"downlinkPortCapability,omitempty"`   // "downlinkPortCapability": {...},
	ETAG                     string                 `json:"eTag,omitempty"`                     // "eTag": "1441036118675/8",
	InterconnectCapabilities InterconnectCapability `json:"interconnectCapabilities,omitempty"` // "interconnectCapabilities": {...},
	MaximumFirmwareVersion   string                 `json:"maximumFirmwareVersion,omitempty"`   // "maximumFirmwareVersion": "3.0.0",
	MinimumFirmwareVersion   string                 `json:"minimumFirmwareVersion,omitempty"`   // "minimumFirmwareVersion": "2.0.0",
	Modified                 string                 `json:"modified,omitempty"`                 // "modified": "20150831T154835.250Z",
	Name                     utils.Nstring          `json:"name,omitempty"`                     // "name": null,
	OtherFamilyMembers       []OtherFamilyMember    `json:"otherFamilyMembers,omitempty"`       // "otherFamilyMembers":"[]",
	PartNumber               string                 `json:"partNumber,omitempty"`               // "partNumber": "572018-B21",
	PortInfos                []PortInfo             `json:"portInfos,omitempty"`                // "portInfos": {...},
	State                    string                 `json:"state,omitempty"`                    // "state": "Normal",
	Status                   string                 `json:"status,omitempty"`                   // "status": "Critical",
	TaaCompliant             bool                   `json:"taaCompliant"`                       // "taaCompliant": true,
	Type                     string                 `json:"type,omitempty"`                     // "type": "interconnect-typeV3",
	UnsupportedCapabilities  []string               `json:"unsupportedCapabilities,omitempty"`  // "unsupportedCapabilities": [],
	URI                      utils.Nstring          `json:"uri,omitempty"`                      // "uri": "/rest/interconnect-types/9d31081c-e010-4005-bf0b-e64b0ca04af5"
}

type InterconnectTypeList

type InterconnectTypeList struct {
	Total       int                `json:"total,omitempty"`       // "total": 1,
	Count       int                `json:"count,omitempty"`       // "count": 1,
	Start       int                `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring      `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring      `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring      `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []InterconnectType `json:"members,omitempty"`     // "members":[]
}

type InternalVlanAssociation added in v1.0.0

type InternalVlanAssociation struct {
	Type                   string `json:"type"`                             //"type": "internal-vlan-association",
	URI                    string `json:"uri,omitempty"`                    //"uri": null,
	Category               string `json:"category,omitempty"`               //"category": null,
	ETAG                   string `json:"eTag,omitempty"`                   //"eTag": null,
	Created                string `json:"created,omitempty"`                //"created": "2018-11-26T09:16:20.707Z",
	Modified               string `json:"modified,omitempty"`               //"modified": "2018-11-26T09:16:20.725Z",
	InternalVlanId         int    `json:"internalVlanId,omitempty"`         // "internalVlanId": -1,
	GeneralNetworkUri      string `json:"generalNetworkUri,omitempty"`      //"generalNetworkUri": "/rest/ethernet-networks/cbde97d0-c8f1-4aba-aa86-2b4e5d080401",
	LogicalInterconnectUri string `json:"logicalInterconnectUri,omitempty"` //"logicalInterconnectUri": "/rest/logical-interconnects/d4468f89-4442-4324-9c01-624c7382db2d",
	Description            string `json:"description,omitempty"`            // "description": null,
	State                  string `json:"state,omitempty"`                  // "state": null,
	Status                 string `json:"status,omitempty"`                 // "status": null,
	Name                   string `json:"name,omitempty"`                   // "name": null
}

type InternalVlanAssociationCollection added in v1.0.0

type InternalVlanAssociationCollection struct {
	Type        string                    `json:"type"`                  //"type": "InternalVlanAssociationCollection",
	URI         string                    `json:"uri,omitempty"`         //"uri": null,
	Category    string                    `json:"category,omitempty"`    //"category": "logical-interconnects",
	ETAG        string                    `json:"eTag,omitempty"`        // "eTag": null,
	Created     string                    `json:"created,omitempty"`     // "created": null,
	Modified    string                    `json:"modified,omitempty"`    // "modified": null,
	Start       int                       `json:"start,omitempty"`       // "start": 0,
	Count       int                       `json:"count,omitempty"`       //"count": 7,
	Total       int                       `json:"total,omitempty"`       //"total": 7,
	PrevPageUri string                    `json:"prevPageUri,omitempty"` //"prevPageUri": null,
	NextPageUri string                    `json:"nextPageUri,omitempty"` //"nextPageUri": null,
	Members     []InternalVlanAssociation `json:"members,omitempty"`     //"members":[],
}

type IpAddressList added in v1.0.0

type IpAddressList struct {
	IpAddress     string `json:"ipAddress,omitempty"`     // "ipAddress": "10.50.4.125",
	IpAddressType string `json:"ipAddressType,omitempty"` // "ipAddressType": "Ipv4Static"
}

type Ipv4Ranges added in v1.0.0

type Ipv4Ranges struct {
	DnsServers []string      `json:"dnsServers,omitempty"` //"dnsServers":"",
	Domain     string        `json:"domain,omitempty"`     //"domain":"",
	Gateway    string        `json:"gateway,omitempty"`    //"gateway":"",
	IpRangeUri utils.Nstring `json:"ipRangeUri,omitempty"` //"ipRangeUri":"",
	Name       string        `json:"name,omitempty"`       //"name":"",
	SubnetMask string        `json:"subnetMask,omitempty"` //"subnetMask":""
}

type Ipv4Setting added in v1.0.0

type Ipv4Setting struct {
	IpAddress         string `json:"ipAddress,omitempty"`         // "ipAddress": "",
	IpAssignmentState string `json:"ipAssignmentState,omitempty"` // "ipAssignmentState": "",
	IpRangeUri        string `json:"ipRangeUri,omitempty"`        // "ipRangeUri": "",
	Mode              string `json:"mode,omitempty"`              // "mode": "",
}

type Ipv6Addresses added in v1.0.0

type Ipv6Addresses struct {
	Address string `json:"address,omitempty"` // "address": "",
	Type    string `json:"type,omitempty"`    // "type": "NotSet"
}

type LSDomainPerSwitch

type LSDomainPerSwitch struct {
	FirmwareVersion string `json:"firmwareVersion"` //"firmwareVersion": "unknown",
	IPAddress       string `json:"ipAddress"`       //"ipAddress": "172.18.1.11",
}

type LeOsDeploymentSettings added in v1.0.0

type LeOsDeploymentSettings struct {
	DeploymentModeSettings *DeploymentModeSettings `json:"deploymentModeSettings,omitempty"`
	ManageOSDeployment     bool                    `json:"manageOSDeployment,omitempty"`
}

type License added in v1.0.0

type License struct {
	LicenseType   string `json:"licenseType,omitempty"`   //"licenseType": "Synergy 8Gb FC Upgrade",
	State         string `json:"state,omitempty"`         //"state": "Yes",
	ConsumedCount int    `json:"consumedCount,omitempty"` //"consumedCount": 2,
	RequiredCount int    `json:"requiredCount,omitempty"` //"requiredCount": 0
}

type LicenseIntents added in v1.0.0

type LicenseIntents struct {
	FCUpgrade string `json:"FCUpgrade,omitempty"` //"FCUpgrade":"Automatic",
}

type LinkedEnclosure added in v1.0.0

type LinkedEnclosure struct {
	BayNumber    int    `json:"bayNumber,omitempty"`    // "bayNumber": 1,
	SerialNumber string `json:"serialNumber,omitempty"` // "serialNumber": "CN7613V053",
}

type LocalStorageEmbeddedController

type LocalStorageEmbeddedController struct {
	LocalStorageEmbeddedControllerV4
	ImportConfiguration bool             `json:"importConfiguration,omitempty"` // importConfiguration Determines if the logical drives in the current configuration should be imported. Boolean
	Initialize          bool             `json:"initialize,omitempty"`          // initialize Determines if the controller should be initialized before configuration. Boolean
	LogicalDrives       []LogicalDriveV3 `json:"logicalDrives,omitempty"`       // LogicalDriveV3 The list of logical drives associated with the controller.
	Managed             bool             `json:"managed,omitempty"`             // managed Determines if the specific controller is managed by OneView. Boolean
	Mode                string           `json:"mode,omitempty"`                // mode Determines the mode of operation of the controller. The controller mode can be changed between RAID and HBA mode when supported by the selected server hardware type. string
	SlotNumber          string           `json:"slotNumber,omitempty"`          // slotNumber The PCI slot number used by the controller. This value will always be set to "0", as only the embedded controller is supported in the current version. string
}

LocalStorageEmbeddedController -

type LocalStorageEmbeddedControllerV4 added in v0.8.2

type LocalStorageEmbeddedControllerV4 struct {
	DeviceSlot string `json:"deviceSlot,omitempty"` // "deviceSlot": "Mezz 1",
}

type LocalStorageOptions

type LocalStorageOptions struct {
	LocalStorageSettingsV3
	ManageLocalStorage bool           `json:"manageLocalStorage,omitempty"` // "manageLocalStorage": true,
	LogicalDrives      []LogicalDrive `json:"logicalDrives,omitempty"`      // "logicalDrives": [],
	Initialize         bool           `json:"initialize,omitempty"`         // 				"initialize": true
}

LocalStorageOptions -

func (LocalStorageOptions) Clone

Clone local storage

type LocalStorageSettingsV3

type LocalStorageSettingsV3 struct {
	LocalStorageSettingsV4
	Controllers []LocalStorageEmbeddedController `json:"controllers,omitempty"` //  The list of embedded local storage controllers.
}

LocalStorageSettingsV3 -

type LocalStorageSettingsV4 added in v0.8.2

type LocalStorageSettingsV4 struct {
	SasLogicalJBODs []LogicalJbod `json:"sasLogicalJBODs,omitempty"` // "sasLogicalJBODs": [],
}

type Location added in v1.0.0

type Location struct {
	LocationEntries []LocationEntries `json:"locationEntries,omitempty"` //"locationEntries":{...},
}

type LocationEntries added in v1.0.0

type LocationEntries struct {
	Value string `json:"value,omitempty"` //"value":"2"
	Type  string `json:"type,omitempty"`  //"type":"StackingMemberId",

}

type LocationEntry

type LocationEntry struct {
	RelativeValue int    `json:"relativeValue,omitempty"` //"relativeValue": 2,
	Type          string `json:"type,omitempty"`          //"type": "StackingMemberId",
}

type LogicalDrive

type LogicalDrive struct {
	Bootable  bool   `json:"bootable"`            // "bootable": true,
	RaidLevel string `json:"raidLevel,omitempty"` // "raidLevel": "RAID1"
}

LogicalDrive logical drive options

type LogicalDriveV3

type LogicalDriveV3 struct {
	LogicalDriveV4
	Bootable          bool   `json:"bootable,omitempty"`          // bootable Indicates if the logical drive is bootable or not. Boolean
	DriveName         string `json:"driveName,omitempty"`         // driveName The name of the logical drive. string
	DriveNumber       int    `json:"driveNumber,omitempty"`       // driveNumber The number assigned to the logical drive by HP SSA. This value is read-only and gets automatically populated once the logical drive is created. integer read only
	DriveTechnology   string `json:"driveTechnology,omitempty"`   // driveTechnology Defines the interface type for drives that will be used to build the logical drive. Supported values depend on the local storage capabilities of the selected server hardware type. string
	NumPhysicalDrives int    `json:"numPhysicalDrives,omitempty"` // numPhysicalDrives The number of physical drives to be used to build the logical drive. The provided values must be consistent with the selected RAID level and cannot exceed the maximum supported number of drives for the selected server hardware type. integer
	RaidLevel         string `json:"raidLevel,omitempty"`         // raidLevel The RAID level of the logical drive. Supported values depend on the local storage capabilities of the selected server hardware type. string
}

LogicalDriveV3 -

type LogicalDriveV4 added in v0.8.2

type LogicalDriveV4 struct {
	Name             string `json:"name,omitempty"`             // "name": "logical drive name",
	SasLogicalJBODId int    `json:"sasLogicalJBODId,omitempty"` // "sasLogicalJBODId": 1,
}

type LogicalEnclosure added in v1.0.0

type LogicalEnclosure struct {
	AmbientTemperatureMode    string                     `json:"ambientTemperatureMode,omitempty"`    // "ambientTemperatureMode": "Standard",
	Category                  string                     `json:"category,omitempty"`                  // "category": "logical-enclosures",
	Created                   string                     `json:"created,omitempty"`                   // "created": "20150831T154835.250Z",
	DeleteFailed              bool                       `json:"deleteFailed,omitempty"`              // "deleteFailed": true,
	DeploymentManagerSettings *DeploymentManagerSettings `json:"deploymentManagerSettings,omitempty"` // "deploymentManagerSettings": "",
	Description               utils.Nstring              `json:"description,omitempty"`               // "description": "Logical Enclosure 1",
	Etag                      string                     `json:"eTag,omitempty"`                      // "eTag": "1441036118675/8",
	EnclosureGroupUri         utils.Nstring              `json:"enclosureGroupUri,omitempty"`         // "enclosureGroupUri": "/rest/enclosure-groups/9b8f7ec0-52b3-475e-84f4-c4eac51c2c20",
	EnclosureUris             []utils.Nstring            `json:"enclosureUris,omitempty"`             // "enclosureUris":""
	Enclosures                map[string]Enclosures      `json:"enclosures,omitempty"`                // "enclosures":"[]",
	Firmware                  *LogicalEnclosureFirmware  `json:"firmware,omitempty"`                  // "firmware":"",
	IpAddressingMode          string                     `json:"ipAddressingMode,omitempty"`          // "ipAddressingMode":"DHCP",
	Ipv4Ranges                []Ipv4Ranges               `json:"ipv4Ranges,omitempty"`                //"ipv4Ranges":"[]"
	LogicalInterconnectUris   []utils.Nstring            `json:"logicalInterconnectUris,omitempty"`   //"logicalInterconnectUris":"[]",
	Modified                  string                     `json:"modified,omitempty"`                  // "modified": "20150831T154835.25Z",
	Name                      string                     `json:"name,omitempty"`                      // "name": "Ethernet Network 1",
	PowerMode                 string                     `json:"powerMode,omitempty"`                 // "powerMode": "RedundantPowerFeed",
	ScalingState              string                     `json:"scalingState,omitempty"`              // "scalingState": "Growing",
	ScopesUri                 utils.Nstring              `json:"scopesUri,omitempty"`                 // "scopesUri":
	State                     string                     `json:"state,omitempty"`                     // "state": "Creating",
	Status                    string                     `json:"status,omitempty"`                    // "status": "Critical",
	Type                      string                     `json:"type,omitempty"`                      // "type": "LogicalEnclosureV4",
	URI                       utils.Nstring              `json:"uri,omitempty"`                       // "uri": "/rest/logical-enclosures/e2f0031b-52bd-4223-9ac1-d91cb519d548"

}

type LogicalEnclosureFirmware added in v1.0.0

type LogicalEnclosureFirmware struct {
	FirmwareBaselineUri                       utils.Nstring `json:"firmwareBaselineUri,omitempty"`                       //"firmwareBaselineUri":"",
	FirmwareUpdateOn                          string        `json:"firmwareUpdateOn,omitempty"`                          //"firmwareUpdateOn":"EnclosureOnly",
	ForceInstallFirmware                      bool          `json:"forceInstallFirmware,omitempty"`                      //"forceInstallFirmware":true,
	LogicalInterconnectUpdateMode             string        `json:"logicalInterconnectUpdateMode,omitempty"`             //"logicalInterconnectUpdateMode":"Parallel",
	UpdateFirmwareOnUnmanagedInterconnect     bool          `json:"updateFirmwareOnUnmanagedInterconnect,omitempty"`     //"updateFirmwareOnUnmanagedInterconnect":true,
	ValidateIfLIFirmwareUpdateIsNonDisruptive bool          `json:"validateIfLIFirmwareUpdateIsNonDisruptive,omitempty"` //"validateIfLIFirmwareUpdateIsNonDisruptive":false,
}

type LogicalEnclosureList added in v1.0.0

type LogicalEnclosureList struct {
	Total       int                `json:"total,omitempty"`       // "total": 1,
	Count       int                `json:"count,omitempty"`       // "count": 1,
	Start       int                `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring      `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring      `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring      `json:"uri,omitempty"`         // "uri": "/rest/ethernet-networks?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []LogicalEnclosure `json:"members,omitempty"`     // "members":[]
}

type LogicalInterconnect added in v1.0.0

type LogicalInterconnect struct {
	Type                                 string                  `json:"type,omitempty"`                                 //"type": "logical-interconnect",
	URI                                  utils.Nstring           `json:"uri,omitempty"`                                  //"uri": "/rest/logical-interconnects/d4468f89-4442-4324-9c01-624c7382db2d",
	Category                             string                  `json:"category,omitempty"`                             //"category": "logical-interconnects",
	Interconnects                        []utils.Nstring         `json:"interconnects,omitempty"`                        //"interconnects": ["/rest/interconnects/b6b7325f-666f-474f-a8f7-2c32b3c9faab"],
	ConsistencyStatus                    string                  `json:"consistencyStatus,omitempty"`                    //"consistencyStatus": "NOT_CONSISTENT",
	ConsistencyStatusVerificationEnabled bool                    `json:"consistencyStatusVerificationEnabled,omitempty"` //"consistencyStatusVerificationEnabled": true,
	Created                              string                  `json:"created,omitempty"`                              //"created": "2018-08-07T22:48:07.640Z",
	Modified                             string                  `json:"modified,omitempty"`                             //"modified": "2018-12-14T06:36:09.956Z",
	Description                          utils.Nstring           `json:"description,omitempty"`                          //"description": null,
	DomainUri                            utils.Nstring           `json:"domainUri"`                                      //"domainUri": "/rest/domains/7b655ba0-11c1-4e9c-a191-672e1d0bbd8e",
	ETAG                                 string                  `json:"eTag,omitempty"`                                 //"eTag": "bedd16b1-1d27-4ecd-b483-407635de7431",
	EnclosureType                        string                  `json:"enclosureType,omitempty"`                        //"enclosureType": "SY12000",
	InternalNetworkUris                  []utils.Nstring         `json:"internalNetworkUris,omitempty"`                  //"internalNetworkUris": ["/rest/ethernet-networks/cbde97d0-c8f1-4aba-aa86-2b4e5d080401"],
	FabricUri                            utils.Nstring           `json:"fabricUri,omitempty"`                            //"fabricUri": "/rest/fabrics/c2fc09bc-323f-40b4-8a7e-d99ca28df969",
	QosConfiguration                     *QosConfiguration       `json:"qosConfiguration,omitempty"`                     // "qosConfiguration": {},
	IcmLicenses                          *IcmLicenses            `json:"icmLicenses,omitempty"`                          //"icmLicenses":{...},
	EnclosureUris                        []utils.Nstring         `json:"enclosureUris,omitempty"`                        //"enclosureUris": ["/rest/enclosures/013645CN759000AC"],
	FusionDomainUri                      utils.Nstring           `json:"fusionDomainUri,omitempty"`                      //"fusionDomainUri": "/rest/domains/7b655ba0-11c1-4e9c-a191-672e1d0bbd8e",
	EthernetSettings                     *EthernetSettings       `json:"ethernetSettings,omitempty"`                     //"ethernetSettings": {...},
	LogicalInterconnectGroupUri          utils.Nstring           `json:"logicalInterconnectGroupUri,omitempty"`          //"logicalInterconnectGroupUri": "/rest/logical-interconnect-groups/3de143b3-bf77-4944-aa31-18084676b664",
	StackingHealth                       string                  `json:"stackingHealth,omitempty"`                       //"stackingHealth": "BiConnected",
	InitialScopeUris                     []string                `json:"initialScopeUris,omitempty"`                     //"InitialScopeUris": [],
	InterconnectMap                      *InterconnectMap        `json:"interconnectMap,omitempty"`                      //"interconnectMap": {...},
	PortMonitor                          *PortMonitor            `json:"portMonitor,omitempty"`                          //"portMonitor": {...},
	SnmpConfiguration                    *SnmpConfiguration      `json:"snmpConfiguration,omitempty"`                    // "snmpConfiguration": {...},
	TelemetryConfiguration               *TelemetryConfiguration `json:"telemetryConfiguration,omitempty"`               // "telemetryConfiguration": {...},
	ScopeUri                             string                  `json:"ScopeUri,omitempty"`                             //"ScopeUri": null,
	SecurityStandardMode                 string                  `json:"securityStandardMode,omitempty"`                 //"securityStandardMode": null,
	State                                string                  `json:"state,omitempty"`                                // "state": "Normal",
	Status                               string                  `json:"status,omitempty"`                               // "status": "Critical",
	Name                                 string                  `json:"name"`                                           // "name": "Logical Interconnect1",

}

type LogicalInterconnectCompliance added in v1.0.0

type LogicalInterconnectCompliance struct {
	Type                    string          `json:"type"`                              //"type":"li-compliance",
	URI                     utils.Nstring   `json:"uri,omitempty"`                     //"uri": "/rest/logical-interconnects/d4468f89-4442-4324-9c01-624c7382db2d",
	Category                string          `json:"category,omitempty"`                //"category": "logical-interconnects",
	Created                 string          `json:"created,omitempty"`                 //"created": "2018-08-07T22:48:07.640Z",
	Modified                string          `json:"modified,omitempty"`                //"modified": "2018-12-14T06:36:09.956Z",
	Description             utils.Nstring   `json:"description,omitempty"`             //"description": null,
	EnclosureGroupUri       utils.Nstring   `json:"enclosureGroupUri,omitempty"`       //"enclosureGroupUri": "/rest/domains/7b655ba0-11c1-4e9c-a191-672e1d0bbd8e",
	EnclosureUris           []utils.Nstring `json:"enclosureUris,omitempty"`           //"enclosureUris": ["/rest/enclosures/013645CN759000AC"],
	ETAG                    string          `json:"eTag,omitempty"`                    //"eTag": "bedd16b1-1d27-4ecd-b483-407635de7431",
	LogicalInterconnectUris []utils.Nstring `json:"logicalInterconnectUris,omitempty"` //"logicalInterconnectUris":["/rest/logical-interconnects/d4468f89-4442-4324-9c01-624c7382db2d"]
	State                   string          `json:"state,omitempty"`                   // "state": null,
	Status                  string          `json:"status,omitempty"`                  // "status": null,
	Name                    string          `json:"name,omitempty"`                    // "name": null

}

type LogicalInterconnectGroup

type LogicalInterconnectGroup struct {
	Category                string                   `json:"category,omitempty"`               // "category": "logical-interconnect-groups",
	Created                 string                   `json:"created,omitempty"`                // "created": "20150831T154835.250Z",
	Description             utils.Nstring            `json:"description,omitempty"`            // "description": "Logical Interconnect Group 1",
	ETAG                    string                   `json:"eTag,omitempty"`                   // "eTag": "1441036118675/8",
	EnclosureIndexes        []int                    `json:"enclosureIndexes,omitempty"`       // "enclosureIndexes": [1],
	EnclosureType           string                   `json:"enclosureType,omitempty"`          // "enclosureType": "C7000",
	EthernetSettings        *EthernetSettings        `json:"ethernetSettings,omitempty"`       // "ethernetSettings": {...},
	FabricUri               utils.Nstring            `json:"fabricUri,omitempty"`              // "fabricUri": "/rest/fabrics/9b8f7ec0-52b3-475e-84f4-c4eac51c2c20",
	InterconnectBaySet      int                      `json:"interconnectBaySet,omitempty"`     // "interconnectBaySet": 1,
	InterconnectMapTemplate *InterconnectMapTemplate `json:"interconnectMapTemplate"`          // "interconnectMapTemplate": {...},
	InternalNetworkUris     []utils.Nstring          `json:"internalNetworkUris,omitempty"`    // "internalNetworkUris": []
	Modified                string                   `json:"modified,omitempty"`               // "modified": "20150831T154835.250Z",
	Name                    string                   `json:"name"`                             // "name": "Logical Interconnect Group1",
	QosConfiguration        *QosConfiguration        `json:"qosConfiguration,omitempty"`       // "qosConfiguration": {},
	RedundancyType          string                   `json:"redundancyType,omitempty"`         // "redundancyType": "HighlyAvailable"
	ScopeUri                string                   `json:"scopeUri,omitempty"`               // "scopeUri":""
	NextPageUri             string                   `json:"NextPageUri,omitempty"`            // "NextPageUri":""
	PrevPageUri             string                   `json:"prevPageUri,omitempty"`            // "PrevPageUri":""
	Start                   int                      `json:"start,omitempty"`                  // "start":""
	Total                   int                      `json:"total,omitempty"`                  // "total":""
	SnmpConfiguration       *SnmpConfiguration       `json:"snmpConfiguration,omitempty"`      // "snmpConfiguration": {...}
	StackingHealth          string                   `json:"stackingHealth,omitempty"`         //"stackingHealth": "Connected",
	StackingMode            string                   `json:"stackingMode,omitempty"`           //"stackingMode": "Enclosure",
	State                   string                   `json:"state,omitempty"`                  // "state": "Normal",
	Status                  string                   `json:"status,omitempty"`                 // "status": "Critical",
	TelemetryConfiguration  *TelemetryConfiguration  `json:"telemetryConfiguration,omitempty"` // "telemetryConfiguration": {...},
	Type                    string                   `json:"type"`                             // "type": "logical-interconnect-groupsV3",
	UplinkSets              []UplinkSets             `json:"uplinkSets,omitempty"`             // "uplinkSets": {...},
	URI                     utils.Nstring            `json:"uri,omitempty"`                    // "uri": "/rest/logical-interconnect-groups/e2f0031b-52bd-4223-9ac1-d91cb519d548",
}

type LogicalInterconnectGroupDefaultSettings added in v1.0.0

type LogicalInterconnectGroupDefaultSettings struct {
	Type             string            `json:"type"`                       // "type": "InterconnectSettingsV4",
	URI              utils.Nstring     `json:"uri,omitempty"`              // "uri": null,
	Category         string            `json:"category,omitempty"`         // "category": null
	ETAG             string            `json:"eTag,omitempty"`             //"eTag": null,
	Created          string            `json:"created,omitempty"`          //"created": null,
	Modified         string            `json:"modified,omitempty"`         //"modified": null,
	EthernetSettings *EthernetSettings `json:"ethernetSettings,omitempty"` // "ethernetSettings": {...},
	FcoeSettings     string            `json:"fcoeSettings,omitempty"`     // "fcoeSettings": null,
	Description      string            `json:"description,omitempty"`      // "description": null,
	State            string            `json:"state,omitempty"`            //  "state": null,
	Status           string            `json:"status,omitempty"`           // "status": null,
	Name             string            `json:"name,omitempty"`             // "name": null
}

type LogicalInterconnectGroupList

type LogicalInterconnectGroupList struct {
	Total       int                        `json:"total,omitempty"`       // "total": 1,
	Count       int                        `json:"count,omitempty"`       // "count": 1,
	Start       int                        `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring              `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring              `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring              `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []LogicalInterconnectGroup `json:"members,omitempty"`     // "members":[]
}

type LogicalInterconnectList added in v1.0.0

type LogicalInterconnectList struct {
	Type        string                `json:"type,omitempty"`        //"type": "LogicalInterconnectCollectionV5",
	Category    string                `json:"category,omitempty"`    //"category": "logical-interconnects",
	ETAG        string                `json:"eTag,omitempty"`        //"eTag": null,
	Created     string                `json:"created,omitempty"`     //"created": null,
	Modified    string                `json:"modified,omitempty"`    //"modified": null,
	Total       int                   `json:"total,omitempty"`       // "total": 1,
	Count       int                   `json:"count,omitempty"`       // "count": 1,
	Start       int                   `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring         `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring         `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring         `json:"uri,omitempty"`         // "uri": "/rest/logical-interconnects?start=0&count=1",
	Members     []LogicalInterconnect `json:"members,omitempty"`     // "members":[]
}

type LogicalJbod added in v0.8.2

type LogicalJbod struct {
	DeviceSlot        string        `json:"deviceSlot,omitempty"`        // "deviceSlot": "Mezz 1",
	DriveMaxSizeGB    int           `json:"driveMaxSizeGB,omitempty"`    // "driveMaxSizeGB": 100,
	DriveMinSizeGB    int           `json:"driveMinSizeGB,omitempty"`    // "driveMinSizeGB": 10,
	DriveTechnology   string        `json:"driveTechnology,omitempty"`   // "driveTechnology": "SasHdd",
	ID                int           `json:"id,omitempty"`                // "id": 1,
	Name              string        `json:"name,omitempty"`              // "name": "logical jbod 1",
	NumPhysicalDrives int           `json:"numPhysicalDrives,omitempty"` // "numPhyricalDrives": 1,
	SasLogicalJBODUri utils.Nstring `json:"sasLogicalJBODUri,omitempty"` // "sasLogicalJBODUri": nil
	Status            string        `json:"status,omitempty"`            // "status": "OK",
}

type LogicalLocation

type LogicalLocation struct {
	LocationEntries []LocationEntry `json:"locationEntries,omitempty"` // "locationEntries": {...}
}

type LogicalPortConfigInfo

type LogicalPortConfigInfo struct {
	DesiredSpeed    string          `json:"desiredSpeed,omitempty"`    // "desiredSpeed": "Auto",
	LogicalLocation LogicalLocation `json:"logicalLocation,omitempty"` // "logicalLocation": {...},
}

type LogicalSwitch

type LogicalSwitch struct {
	Category                string                  `json:"category,omitempty"`          // "category": "logcial-switch-groups",
	ConstitencyStatus       string                  `json:"constitencyStatus,omitempty"` //"consitencyStatue": "CONSISTENT",
	Created                 string                  `json:"created,omitempty"`           // "created": "20150831T154835.250Z",
	Description             utils.Nstring           `json:"description,omitempty"`       // "description": "Logical Switch 1",
	ETAG                    string                  `json:"eTag,omitempty"`              // "eTag": "1441036118675/8",
	FabricUri               utils.Nstring           `json:"fabricUri,omitempty"`         // "fabricUri": "/rest/fabrics/9b8f7ec0-52b3-475e-84f4-c4eac51c2c20",
	LogicalSwitchDomainInfo LogicalSwitchDomainInfo `json:"logicalSwitchDomainInfo"`
	Modified                string                  `json:"modified,omitempty"` // "modified": "20150831T154835.250Z",
	Name                    string                  `json:"name,omitempty"`     // "name": "Logical Switch Group1",
	State                   string                  `json:"state,omitempty"`    // "state": "Normal",
	Status                  string                  `json:"status,omitempty"`   // "status": "Critical",
	Type                    string                  `json:"type,omitempty"`     // "type": "logical-switch-groups",
	URI                     utils.Nstring           `json:"uri,omitempty"`      // "uri": "/rest/logical-switch-groups/e2f0031b-52bd-4223-9ac1-d91cb519d548",
	SwitchMapTemplate       SwitchMapTemplate       `json:"switchMapTemplate"`
}

type LogicalSwitchDomainInfo

type LogicalSwitchDomainInfo struct {
	DomainId         string              `json:"domainId"`         //"domainId": "NA",
	MasterMacAddress string              `json:"masterMacAddress"` //"masterMacAddress": "NA",
	PerSwitchDomain  []LSDomainPerSwitch `json:"perSwitchDomain"`
}

type LogicalSwitchGroup

type LogicalSwitchGroup struct {
	Category          string            `json:"category,omitempty"`    // "category": "logical-switch-groups",
	Created           string            `json:"created,omitempty"`     // "created": "20150831T154835.250Z",
	Description       utils.Nstring     `json:"description,omitempty"` // "description": "Logical Switch 1",
	ETAG              string            `json:"eTag,omitempty"`        // "eTag": "1441036118675/8",
	FabricUri         utils.Nstring     `json:"fabricUri,omitempty"`   // "fabricUri": "/rest/fabrics/9b8f7ec0-52b3-475e-84f4-c4eac51c2c20",
	Modified          string            `json:"modified,omitempty"`    // "modified": "20150831T154835.250Z",
	Name              string            `json:"name,omitempty"`        // "name": "Logical Switch Group1",
	State             string            `json:"state,omitempty"`       // "state": "Normal",
	Status            string            `json:"status,omitempty"`      // "status": "Critical",
	Type              string            `json:"type,omitempty"`        // "type": "logical-switch-groups",
	URI               utils.Nstring     `json:"uri,omitempty"`         // "uri": "/rest/logical-switch-groups/e2f0031b-52bd-4223-9ac1-d91cb519d548",
	SwitchMapTemplate SwitchMapTemplate `json:"switchMapTemplate"`
}

TODO change this struct to hold the variables from the GET API response body variables

type LogicalSwitchGroupList

type LogicalSwitchGroupList struct {
	Total       int                  `json:"total,omitempty"`       // "total": 1,
	Count       int                  `json:"count,omitempty"`       // "count": 1,
	Start       int                  `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring        `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring        `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring        `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []LogicalSwitchGroup `json:"members,omitempty"`     // "members":[]
}

type ManagedPools added in v1.0.0

type ManagedPools struct {
	Name          string `json:"name,omitempty"`
	Domain        string `json:"domain,omitempty"`
	DeviceType    string `json:"deviceType,omitempty"`
	FreeCapacity  string `json:"freeCapacity,omitempty"`
	RaidLevel     string `json:"raidLevel,omitempty"`
	Totalcapacity string `json:"totalCapacity,omitempty"`
}

type ManagerBay added in v1.0.0

type ManagerBay struct {
	BayNumber                  int              `json:"bayNumber,omitempty"`                  // "bayNumber": 1,
	BayPowerState              string           `json:"bayPowerState,omitempty"`              // "bayPowerState": "Unknown",
	ChangeState                string           `json:"changeState,omitempty"`                // "changeState": "None",
	ContainedRisResources      []utils.Nstring  `json:"containedRisResources,omitempty"`      // "containedRisResources": ["/rest/v1/EnclosureManager/1",],
	DevicePresence             string           `json:"devicePresence,omitempty"`             // "devicePresence": "Present",
	EnclosureUri               utils.Nstring    `json:"enclosureUri,omitempty"`               // "enclosureUri": "/rest/enclosures/013645CN759000AC",
	FwBuildDate                string           `json:"fwBuildDate,omitempty"`                // "fwBuildDate": "05/23/2018,17:52:54",
	FwVersion                  string           `json:"fwVersion,omitempty"`                  // "fwVersion": "2.02.03",
	IpAddress                  string           `json:"ipAddress,omitempty"`                  // "ipAddress": "fe80::9657:a5ff:fe56:6b30",
	LinkedEnclosure            LinkedEnclosure  `json:"linkedEnclosure,omitempty"`            // "linkedEnclosure": {},
	LinkPortIsolated           bool             `json:"linkPortIsolated,omitempty"`           // "linkPortIsolated": false,
	LinkPortSpeedGbs           string           `json:"linkPortSpeedGbs,omitempty"`           // "linkPortSpeedGbs": "10",
	LinkPortState              string           `json:"linkPortState,omitempty"`              // "linkPortState": "Linked",
	LinkPortStatus             string           `json:"linkPortStatus,omitempty"`             // "linkPortStatus": "OK",
	ManagerType                string           `json:"managerType,omitempty"`                // "managerType": "EnclosureManager",
	MgmtPortLinkState          string           `json:"mgmtPortLinkState,omitempty"`          // "mgmtPortLinkState": "Linked",
	MgmtPortNeighbor           MgmtPortNeighbor `json:"mgmtPortNeighbor,omitempty"`           // "mgmtPortNeighbor": {},
	MgmtPortSpeedGbs           string           `json:"mgmtPortSpeedGbs,omitempty"`           // "mgmtPortSpeedGbs": "10",
	MgmtPortState              string           `json:"mgmtPortState,omitempty"`              // "mgmtPortState": "Standby",
	MgmtPortStatus             string           `json:"mgmtPortStatus,omitempty"`             // "mgmtPortStatus": "OK",
	Model                      string           `json:"model,omitempty"`                      // "model": "Synergy Frame Link Module",
	NegotiatedLinkPortSpeedGbs int              `json:"negotiatedLinkPortSpeedGbs,omitempty"` // "negotiatedLinkPortSpeedGbs": 10,
	NegotiatedMgmtPortSpeedGbs int              `json:"negotiatedMgmtPortSpeedGbs,omitempty"` // "negotiatedMgmtPortSpeedGbs": 10,
	PartNumber                 string           `json:"partNumber,omitempty"`                 // "partNumber": "802341-B21",
	Role                       string           `json:"role,omitempty"`                       // "role": "Standby",
	SerialNumber               string           `json:"serialNumber,omitempty"`               // "serialNumber": "CN7613V053",
	SparePartNumber            string           `json:"sparePartNumber,omitempty"`            // "sparePartNumber": "807963-001",
	Status                     string           `json:"status,omitempty"`                     // "status": "OK",
	UidState                   string           `json:"uidState,omitempty"`                   // "uidState": "Off"
}

type MgmtPortNeighbor added in v1.0.0

type MgmtPortNeighbor struct {
	Description string        `json:"description,omitempty"` // "description": "HPE Comware Platform Software",
	IpAddress   string        `json:"ipAddress,omitempty"`   // "ipAddress": null,
	MacAddress  string        `json:"macAddress,omitempty"`  // "macAddress": "5C:8A:38:4E:F2:4F",
	Port        string        `json:"port,omitempty"`        // "port": "Ten-GigabitEthernet1/1/1",
	ResourceUri utils.Nstring `json:"resourceUri,omitempty"` // "resourceUri": null
}

type MpHostInfov200

type MpHostInfov200 struct {
	MpHostName  string            `json:"mpHostName,omitempty"`    // mpHostName The host name of the Management Processor. string
	MpIPAddress []MpIPAddressv200 `json:"mpIpAddresses,omitempty"` // The list of IP addresses and corresponding type information for the Management Processor.
}

MpHostInfov200 -

type MpIPAddressv200

type MpIPAddressv200 struct {
	Address string `json:"address,omitempty"` // address An IP address for the Management Processor. string
	Type    string `json:"type,omitempty"`    // type The type of IP address. The following are useful values for the IP address type: Static - Static IP address configuration; DHCP - Dynamic host configuration protocol; SLAAC - Stateless address autoconfiguration (IPv6); LinkLocal - Link-local address (IPv6);
}

MpIPAddressv200 -

type MpIPTypev200

type MpIPTypev200 int

MpIPTypev200 Type constant

const (
	MpDHCP MpIPTypev200 = 1 + iota
	MpLinkLocal
	MpLinkLocalRequired
	MpLookup
	MpSlaaC
	MpStatic
	MpUndefined
)

const block

func (MpIPTypev200) Equal

func (o MpIPTypev200) Equal(s string) bool

Equal helper for MpIPTypev200

func (MpIPTypev200) String

func (o MpIPTypev200) String() string

String helper for MpIPTypev200

type MutualChap added in v1.0.0

type MutualChap struct {
	Name string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

type Neighbor added in v1.0.0

type Neighbor struct {
	LinkLabel                string `json:"linkLabel"`                // "linkLabel": null,
	LinkUri                  string `json:"linkUri"`                  // "linkUri": null,
	RemoteChassisId          string `json:"remoteChassisId"`          // "remoteChassisId": "5c:8a:38:4e:f2:4f",
	RemoteChassisIdType      string `json:"remoteChassisIdType"`      // "remoteChassisIdType": "macAddress",
	RemoteMgmtAddress        string `json:"remoteMgmtAddress"`        // "remoteMgmtAddress": "5c:8a:38:4e:f2:a0",
	RemoteMgmtAddressType    string `json:"remoteMgmtAddressType"`    // "remoteMgmtAddressType": "all802",
	RemotePortDescription    string `json:"remotePortDescription"`    // "remotePortDescription": "FortyGigE1/2/1 Interface",
	RemotePortId             string `json:"remotePortId"`             // "remotePortId": "FortyGigE1/2/1",
	RemotePortIdType         string `json:"remotePortIdType"`         // "remotePortIdType": "interfaceName",
	RemoteSystemCapabilities string `json:"remoteSystemCapabilities"` // "remoteSystemCapabilities": "Bridge, Router",
	RemoteSystemDescription  string `json:"remoteSystemDescription"`  // "remoteSystemDescription": "HPE Comware Platform Software, Software Version 7.1.070, Release 2612\r\nHPE FF 5930-2Slot+2QSFP+Switch\r\nCopyright (c) 2010-2018 Hewlett Packard Enterprise Development LP",
	RemoteSystemName         string `json:"remoteSystemName"`         // "remoteSystemName": "eco1FORGbE",
	RemoteType               string `json:"remoteType"`               // "remoteType": "external",
}

type NetworkSet

type NetworkSet struct {
	Category              string          `json:"category,omitempty"`              // "category": "network-sets",
	ConnectionTemplateUri utils.Nstring   `json:"connectionTemplateUri,omitempty"` // "connectionTemplateUri": "/rest/connection-templates/7769cae0-b680-435b-9b87-9b864c81657f",
	Created               string          `json:"created,omitempty"`               // "created": "20150831T154835.250Z",
	Description           utils.Nstring   `json:"description,omitempty"`           // "description": "Network Set 1",
	ETAG                  string          `json:"eTag,omitempty"`                  // "eTag": "1441036118675/8",
	Modified              string          `json:"modified,omitempty"`              // "modified": "20150831T154835.250Z",
	Name                  string          `json:"name"`                            // "name": "Network Set 1",
	NativeNetworkUri      utils.Nstring   `json:"nativeNetworkUri,omitempty"`
	NetworkUris           []utils.Nstring `json:"networkUris"`
	State                 string          `json:"state,omitempty"`  // "state": "Normal",
	Status                string          `json:"status,omitempty"` // "status": "Critical",
	Type                  string          `json:"type"`             // "type": "network-set",
	URI                   utils.Nstring   `json:"uri,omitempty"`    // "uri": "/rest/network-set/e2f0031b-52bd-4223-9ac1-d91cb519d548"
}

type NetworkSetList

type NetworkSetList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/network-sets?sort=name:asc"
	Members     []NetworkSet  `json:"members,omitempty"`     // "members":[]
}

type OAMap added in v1.0.0

type OAMap struct {
	BayNumber      int             `json:"bayNumber"`               // "bayNumber": 1,
	DhcpEnable     bool            `json:"dhcpEnable"`              // "dhcpEnable": false,
	DhcpIpv6Enable bool            `json:"dhcpIpv6Enable"`          // "dhcpIpv6Enable": false,
	FqdnHostName   string          `json:"fqdnHostName,omitempty"`  // "fqdnHostName": "e10-oa.vse.rdlabs.hpecorp.net",
	FwBuildDate    string          `json:"fwBuildDate,omitempty"`   // "fwBuildDate": "Jun 17 2016",
	FwVersion      string          `json:"fwVersion,omitempty"`     // "fwVersion": "4.60",
	IpAddress      string          `json:"ipAddress,omitempty"`     // "ipAddress": "16.124.135.110",
	Ipv6Addresses  []Ipv6Addresses `json:"ipv6Addresses,omitempty"` // "ipv6Addresses": []
	Role           string          `json:"role,omitempty"`          // "role": "Active",
	State          string          `json:"state,omitempty"`         // "state": null

}

type OSCustomAttribute added in v0.8.2

type OSCustomAttribute struct {
	Name  string `json:"name,omitempty"`  // "name": "custom attribute 1",
	Value string `json:"value,omitempty"` // "value": "custom attribute value"
}

type OSDeploymentPlan added in v0.8.2

type OSDeploymentPlan struct {
	AdditionalParameters    []CustomAttribute `json:"additionalParameters,omitempty"`    // "additionalParameters": [],
	Architecture            string            `json:"architecture,omitempty"`            // "architecture": "",
	Category                string            `json:"category,omitempty"`                // "category": "os-deployment-plans",
	Created                 string            `json:"created,omitempty"`                 // "created": "20150831T154835.250Z",
	DeploymentAppliance     string            `json:"deploymentAppliance,omitempty"`     // "deploymentAppliance": "ivp6:port",
	DeploymentApplianceIpv4 string            `json:"deploymentApplianceIpv4,omitempty"` // "deploymentApplianceIpv4": "255.255.255.0"
	DeploymentType          string            `json:"deploymentType,omitempty"`          // "deploymentType": "i3s",
	Description             utils.Nstring     `json:"description,omitempty"`             // "description": "",
	ETAG                    string            `json:"eTag,omitempty"`                    // "eTag": "1441036118675/8",
	Id                      string            `json:"id,omitempty"`                      // "id": "ca7d7f3d-668a-4f56-9f83-ab491470a50a",
	Modified                string            `json:"modified,omitempty"`                // "modified": "20150831T154835.250Z",
	Name                    string            `json:"name,omitempty"`                    // "name": "osdp 1",
	NativePlanUri           string            `json:"nativePlanUri,omitempty"`           // "nativePlanUri": "/rest/deployment-plans/611f051a-3588-4b42-bf93-9fc70e034710",
	OsType                  string            `json:"osType,omitempty"`                  // "osType": "",
	OsdpSize                string            `json:"osdpSize,omitempty"`                // "osdpSize": "10GB",
	State                   string            `json:"state,omitempty"`                   // "state": "Normal",
	Status                  string            `json:"status,omitempty"`                  // "status": "Critical",
	Type                    string            `json:"type,omitempty"`                    // "type": "Osdp",
	URI                     utils.Nstring     `json:"uri,omitempty"`                     // "uri": "/rest/os-deployment-plans/ca7d7f3d-668a-4f56-9f83-ab491470a50a"
}

type OSDeploymentPlanList added in v0.8.2

type OSDeploymentPlanList struct {
	Total       int                `json:"total,omitempty"`       // "total": 1,
	Count       int                `json:"count,omitempty"`       // "count": 1,
	Start       int                `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring      `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring      `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring      `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []OSDeploymentPlan `json:"members,omitempty"`     // "members":[]
}

type OSDeploymentSettings added in v0.8.2

type OSDeploymentSettings struct {
	OSCustomAttributes  []OSCustomAttribute `json:"osCustomAttributes,omitempty"`  // "osCustomAttributes": [],
	OSDeploymentPlanUri utils.Nstring       `json:"osDeploymentPlanUri,omitempty"` // "osDeploymentPlanUri": nil,
	OSVolumeUri         utils.Nstring       `json:"osVolumeUri,omitempty"`         // "osVolumeUri": nil,
}

type OVClient

type OVClient struct {
	rest.Client
}

OVClient - wrapper class for ov api's

func (*OVClient) CreateBulkEthernetNetwork added in v1.0.0

func (c *OVClient) CreateBulkEthernetNetwork(eNet BulkEthernetNetwork) error

func (*OVClient) CreateEnclosure added in v1.0.0

func (c *OVClient) CreateEnclosure(enclosure_create_map EnclosureCreateMap) error

func (*OVClient) CreateEnclosureGroup added in v0.8.1

func (c *OVClient) CreateEnclosureGroup(eGroup EnclosureGroup) error

func (*OVClient) CreateEthernetNetwork

func (c *OVClient) CreateEthernetNetwork(eNet EthernetNetwork) error

func (*OVClient) CreateFCNetwork added in v0.8.1

func (c *OVClient) CreateFCNetwork(fcNet FCNetwork) error

func (*OVClient) CreateFCoENetwork

func (c *OVClient) CreateFCoENetwork(fcoeNet FCoENetwork) error

func (*OVClient) CreateLogicalEnclosure added in v1.0.0

func (c *OVClient) CreateLogicalEnclosure(logEn LogicalEnclosure) error

func (*OVClient) CreateLogicalInterconnectGroup

func (c *OVClient) CreateLogicalInterconnectGroup(logicalInterconnectGroup LogicalInterconnectGroup) error

func (*OVClient) CreateLogicalSwitchGroup

func (c *OVClient) CreateLogicalSwitchGroup(logicalSwitchGroup LogicalSwitchGroup) error

func (*OVClient) CreateMachine

func (c *OVClient) CreateMachine(host_name string, server_template string) (err error)

Create machine

func (*OVClient) CreateNetworkSet

func (c *OVClient) CreateNetworkSet(netSet NetworkSet) error

func (*OVClient) CreateProfileFromTemplate

func (c *OVClient) CreateProfileFromTemplate(name string, template ServerProfile, blade ServerHardware) error

create profile from template

func (*OVClient) CreateProfileFromTemplateWithI3S added in v0.8.2

func (c *OVClient) CreateProfileFromTemplateWithI3S(name string, template ServerProfile, blade ServerHardware) error

create profile from template

func (*OVClient) CreateProfileTemplate added in v0.8.1

func (c *OVClient) CreateProfileTemplate(serverProfileTemplate ServerProfile) error

func (*OVClient) CreateScope added in v1.0.0

func (c *OVClient) CreateScope(scp Scope) error

func (*OVClient) CreateStorageSystem added in v1.0.0

func (c *OVClient) CreateStorageSystem(sSystem StorageSystemV4) error

func (*OVClient) CreateStorageVolume added in v0.8.1

func (c *OVClient) CreateStorageVolume(sVol StorageVolumeV3) error

func (*OVClient) CreateUplinkSet added in v1.0.0

func (c *OVClient) CreateUplinkSet(upSet UplinkSet) error

func (*OVClient) CustomizeServer added in v0.8.2

func (c *OVClient) CustomizeServer(cs CustomizeServer) error

CustomizeServer - Customize Server

func (*OVClient) DeleteEnclosure added in v1.0.0

func (c *OVClient) DeleteEnclosure(name string) error

func (*OVClient) DeleteEnclosureGroup added in v0.8.1

func (c *OVClient) DeleteEnclosureGroup(name string) error

func (*OVClient) DeleteEthernetNetwork

func (c *OVClient) DeleteEthernetNetwork(name string) error

func (*OVClient) DeleteFCNetwork added in v0.8.1

func (c *OVClient) DeleteFCNetwork(name string) error

func (*OVClient) DeleteFCoENetwork

func (c *OVClient) DeleteFCoENetwork(name string) error

func (*OVClient) DeleteLogicalEnclosure added in v1.0.0

func (c *OVClient) DeleteLogicalEnclosure(name string) error

func (*OVClient) DeleteLogicalInterconnectGroup

func (c *OVClient) DeleteLogicalInterconnectGroup(name string) error

func (*OVClient) DeleteLogicalSwitchGroup

func (c *OVClient) DeleteLogicalSwitchGroup(name string) error

func (*OVClient) DeleteNetworkSet

func (c *OVClient) DeleteNetworkSet(name string) error

func (*OVClient) DeleteOSBuildPlanFromServer added in v0.8.2

func (c *OVClient) DeleteOSBuildPlanFromServer(profileName string) error

func (*OVClient) DeleteProfile

func (c *OVClient) DeleteProfile(name string) error

delete a profile, assign the server and remove the profile from the system

func (*OVClient) DeleteProfileTemplate added in v0.8.1

func (c *OVClient) DeleteProfileTemplate(name string) error

func (*OVClient) DeleteScope added in v1.0.0

func (c *OVClient) DeleteScope(name string) error

func (*OVClient) DeleteStorageSystem added in v1.0.0

func (c *OVClient) DeleteStorageSystem(name string) error

func (*OVClient) DeleteStorageVolume added in v0.8.1

func (c *OVClient) DeleteStorageVolume(name string) error

func (*OVClient) DeleteUplinkSet added in v1.0.0

func (c *OVClient) DeleteUplinkSet(name string) error

func (*OVClient) GetAPIVersion

func (c *OVClient) GetAPIVersion() (APIVersion, error)

GetAPIVersion - returns the api version for OneView server returns structure APIVersion

func (*OVClient) GetAssociatedProfile added in v1.0.0

func (c *OVClient) GetAssociatedProfile(id string) ([]string, error)

func (*OVClient) GetAssociatedUplinkGroup added in v1.0.0

func (c *OVClient) GetAssociatedUplinkGroup(id string) ([]string, error)

func (*OVClient) GetAuthHeaderMap

func (c *OVClient) GetAuthHeaderMap() map[string]string

GetAuthHeaderMap Generate an auth Header map

func (*OVClient) GetAuthHeaderMapNoVer

func (c *OVClient) GetAuthHeaderMapNoVer() map[string]string

GetAuthHeaderMapNoVer generate header without version

func (*OVClient) GetAvailableHardware

func (c *OVClient) GetAvailableHardware(hardwaretype_uri utils.Nstring, servergroup_uri utils.Nstring) (hw ServerHardware, err error)

get available server blades = rest_api(:oneview, :get, "/rest/server-hardware?sort=name:asc&filter=serverHardwareTypeUri='#{server_hardware_type_uri}'&filter=serverGroupUri='#{enclosure_group_uri}'")

func (*OVClient) GetConfigurationScript added in v1.0.0

func (c *OVClient) GetConfigurationScript(uri utils.Nstring) (string, error)

func (*OVClient) GetEnclosureByName added in v1.0.0

func (c *OVClient) GetEnclosureByName(name string) (Enclosure, error)

func (*OVClient) GetEnclosureGroupByName added in v0.8.1

func (c *OVClient) GetEnclosureGroupByName(name string) (EnclosureGroup, error)

func (*OVClient) GetEnclosureGroupByUri added in v0.8.1

func (c *OVClient) GetEnclosureGroupByUri(uri utils.Nstring) (EnclosureGroup, error)

func (*OVClient) GetEnclosureGroups added in v0.8.1

func (c *OVClient) GetEnclosureGroups(start string, count string, filter string, sort string, scopeUris string) (EnclosureGroupList, error)

func (*OVClient) GetEnclosurebyUri added in v1.0.0

func (c *OVClient) GetEnclosurebyUri(uri utils.Nstring) (Enclosure, error)

func (*OVClient) GetEnclosures added in v1.0.0

func (c *OVClient) GetEnclosures(start string, count string, filter string, sort string, scopeUris string) (EnclosureList, error)

func (*OVClient) GetEthernetNetworkByName

func (c *OVClient) GetEthernetNetworkByName(name string) (EthernetNetwork, error)

func (*OVClient) GetEthernetNetworks

func (c *OVClient) GetEthernetNetworks(start string, count string, filter string, sort string) (EthernetNetworkList, error)

func (*OVClient) GetFCNetworkByName added in v0.8.1

func (c *OVClient) GetFCNetworkByName(name string) (FCNetwork, error)

func (*OVClient) GetFCNetworks added in v0.8.1

func (c *OVClient) GetFCNetworks(filter string, sort string, start string, count string) (FCNetworkList, error)

func (*OVClient) GetFCoENetworkByName

func (c *OVClient) GetFCoENetworkByName(name string) (FCoENetwork, error)

func (*OVClient) GetFCoENetworks

func (c *OVClient) GetFCoENetworks(filter string, sort string) (FCoENetworkList, error)

func (*OVClient) GetIdleTimeout

func (c *OVClient) GetIdleTimeout() (int64, error)

GetIdleTimeout gets the current timeout for the logged on session returns timeout in milliseconds, or error when it fails

func (*OVClient) GetInterconnectByName added in v1.0.0

func (c *OVClient) GetInterconnectByName(name string) (Interconnect, error)

func (*OVClient) GetInterconnectByUri added in v1.0.0

func (c *OVClient) GetInterconnectByUri(uri utils.Nstring) (Interconnect, error)

func (*OVClient) GetInterconnectTypeByName

func (c *OVClient) GetInterconnectTypeByName(name string) (InterconnectType, error)

func (*OVClient) GetInterconnectTypeByUri

func (c *OVClient) GetInterconnectTypeByUri(uri utils.Nstring) (InterconnectType, error)

func (*OVClient) GetInterconnectTypes

func (c *OVClient) GetInterconnectTypes(start string, count string, filter string, sort string) (InterconnectTypeList, error)

func (*OVClient) GetInterconnects added in v1.0.0

func (c *OVClient) GetInterconnects(start string, count string, filter string, sort string) (InterconnectList, error)

func (*OVClient) GetLogicalEnclosureByName added in v1.0.0

func (c *OVClient) GetLogicalEnclosureByName(name string) (LogicalEnclosure, error)

func (*OVClient) GetLogicalEnclosures added in v1.0.0

func (c *OVClient) GetLogicalEnclosures(start string, count string, filter string, scopeUris []string, sort string) (LogicalEnclosureList, error)

func (*OVClient) GetLogicalInterconnectById added in v1.0.0

func (c *OVClient) GetLogicalInterconnectById(Id string) (LogicalInterconnect, error)

func (*OVClient) GetLogicalInterconnectByUri added in v1.0.0

func (c *OVClient) GetLogicalInterconnectByUri(uri string) (LogicalInterconnect, error)

func (*OVClient) GetLogicalInterconnectEthernetSettings added in v1.0.0

func (c *OVClient) GetLogicalInterconnectEthernetSettings(Id string) (EthernetSettings, error)

func (*OVClient) GetLogicalInterconnectFirmware added in v1.0.0

func (c *OVClient) GetLogicalInterconnectFirmware(Id string) (Firmware, error)

func (*OVClient) GetLogicalInterconnectForwardingInformation added in v1.0.0

func (c *OVClient) GetLogicalInterconnectForwardingInformation(filter []string, Id string) (InterconnectFibData, error)

func (*OVClient) GetLogicalInterconnectForwardingInformationByInterconnectAndExternalVlan added in v1.0.0

func (c *OVClient) GetLogicalInterconnectForwardingInformationByInterconnectAndExternalVlan(InterconnectURI string, ExternalVlan string, Id string) (InterconnectFibDataEntry, error)

func (*OVClient) GetLogicalInterconnectForwardingInformationByInternalVlan added in v1.0.0

func (c *OVClient) GetLogicalInterconnectForwardingInformationByInternalVlan(InternalVlan string, Id string) (InterconnectFibDataEntry, error)

func (*OVClient) GetLogicalInterconnectForwardingInformationByMacAddress added in v1.0.0

func (c *OVClient) GetLogicalInterconnectForwardingInformationByMacAddress(MacAddress string, Id string) (InterconnectFibDataEntry, error)

func (*OVClient) GetLogicalInterconnectGroupByName

func (c *OVClient) GetLogicalInterconnectGroupByName(name string) (LogicalInterconnectGroup, error)

func (*OVClient) GetLogicalInterconnectGroupByUri added in v0.8.1

func (c *OVClient) GetLogicalInterconnectGroupByUri(uri utils.Nstring) (LogicalInterconnectGroup, error)

func (*OVClient) GetLogicalInterconnectGroupDefaultSettings added in v1.0.0

func (c *OVClient) GetLogicalInterconnectGroupDefaultSettings() (LogicalInterconnectGroupDefaultSettings, error)

func (*OVClient) GetLogicalInterconnectGroupSettings added in v1.0.0

func (c *OVClient) GetLogicalInterconnectGroupSettings(uri string) (LogicalInterconnectGroupDefaultSettings, error)

func (*OVClient) GetLogicalInterconnectGroups

func (c *OVClient) GetLogicalInterconnectGroups(count int, filter string, scopeUris string, sort string, start int) (LogicalInterconnectGroupList, error)

func (*OVClient) GetLogicalInterconnectPortMonitor added in v1.0.0

func (c *OVClient) GetLogicalInterconnectPortMonitor(Id string) (PortMonitor, error)

func (*OVClient) GetLogicalInterconnectSNMPConfiguration added in v1.0.0

func (c *OVClient) GetLogicalInterconnectSNMPConfiguration(Id string) (SnmpConfiguration, error)

func (*OVClient) GetLogicalInterconnects added in v1.0.0

func (c *OVClient) GetLogicalInterconnects(sort string, start string, count string) (LogicalInterconnectList, error)

func (*OVClient) GetLogicalInternalVlans added in v1.0.0

func (c *OVClient) GetLogicalInternalVlans(Id string) (InternalVlanAssociationCollection, error)

func (*OVClient) GetLogicalQosAggregatedConfiguration added in v1.0.0

func (c *OVClient) GetLogicalQosAggregatedConfiguration(Id string, fields string, view string) (QosConfiguration, error)

func (*OVClient) GetLogicalSwitchGroupByName

func (c *OVClient) GetLogicalSwitchGroupByName(name string) (LogicalSwitchGroup, error)

func (*OVClient) GetLogicalSwitchGroups

func (c *OVClient) GetLogicalSwitchGroups(filter string, sort string) (LogicalSwitchGroupList, error)

func (*OVClient) GetNetworkSetByName

func (c *OVClient) GetNetworkSetByName(name string) (NetworkSet, error)

func (*OVClient) GetNetworkSets

func (c *OVClient) GetNetworkSets(filter string, sort string) (NetworkSetList, error)

func (*OVClient) GetOSDeploymentPlan added in v0.8.2

func (c *OVClient) GetOSDeploymentPlan(uri utils.Nstring) (OSDeploymentPlan, error)

get an os deployment plan with uri

func (*OVClient) GetOSDeploymentPlanByName added in v0.8.2

func (c *OVClient) GetOSDeploymentPlanByName(name string) (OSDeploymentPlan, error)

func (*OVClient) GetOSDeploymentPlans added in v0.8.2

func (c *OVClient) GetOSDeploymentPlans(filter string, sort string) (OSDeploymentPlanList, error)

func (*OVClient) GetProfileByName

func (c *OVClient) GetProfileByName(name string) (ServerProfile, error)

get a server profile by name

func (*OVClient) GetProfileBySN

func (c *OVClient) GetProfileBySN(serialnum string) (ServerProfile, error)

GetProfileBySN accepts serial number

func (*OVClient) GetProfileByURI

func (c *OVClient) GetProfileByURI(uri utils.Nstring) (ServerProfile, error)

GetProfileByURI - get the profile from a uri

func (*OVClient) GetProfileTemplateByName

func (c *OVClient) GetProfileTemplateByName(name string) (ServerProfile, error)

get a server profile template by name

func (*OVClient) GetProfileTemplates

func (c *OVClient) GetProfileTemplates(start string, count string, filter string, sort string, scopeUris string) (ServerProfileList, error)

get a server profiles

func (*OVClient) GetProfiles

func (c *OVClient) GetProfiles(start string, count string, filter string, sort string, scopeUris string) (ServerProfileList, error)

GetProfiles - get a server profiles

func (*OVClient) GetReachablePorts added in v1.0.0

func (c *OVClient) GetReachablePorts(uri utils.Nstring) (ReachablePortsList, error)

func (*OVClient) GetScopeByName added in v1.0.0

func (c *OVClient) GetScopeByName(name string) (Scope, error)

func (*OVClient) GetScopes added in v1.0.0

func (c *OVClient) GetScopes(count string, query string, start string, view string, sort string) (ScopeList, error)

func (*OVClient) GetServerHardwareByName added in v0.8.2

func (c *OVClient) GetServerHardwareByName(name string) (ServerHardware, error)

get a server hardware with uri

func (*OVClient) GetServerHardwareByUri added in v1.0.0

func (c *OVClient) GetServerHardwareByUri(uri utils.Nstring) (ServerHardware, error)

get a server hardware with uri

func (*OVClient) GetServerHardwareList

func (c *OVClient) GetServerHardwareList(filters []string, sort string) (ServerHardwareList, error)

get a server hardware with filters

func (*OVClient) GetServerHardwareTypeByName added in v0.8.1

func (c *OVClient) GetServerHardwareTypeByName(name string) (ServerHardwareType, error)

func (*OVClient) GetServerHardwareTypeByUri added in v0.8.1

func (c *OVClient) GetServerHardwareTypeByUri(uri utils.Nstring) (ServerHardwareType, error)

func (*OVClient) GetServerHardwareTypes added in v0.8.1

func (c *OVClient) GetServerHardwareTypes(start int, count int, filter string, sort string) (ServerHardwareTypeList, error)

func (*OVClient) GetStorageAttachmentByName added in v1.0.0

func (c *OVClient) GetStorageAttachmentByName(name string) (StorageAttachment, error)

func (*OVClient) GetStorageAttachments added in v1.0.0

func (c *OVClient) GetStorageAttachments(filter string, sort string, start string, count string) (StorageAttachmentsListV2, error)

func (*OVClient) GetStoragePoolByName added in v1.0.0

func (c *OVClient) GetStoragePoolByName(name string) (StoragePoolV3, error)

func (*OVClient) GetStoragePools added in v1.0.0

func (c *OVClient) GetStoragePools(filter string, sort string, start string, count string) (StoragePoolsListV3, error)

func (*OVClient) GetStorageSystemByName added in v1.0.0

func (c *OVClient) GetStorageSystemByName(name string) (StorageSystemV4, error)

func (*OVClient) GetStorageSystems added in v1.0.0

func (c *OVClient) GetStorageSystems(filter string, sort string) (StorageSystemsListV4, error)

func (*OVClient) GetStorageVolumeByName added in v0.8.1

func (c *OVClient) GetStorageVolumeByName(name string) (StorageVolumeV3, error)

func (*OVClient) GetStorageVolumes added in v0.8.1

func (c *OVClient) GetStorageVolumes(filter string, sort string) (StorageVolumesListV3, error)

func (*OVClient) GetSwitchTypeByName

func (c *OVClient) GetSwitchTypeByName(name string) (SwitchType, error)

func (*OVClient) GetSwitchTypes

func (c *OVClient) GetSwitchTypes(filter string, sort string) (SwitchTypeList, error)

func (*OVClient) GetTasks added in v1.0.0

func (c *OVClient) GetTasks(filter string, sort string, count string, view string) (TasksList, error)

func (*OVClient) GetTelemetryConfigurations added in v1.0.0

func (c *OVClient) GetTelemetryConfigurations(Id string, TCId string) (TelemetryConfiguration, error)

func (*OVClient) GetUnassignedPortsForPortMonitor added in v1.0.0

func (c *OVClient) GetUnassignedPortsForPortMonitor(Id string) PortMonitorPortCollection

func (*OVClient) GetUnassignedUplinkPortsForPortMonitor added in v1.0.0

func (c *OVClient) GetUnassignedUplinkPortsForPortMonitor(Id string) (PortMonitorPortCollection, error)

func (*OVClient) GetUplinkSetById added in v1.0.0

func (c *OVClient) GetUplinkSetById(id string) ([]string, error)

func (*OVClient) GetUplinkSetByName added in v1.0.0

func (c *OVClient) GetUplinkSetByName(name string) (UplinkSet, error)

func (*OVClient) GetUplinkSets added in v1.0.0

func (c *OVClient) GetUplinkSets(start string, count string, filter string, sort string) (UplinkSetList, error)

func (*OVClient) IsHardwareSchemaV2

func (c *OVClient) IsHardwareSchemaV2() bool

IsHardwareSchemaV2 - true when we are using v2, false for v1

func (*OVClient) IsProfileTemplates

func (c *OVClient) IsProfileTemplates() bool

IsProfileTemplates - returns true when we should use GetProfileTemplate...

func (*OVClient) ManageI3SConnections added in v0.8.2

func (c *OVClient) ManageI3SConnections(connections []Connection, netname string) ([]Connection, error)

ManageI3SConnections - setup connections for i3s deployment network

func (*OVClient) NewOVClient

func (c *OVClient) NewOVClient(user string, password string, domain string, endpoint string, sslverify bool, apiversion int, ifmatch string) *OVClient

new Client

func (*OVClient) ProfileTemplatesNotSupported

func (c *OVClient) ProfileTemplatesNotSupported() bool

ProfileTemplatesNotSupported - determine these functions are supported

func (*OVClient) RefreshLogin

func (c *OVClient) RefreshLogin() error

RefreshLogin Refresh login authkey Should make sure we have a valid APIKey

func (*OVClient) RefreshVersion

func (c *OVClient) RefreshVersion() error

RefreshVersion - refresh the max api Version for the client

func (*OVClient) SessionLogin

func (c *OVClient) SessionLogin() (Session, error)

SessionLogin Login to OneView and get a session ID returns Session structure

func (*OVClient) SessionLogout

func (c *OVClient) SessionLogout() error

SessionLogout Logout to OneView and get a session ID returns Session structure

func (*OVClient) SetIdleTimeout

func (c *OVClient) SetIdleTimeout(thetime int64) error

SetIdleTimeout sets the current timeout

func (*OVClient) SubmitDeleteProfile

func (c *OVClient) SubmitDeleteProfile(p ServerProfile) (t *Task, err error)

submit new profile template

func (*OVClient) SubmitNewProfile

func (c *OVClient) SubmitNewProfile(p ServerProfile) (err error)

SubmitNewProfile - submit new profile template

func (*OVClient) UpdateConfigurationScript added in v1.0.0

func (c *OVClient) UpdateConfigurationScript(uri utils.Nstring, body string) (string, error)

func (*OVClient) UpdateEnclosure added in v1.0.0

func (c *OVClient) UpdateEnclosure(op string, path string, value string, enclosure Enclosure) error

func (*OVClient) UpdateEnclosureGroup added in v0.8.1

func (c *OVClient) UpdateEnclosureGroup(enclosureGroup EnclosureGroup) error

func (*OVClient) UpdateEthernetNetwork

func (c *OVClient) UpdateEthernetNetwork(eNet EthernetNetwork) error

func (*OVClient) UpdateFCoENetwork

func (c *OVClient) UpdateFCoENetwork(fcoeNet FCoENetwork) error

func (*OVClient) UpdateFcNetwork added in v0.8.1

func (c *OVClient) UpdateFcNetwork(fcNet FCNetwork) error

func (*OVClient) UpdateLogicalEnclosure added in v1.0.0

func (c *OVClient) UpdateLogicalEnclosure(logEn LogicalEnclosure) error

func (*OVClient) UpdateLogicalInterconnectConfigurations added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectConfigurations(Id string) error

func (*OVClient) UpdateLogicalInterconnectConsistentState added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectConsistentState(liCompliance LogicalInterconnectCompliance) error

func (*OVClient) UpdateLogicalInterconnectEthernetSettings added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectEthernetSettings(ethernetSetting EthernetSettings, Id string) error

func (*OVClient) UpdateLogicalInterconnectEthernetSettingsForce added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectEthernetSettingsForce(ethernetSetting EthernetSettings, Id string, force bool) error

func (*OVClient) UpdateLogicalInterconnectFirmware added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectFirmware(firmware Firmware, Id string) error

func (*OVClient) UpdateLogicalInterconnectFirmwareForce added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectFirmwareForce(firmware Firmware, Id string, force bool) error

func (*OVClient) UpdateLogicalInterconnectGroup

func (c *OVClient) UpdateLogicalInterconnectGroup(logicalInterconnectGroup LogicalInterconnectGroup) error

func (*OVClient) UpdateLogicalInterconnectInternalNetworks added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectInternalNetworks(internalNetworks []utils.Nstring, Id string) error

func (*OVClient) UpdateLogicalInterconnectInternalNetworksForce added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectInternalNetworksForce(internalNetworks []utils.Nstring, Id string, force bool) error

func (*OVClient) UpdateLogicalInterconnectPortMonitor added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectPortMonitor(PMConfig PortMonitor, Id string) error

func (*OVClient) UpdateLogicalInterconnectQosConfigurations added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectQosConfigurations(qosConfig QosConfiguration, Id string) error

func (*OVClient) UpdateLogicalInterconnectSNMPConfigurations added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectSNMPConfigurations(snmpConfig SnmpConfiguration, Id string) error

func (*OVClient) UpdateLogicalInterconnectTelemetryConfigurations added in v1.0.0

func (c *OVClient) UpdateLogicalInterconnectTelemetryConfigurations(TConfig TelemetryConfiguration, Id string, TcId string) error

func (*OVClient) UpdateLogicalSwitchGroup

func (c *OVClient) UpdateLogicalSwitchGroup(logicalSwitchGroup LogicalSwitchGroup) error

func (*OVClient) UpdateNetworkSet

func (c *OVClient) UpdateNetworkSet(netSet NetworkSet) error

func (*OVClient) UpdateProfileTemplate added in v0.8.1

func (c *OVClient) UpdateProfileTemplate(serverProfileTemplate ServerProfile) error

func (*OVClient) UpdateScope added in v1.0.0

func (c *OVClient) UpdateScope(scp Scope) error

func (*OVClient) UpdateServerProfile added in v0.8.2

func (c *OVClient) UpdateServerProfile(p ServerProfile) error

func (*OVClient) UpdateStoragePool added in v1.0.0

func (c *OVClient) UpdateStoragePool(sPool StoragePoolV3) error

func (*OVClient) UpdateStorageSystem added in v1.0.0

func (c *OVClient) UpdateStorageSystem(sSystem StorageSystemV4) error

func (*OVClient) UpdateStorageVolume added in v0.8.1

func (c *OVClient) UpdateStorageVolume(sVol StorageVolumeV3) error

func (*OVClient) UpdateUplinkSet added in v1.0.0

func (c *OVClient) UpdateUplinkSet(upSet UplinkSet) error

type OsDeploymentSetting added in v1.0.0

type OsDeploymentSetting struct {
	DeploymentModeSettings DeploymentModeSetting `json:"deploymentModeSettings,omitempty"` // "deploymentModeSettings": {},
	ManageOSDeployment     bool                  `json:"manageOSDeployment,omitempty"`     // "manageOSDeployment": false,
}

type OtherFamilyMember added in v1.0.0

type OtherFamilyMember struct {
	ModelName    string `json:"modelName,omitempty"`    // "modelName":"",
	PartNumber   string `json:"partNumber,omitempty"`   // "partNumber":"",
	TaaCompliant bool   `json:"taaCompliant,omitempty"` // "taaCompliant": true,
}

type Partition added in v1.0.0

type Partition struct {
	AssociatedDevices string        `json:"associatedDevices,omitempty"` // "associatedDevices": "",
	DeviceCount       int           `json:"deviceCount,omitempty"`       // "deviceCount": 1,
	MemoryMb          int           `json:"memoryMb,omitempty"`          // "memoryMb": 1,
	MonarchDevice     int           `json:"monarchDevice,omitempty"`     // "monarchDevice": 1,
	PartitionHealth   string        `json:"partitionHealth,omitempty"`   // "partitionHealth": "",
	PartitionID       string        `json:"partitionID,omitempty"`       // "partitionID": "",
	PartitionName     string        `json:"partitionName,omitempty"`     // "partitionName": "",
	PartitionStatus   string        `json:"partitionStatus,omitempty"`   // "partitionStatus": "",
	ParttionUUID      string        `json:"parttionUUID,omitempty"`      // "parttionUUID": "",
	PendingChange     bool          `json:"pendingChange,omitempty"`     // "pendingChange": true,
	ProcessorCount    int           `json:"processorCount,omitempty"`    // "processorCount": 1,
	RunState          string        `json:"runState,omitempty"`          // "runState": "",
	ServerHardwareUri utils.Nstring `json:"serverHardwareUri,omitempty"` // "serverHardwareUri": "",
}

type Paths added in v1.0.0

type Paths struct {
	ConnectionName     string     `json:"connectionName,omitempty"`
	ExpectedNetworkUri string     `json:"expectedNetworkUri,omitempty"`
	Initiator          *Initiator `json:"initiator,omitempty"`
	IsEnabled          bool       `json:"isEnabled,omitempty"`
	Transport          string     `json:"transport,omitempty"`
}

type PhysicalPortv200

type PhysicalPortv200 struct {
	InterconnectPort         int               `json:"interconnectPort,omitempty"`         // interconnectPort The downlink port number on the interconnect that hosts network connections for this adapter port. If the adapter port is not connected to an interconnect downlink port, the value will be 0. integer read only
	InterconnectURI          utils.Nstring     `json:"interconnectUri,omitempty"`          // interconnectUri The URI of the interconnect that hosts network connections for this adapter port. string read only
	MAC                      string            `json:"mac,omitempty"`                      // mac Physical mac address of this physical port. string read only
	PhysicalInterconnectPort int               `json:"physicalInterconnectPort,omitempty"` // physicalInterconnectPort The downlink port number on the interconnect to which the adapter port is physically connected. If the adapter port is not connected to an interconnect downlink port, the value will be 0. integer read only
	PhysicalInterconnectURI  utils.Nstring     `json:"physicalInterconnectUri,omitempty"`  // physicalInterconnectUri The URI of the interconnect to which the adapter port is physically connected. string read only
	PortNumber               int               `json:"portNumber,omitempty"`               // portNumber Physical port number of the adapter. integer read only
	Type                     string            `json:"type,omitempty"`                     // type Physical port type. Values include Ethernet and FibreChannel. Physical Server Port Type read only
	VirtualPorts             []VirtualPortv200 `json:"virtualPorts,omitempty"`             // For Flex-capable devices, a list of FlexNICs defined on the server. array of Server Fabric Virtual Port read only
	WWN                      string            `json:"wwn,omitempty"`                      // wwn The world wide name of this physical port. string read only
}

PhysicalPortv200 -

type Port added in v1.0.0

type Port struct {
	AssociatedUplinkSetUri    utils.Nstring    `json:"associatedUplinkSetUri,omitempty"`    // "associatedUplinkSetUri": "/rest/uplink-sets/34d55132-fbb8-4ebc-aa3e-8164180ce845",
	Available                 bool             `json:"available,omitempty"`                 // "available": true,
	BayNumber                 int              `json:"bayNumber,omitempty"`                 // "bayNumber": 3,
	Capability                []string         `json:"capability,omitempty"`                // "capability": [],
	Category                  string           `json:"category,omitempty"`                  // "category": "ports",
	ConfigPortTypes           []string         `json:"configPortTypes,omitempty"`           // "configPortTypes": [],
	ConnectorType             string           `json:"connectorType,omitempty"`             // "connectorType": "QSFP+CR4",
	Created                   string           `json:"created,omitempty"`                   // "created": null,
	DcbxInfo                  DcbxInfo         `json:"dcbxInfo,omitempty"`                  // "dcbxInfo": {},
	Description               string           `json:"description,omitempty"`               // "description": null,
	Enabled                   bool             `json:"enabled,omitempty"`                   // "enabled": true,
	ETag                      string           `json:"eTag,omitempty"`                      // "eTag": null,
	FcPortProperties          FcPortProperties `json:"fcPortProperties,omitempty"`          // fcPortProperties: {}
	InterconnectName          string           `json:"interconnectName,omitempty"`          // "interconnectName": "SYN03_Frame1, interconnect 3",
	LagId                     int              `json:"lagId,omitempty"`                     // "lagId": 2,
	LagStates                 []string         `json:"lagStates,omitempty"`                 // "lagStates": [],
	Modified                  string           `json:"modified,omitempty"`                  // "modified": null,
	Name                      string           `json:"name,omitempty"`                      // "name": "Q3",
	Neighbor                  Neighbor         `json:"neighbor,omitempty"`                  // "neighbor": {},
	OperationalSpeed          string           `json:"operationalSpeed,omitempty"`          // "operationalSpeed": "Speed40G",
	PairedPortName            string           `json:"pairedPortName,omitempty"`            // "pairedPortName": null,
	PortHealthStatus          string           `json:"portHealthStatus,omitempty"`          // "portHealthStatus": "Normal",
	PortId                    string           `json:"portId,omitempty"`                    // "portId": "2b322628-e5a9-4843-b184-08345e7140c3:Q3",
	PortMonitorConfigInfo     string           `json:"portMonitorConfigInfo,omitempty"`     // "portMonitorConfigInfo": "NotMonitored",
	PortName                  string           `json:"portName,omitempty"`                  // "portName": "Q3",
	PortRunningCapabilityType string           `json:"portRunningCapabilityType,omitempty"` // "portRunningCapabilityType": null,
	PortSplitMode             string           `json:"portSplitMode,omitempty"`             // "portSplitMode": "Unsplit",
	PortStatus                string           `json:"portStatus,omitempty"`                // "portStatus": "Linked",
	PortStatusReason          string           `json:"portStatusReason,omitempty"`          // "portStatusReason": "Active",
	PortType                  string           `json:"portType,omitempty"`                  // "portType": "Uplink",
	PortTypeExtended          string           `json:"portTypeExtended,omitempty"`          // "portTypeExtended": "External",
	State                     string           `json:"state,omitempty"`                     // "state": null,
	Status                    string           `json:"status,omitempty"`                    // "status": "OK",
	SubPorts                  []SubPort        `json:"subports,omitempty"`                  // "subports": null,
	Type                      string           `json:"type,omitempty"`                      // "type": "port",
	URI                       utils.Nstring    `json:"uri,omitempty"`                       // "uri": "/rest/interconnects/2b322628-e5a9-4843-b184-08345e7140c3/ports/2b322628-e5a9-4843-b184-08345e7140c3:Q3",
	VendorSpecificPortName    string           `json:"vendorSpecificPortName,omitempty"`    // "vendorSpecificPortName": null,
	Vlans                     string           `json:"vlans,omitempty"`                     // "vlans": null
}

type PortConfigInfos added in v1.0.0

type PortConfigInfos struct {
	DesiredSpeed string   `json:"desiredSpeed,omitempty"` //"desiredSpeed":"Auto",
	Location     Location `json:"location"`               //"location":"{...},
}

type PortDeviceSpecificAttributes added in v1.0.0

type PortDeviceSpecificAttributes struct {
	PartnerPort string `json:"partnerport,omitempty"`
}

type PortInfo

type PortInfo struct {
	DownlinkCapable  bool          `json:"downlinkCapable,omitempty"` // "downlinkCapable": true,
	PairedPortName   utils.Nstring `json:"pairedPortName,omitempty"`  // "pairedPortName": null,
	PortCapabilities []string      `json:"portCapabilites,omitempty"` // "portCapabilities":  ["ConnectionReservation","FibreChannel","ConnectionDeployment"],
	PortName         string        `json:"portName,omitempty"`        // "portName": "4",
	PortNumber       int           `json:"portNumber,omitempty"`      // "portNumber": 20,
	UplinkCapable    bool          `json:"uplinkCapable,omitempty"`   // "uplinkCapable": true,
}

type PortMap added in v0.8.1

type PortMap struct {
	InterconnectBay int `json:"interconnectBay,omitempty"` // "interconnectBay": 1,
	MidplanePort    int `json:"midplanePort,omitempty"`    // "midplanePort": 1,
}

type PortMapv200

type PortMapv200 struct {
	DeviceSlots []DeviceSlotsv200 `json:"deviceSlots,omitempty"` //  List of each slot found on the server hardware. read only
}

PortMapv200 -

type PortMonitor added in v1.0.0

type PortMonitor struct {
	Type              string        `json:"type,omitempty"`              //type": "port-monitor",
	URI               utils.Nstring `json:"uri,omitempty"`               //"uri": "/rest/logical-interconnects/d4468f89-4442-4324-9c01-624c7382db2d/port-monitor",
	Category          string        `json:"category,omitempty"`          //"category": "port-monitor",
	ETAG              string        `json:"eTag,omitempty"`              //"eTag": "8a302a85-ec4d-4214-a3e0-10ef71d28769",
	Created           string        `json:"created,omitempty"`           //"created": null,
	Modified          string        `json:"modified,omitempty"`          //"modified": null,
	EnablePortMonitor string        `json:"enablePortMonitor,omitempty"` //"enablePortMonitor": false,
	AnalyzerPort      string        `json:"analyzerPort,omitempty"`      //"analyzerPort": null,
	MonitoredPorts    string        `json:"monitoredPorts,omitempty"`    //"monitoredPorts": [],
	Description       utils.Nstring `json:"description,omitempty"`       //"description": null,
	State             string        `json:"state,omitempty"`             //"state": null,
	Status            string        `json:"status,omitempty"`            //"status": null,
	Name              string        `json:"name,omitempty"`              //"name": "name2095641007-1533682087640"
}

type PortMonitorPort added in v1.0.0

type PortMonitorPort struct {
	InterconnectName string `json:"interconnectName,omitempty"` //"interconnectName": "SYN03_Frame2, interconnect 6",
	PortName         string `json:"portName,omitempty"`         //"portName": "Q1:2",
	URI              string `json:"uri,omitempty"`              //"uri": "/rest/interconnects/aca6687f-1370-46cd-b832-7e3192dbddfd/ports/aca6687f-1370-46cd-b832-7e3192dbddfd:Q1:2
}

type PortMonitorPortCollection added in v1.0.0

type PortMonitorPortCollection struct {
	Type        string            `json:"type,omitempty"`        //type": "PortMonitorPortCollection",
	URI         utils.Nstring     `json:"uri,omitempty"`         //"uri":null
	Category    string            `json:"category,omitempty"`    //"category": null,
	ETAG        string            `json:"eTag,omitempty"`        //"eTag": null,
	Created     string            `json:"created,omitempty"`     // "created": null,
	Modified    string            `json:"modified,omitempty"`    // "modified": null,
	Start       int               `json:"start,omitempty"`       // "start": 0,
	Count       int               `json:"count,omitempty"`       //"count": 90,
	Total       int               `json:"total,omitempty"`       //"total": 90,
	PrevPageUri string            `json:"prevPageUri,omitempty"` //"prevPageUri": null,
	NextPageUri string            `json:"nextPageUri,omitempty"` //"nextPageUri": null,
	Members     []PortMonitorPort `json:"members,omitempty"`     //"members":[],
}

type Ports added in v1.0.0

type Ports struct {
	PortDeviceSpecificAttributes PortDeviceSpecificAttributes `json:"deviceSpecificAttributes,omitempty"`
	Id                           string                       `json:"id,omitempty"`
	Mode                         string                       `json:"mode,omitempty"`
}

type Power

type Power struct {
	Blade      *ServerHardware
	State      PowerState
	TaskStatus bool
}

type PowerControl

type PowerControl int

Power control

const (
	P_COLDBOOT PowerControl = 1 + iota
	P_MOMPRESS
	P_PRESSANDHOLD
	P_RESET
)

func (PowerControl) String

func (pc PowerControl) String() string

type PowerRequest

type PowerRequest struct {
	PowerState   string `json:"powerState,omitempty"`
	PowerControl string `json:"powerControl,omitempty"`
}

PowerRequest { 'body' => { 'powerState' => state.capitalize, 'powerControl' => 'MomentaryPress' } })

type PowerState

type PowerState int

Create a PowerState type

const (
	P_ON PowerState = 1 + iota
	P_OFF
	P_UKNOWN
)

func (PowerState) Equal

func (p PowerState) Equal(s string) bool

func (PowerState) String

func (p PowerState) String() string

type PowerSupplyBay added in v1.0.0

type PowerSupplyBay struct {
	BayNumber           int    `json:"bayNumber,omitempty"`           // "bayNumber": 1
	ChangeState         string `json:"changeState,omitempty"`         // "changeState": "None"
	DevicePresence      string `json:"devicePresence,omitempty"`      // "devicePresence": "Absent"
	Model               string `json:"model,omitempty"`               // "model": ""
	OutputCapacityWatts int    `json:"outputCapacityWatts,omitempty"` // "outputCapacityWatts": ""
	PartNumber          string `json:"partNumber,omitempty"`          // "partNumber": ""
	SerialNumber        string `json:"serialNumber,omitempty"`        // "serialNumber": ""
	SparePartNumber     string `json:"sparePartNumber,omitempty"`     // "sparePartNumber": ""
	Status              string `json:"status,omitempty"`              // "status": ""
}

type PowerTask

type PowerTask struct {
	Blade ServerHardware
	State PowerState // current power state
	Task
}

Provides power execution status

func (*PowerTask) GetCurrentPowerState

func (pt *PowerTask) GetCurrentPowerState() error

get current power state

func (*PowerTask) NewPowerTask

func (pt *PowerTask) NewPowerTask(b ServerHardware) *PowerTask

Create a new power task manager TODO: refactor PowerTask to use Task vs overloading it here.

func (*PowerTask) PowerExecutor

func (pt *PowerTask) PowerExecutor(s PowerState) error

Submit desired power state and wait Most of our concurrency will happen in PowerExecutor

func (*PowerTask) SubmitPowerState

func (pt *PowerTask) SubmitPowerState(s PowerState)

Submit desired power state

type ProgressUpdate

type ProgressUpdate struct {
	TimeStamp    string `json:"timestamp,omitempty"`    // "timestamp":"2015-09-10T22:50:14.250Z",
	StatusUpdate string `json:"statusUpdate,omitempty"` // "statusUpdate":"Apply server settings.",
	ID           int    `json:"id,omitempty"`           // "id":12566
}

ProgressUpdate - Task Progress Updates

type Properties added in v1.0.0

type Properties struct {
	Name             string        `json:"name,omitempty"`
	Storagepool      utils.Nstring `json:"storagePool,omitempty"`
	Size             int           `json:"size,omitempty"`
	ProvisioningType string        `json:"provisioningType,omitempty"`
}

type ProvisioningParameters added in v0.8.1

type ProvisioningParameters struct {
	StoragePoolUri    utils.Nstring `json:"storagePoolUri,omitempty"`
	ProvisionType     string        `json:"provisionType,omitempty"`
	RequestedCapacity string        `json:"requestedCapacity,omitempty"`
	Shareable         bool          `json:"shareable,omitempty"`
}

type QosClassificationMap

type QosClassificationMap struct {
	Dot1pClassMapping []int    `json:"dot1pClassMapping"` // "dot1pClassMapping": [3],
	DscpClassMapping  []string `json:"dscpClassMapping"`  // "dscpClassMapping": [],
}

type QosConfiguration

type QosConfiguration struct {
	ActiveQosConfig          ActiveQosConfig           `json:"activeQosConfig,omitempty"`          //"activeQosConfig": {...},
	Category                 string                    `json:"category,omitempty"`                 // "category": "qos-aggregated-configuration",
	Created                  string                    `json:"created,omitempty"`                  // "created": "20150831T154835.250Z",
	Description              utils.Nstring             `json:"description,omitempty,omitempty"`    // "description": null,
	ETAG                     string                    `json:"eTag,omitempty"`                     // "eTag": "1441036118675/8",
	InactiveFCoEQosConfig    *InactiveFCoEQosConfig    `json:"inactiveFCoEQosConfig,omitempty"`    // "inactiveFCoEQosConfig": {...},
	InactiveNonFCoEQosConfig *InactiveNonFCoEQosConfig `json:"inactiveNonFCoEQosConfig,omitempty"` // "inactiveNonFCoEQosConfig": {...},
	Modified                 string                    `json:"modified,omitempty"`                 // "modified": "20150831T154835.250Z",
	Name                     string                    `json:"name,omitempty"`                     // "name": "Qos Config 1",
	State                    string                    `json:"state,omitempty"`                    // "state": "Normal",
	Status                   string                    `json:"status,omitempty"`                   // "status": "Critical",
	Type                     string                    `json:"type,omitempty"`                     // "qos-aggregated-configuration",
	URI                      utils.Nstring             `json:"uri,omitempty"`                      // "uri": null
}

type QosTrafficClass

type QosTrafficClass struct {
	BandwidthShare   string `json:"bandwidthShare,omitempty"` // "bandwidthShare": "fcoe",
	ClassName        string `json:"className"`                // "className": "FCoE lossless",
	EgressDot1pValue int    `json:"egressDot1pValue"`         // "egressDot1pValue": 3,
	Enabled          *bool  `json:"enabled,omitempty"`        // "enabled": true,
	MaxBandwidth     int    `json:"maxBandwidth"`             // "maxBandwidth": 100,
	RealTime         *bool  `json:"realTime,omitempty"`       // "realTime": true,
}

type QosTrafficClassifier

type QosTrafficClassifier struct {
	QosClassificationMapping *QosClassificationMap `json:"qosClassificationMapping"`  // "qosClassificationMapping": {...},
	QosTrafficClass          QosTrafficClass       `json:"qosTrafficClass,omitempty"` // "qosTrafficClass": {...},
}

type ReachablePorts added in v1.0.0

type ReachablePorts struct {
	ReachableNetworks utils.Nstring `json:"reachableNetworks,omitempty"`
}

type ReachablePortsList added in v1.0.0

type ReachablePortsList struct {
	Category    string           `json:"category,omitempty"`
	Members     []ReachablePorts `json:"members,omitempty"`
	Total       int              `json:"total,omitempty"`
	Count       int              `json:"count,omitempty"`
	Start       int              `json:"start,omitempty"`
	PrevPageURI utils.Nstring    `json:"prevPageUri,omitempty"`
	NextPageURI utils.Nstring    `json:"nextPageUri,omitempty"`
	URI         utils.Nstring    `json:"uri,omitempty"`
}

type RemoteSupport added in v1.0.0

type RemoteSupport struct {
	RemoteSupportUri           string          `json:"remoteSupportUri,omitempty"`           // "remoteSupportUri": "/rest/support/interconnects/2b322628-e5a9-4843-b184-08345e7140c3",
	SupportDataCollectionState string          `json:"supportDataCollectionState,omitempty"` // "supportDataCollectionState": ,
	SupportDataCollectionType  string          `json:"supportDataCollectionType,omitempty"`  // "supportDataCollectionType": ,
	SupportDataCollectionsUri  string          `json:"supportDataCollectionsUri,omitempty"`  // "supportDataCollectionsUri": "/rest/support/data-collections?deviceID=2b322628-e5a9-4843-b184-08345e7140c3&category=interconnects",
	SupportSettings            SupportSettings `json:"supportSettings,omitempty"`            // "supportSettings": {},
	SupportState               string          `json:"supportState,omitempty"`               // "supportState": "Disabled",
}

type RemoteSupportSettings added in v1.0.0

type RemoteSupportSettings struct {
	Destination               string `json:"destination,omitemty"`                // "destination": ""
	RemoteSupportCurrentState string `json:"remoteSupportCurrentState,omitempty"` // "remoteSupportCurrentState": ""
}

type SanStorageOptions

type SanStorageOptions struct {
	SanStorageV3
	HostOSType            string             `json:"hostOSType,omitempty"`            // hostOSType(required),  The operating system type of the host. To retrieve the list of supported host OS types, issue a REST Get request using the /rest/storage-systems/host-types API.
	ManageSanStorage      bool               `json:"manageSanStorage"`                // manageSanStorage(required),  Identifies whether SAN storage is managed in this profile.
	VolumeAttachments     []VolumeAttachment `json:"volumeAttachments,omitempty"`     // volumeAttachments, The list of storage volume attachments. array of Volume Attachment
	SerialNumber          string             `json:"serialNumber,omitempty"`          // serialNumber (searchable) A 10-byte value that is exposed to the Operating System as the server hardware's Serial Number. The value can be a virtual serial number, user defined serial number or physical serial number read from the server's ROM. It cannot be modified after the profile is created.
	SerialNumberType      string             `json:"serialNumberType,omitempty"`      // serialNumberType (searchable) Specifies the type of Serial Number and UUID to be programmed into the server ROM. The value can be 'Virtual', 'UserDefined', or 'Physical'. The serialNumberType defaults to 'Virtual' when serialNumber or uuid are not specified. It cannot be modified after the profile is created.
	ServerHardwareTypeURI utils.Nstring      `json:"serverHardwareTypeUri,omitempty"` // serverHardwareTypeUri Identifies the server hardware type for which the Server Profile was designed. The serverHardwareTypeUri is determined when the profile is created and cannot be modified. Use GET /rest/server-hardware-types to retrieve the list of server hardware types.
	ServerHardwareURI     utils.Nstring      `json:"serverHardwareUri,omitempty"`     // serverHardwareUri Identifies the server hardware to which the server profile is currently assigned, if applicable. Use GET /rest/server-profiles/available-targets to retrieve the list of available servers.
	State                 string             `json:"state,omitempty"`                 // state (searchable, readonly) Current State of this Server Profile
	Status                string             `json:"status,omitempty"`                // status (searchable, readonly) Overall health status of this Server Profile
	TaskURI               utils.Nstring      `json:"taskUri,omitempty"`               // taskUri (read only) URI of the task currently executing or most recently executed on this server profile.
	Type                  string             `json:"type,omitempty"`                  // type (read only) Identifies the resource type. This field should always be set to 'ServerProfileV4'.
	URI                   utils.Nstring      `json:"uri,omitempty"`                   // uri (searchable, readonly) URI of this Server Profile. The URI is automatically generated when the server profile is created and cannot be modified.
	UUID                  string             `json:"uuid,omitempty"`                  // uuid (searchable) A 36-byte value that is exposed to the Operating System as the server hardware's UUID. The value can be a virtual uuid, user defined uuid or physical uuid read from the server's ROM. It cannot be modified after the profile is created.
	WWNType               string             `json:"wwnType,omitempty"`               // wwnType (searchable) Specifies the type of WWN address to be programmed into the IO devices. The value can be 'Virtual' or 'Physical'. It cannot be modified after the profile is created.
}

SanStorageOptions pecify san storage No San

"sanStorage": {
		"volumeAttachments": [],
		"manageSanStorage": false
},

func (SanStorageOptions) Clone

Clone clone local storage for submitting

type SanStorageV3

type SanStorageV3 struct {
	HostOSType        string               `json:"hostOSType,omitempty"`        // hostOSType The operating system type of the host. To retrieve the list of supported host OS types, issue a REST Get request using the /rest/storage-systems/host-types API. string required
	ManageSanStorage  bool                 `json:"manageSanStorage"`            // manageSanStorage Identifies whether SAN storage is managed in this profile. Boolean required
	VolumeAttachments []VolumeAttachmentV2 `json:"volumeAttachments,omitempty"` // The list of storage volume attachments.
}

SanStorageV3 -

type Scope added in v1.0.0

type Scope struct {
	Description         utils.Nstring    `json:"description,omitempty"`         // "description": "Test from script",
	Modified            string           `json:"modified,omitempty"`            // "modified": "2018-12-13T10:24:25.267Z",
	Name                string           `json:"name,omitempty"`                // "name": "updated-SD3",
	State               string           `json:"state,omitempty"`               // "state": "null",
	Status              string           `json:"status,omitempty"`              // "status": "null",
	Type                string           `json:"type,omitempty"`                // "type": "scopesV3",
	URI                 utils.Nstring    `json:"uri,omitempty"`                 // "uri": "/rest/scopes/7f658031-c942-4336-be7a-67957cf20ba2"
	ExtAttributes       *ExtraAttributes `json:"extAttributes,omitempty"`       //{}
	ApplianceId         string           `json:"applianceId,omitempty"`         // "category": "scopes",
	Category            string           `json:"category,omitempty"`            // "category": "scopes",
	Created             string           `json:"created,omitempty"`             // "created": "2018-12-13T10:05:35.745Z",
	Etag                string           `json:"eTag,omitempty"`                // "eTag": "\"2018-12-13T10:24:25.267Z/2018-12-13T10:24:25.267Z\"",
	OldUri              utils.Nstring    `json:"oldUri,omitempty"`              //"oldUri": "null",
	ScopesUri           utils.Nstring    `json:"scopesUri,omitempty"`           //"scopesUri": "/rest/scopes/resources/rest/scopes/7f658031-c942-4336-be7a-67957cf20ba2"
	InitialScopeUris    []utils.Nstring  `json:"initialScopeUris,omitempty"`    //"initialScopeUris": "/rest/scopes/b2b2e974-743c-11e4-b50b-e7f3da28b112"
	AddedResourceUris   []utils.Nstring  `json:"addedResourceUris,omitempty"`   //"addedResourceUris": "/rest/ethernet-networks/6d0f7c41-9d1d-4de4-92ef-21a15bb0e8d0"
	RemovedResourceUris []utils.Nstring  `json:"removedResourceUris,omitempty"` //"removedResourceUris":"/rest/ethernet-networks/6d0f7c41-9d1d-4de4-92ef-21a15bb0e8d0"
}

type ScopeList added in v1.0.0

type ScopeList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/scopes"
	Members     []Scope       `json:"members,omitempty"`     // "members":[]
}

type ServerHardware

type ServerHardware struct {
	ServerHardwarev200
	AssetTag              string        `json:"assetTag,omitempty"`              // "assetTag": "[Unknown]",
	Category              string        `json:"category,omitempty"`              // "category": "server-hardware",
	Created               string        `json:"created,omitempty"`               // "created": "2015-08-14T21:02:01.537Z",
	Description           utils.Nstring `json:"description,omitempty"`           // "description": null,
	ETAG                  string        `json:"eTag,omitempty"`                  // "eTag": "1441147370086",
	FormFactor            string        `json:"formFactor,omitempty"`            // "formFactor": "HalfHeight",
	LicensingIntent       string        `json:"licensingIntent,omitempty"`       // "licensingIntent": "OneView",
	LocationURI           utils.Nstring `json:"locationUri,omitempty"`           // "locationUri": "/rest/enclosures/092SN51207RR",
	MemoryMb              int           `json:"memoryMb,omitempty"`              // "memoryMb": 262144,
	Model                 string        `json:"model,omitempty"`                 // "model": "ProLiant BL460c Gen9",
	Modified              string        `json:"modified,omitempty"`              // "modified": "2015-09-01T22:42:50.086Z",
	MpFirwareVersion      string        `json:"mpFirmwareVersion,omitempty"`     // "mpFirmwareVersion": "2.03 Nov 07 2014",
	MpModel               string        `json:"mpModel,omitempty"`               // "mpModel": "iLO4",
	Name                  string        `json:"name,omitempty"`                  // "name": "se05, bay 16",
	PartNumber            string        `json:"partNumber,omitempty"`            // "partNumber": "727021-B21",
	Position              int           `json:"position,omitempty"`              // "position": 16,
	PowerLock             bool          `json:"powerLock,omitempty"`             // "powerLock": false,
	PowerState            string        `json:"powerState,omitempty"`            // "powerState": "Off",
	ProcessorCoreCount    int           `json:"processorCoreCount,omitempty"`    // "processorCoreCount": 14,
	ProcessorCount        int           `json:"processorCount,omitempty"`        // "processorCount": 2,
	ProcessorSpeedMhz     int           `json:"processorSpeedMhz,omitempty"`     // "processorSpeedMhz": 2300,
	ProcessorType         string        `json:"processorType,omitempty"`         // "processorType": "Intel(R) Xeon(R) CPU E5-2695 v3 @ 2.30GHz",
	RefreshState          string        `json:"refreshState,omitempty"`          // "refreshState": "NotRefreshing",
	RomVersion            string        `json:"romVersion,omitempty"`            // "romVersion": "I36 11/03/2014",
	SerialNumber          utils.Nstring `json:"serialNumber,omitempty"`          // "serialNumber": "2M25090RMW",
	ServerGroupURI        utils.Nstring `json:"serverGroupUri,omitempty"`        // "serverGroupUri": "/rest/enclosure-groups/56ad0069-8362-42fd-b4e3-f5c5a69af039",
	ServerHardwareTypeURI utils.Nstring `json:"serverHardwareTypeUri,omitempty"` // "serverHardwareTypeUri": "/rest/server-hardware-types/DB7726F7-F601-4EA8-B4A6-D1EE1B32C07C",
	ServerProfileURI      utils.Nstring `json:"serverProfileUri,omitempty"`      // "serverProfileUri": "/rest/server-profiles/9979b3a4-646a-4c3e-bca6-80ca0b403a93",
	ShortModel            string        `json:"shortModel,omitempty"`            // "shortModel": "BL460c Gen9",
	State                 string        `json:"state,omitempty"`                 // "state": "ProfileApplied",
	StateReason           string        `json:"stateReason,omitempty"`           // "stateReason": "NotApplicable",
	Status                string        `json:"status,omitempty"`                // "status": "Warning",
	Type                  string        `json:"type,omitempty"`                  // "type": "server-hardware-3",
	URI                   utils.Nstring `json:"uri,omitempty"`                   // "uri": "/rest/server-hardware/30373237-3132-4D32-3235-303930524D57",
	UUID                  utils.Nstring `json:"uuid,omitempty"`                  // "uuid": "30373237-3132-4D32-3235-303930524D57",
	VirtualSerialNumber   utils.Nstring `json:"VirtualSerialNumber,omitempty"`   // "virtualSerialNumber": "",
	VirtualUUID           string        `json:"virtualUuid,omitempty"`           // "virtualUuid": "00000000-0000-0000-0000-000000000000"
	// v1 properties
	MpDnsName   string `json:"mpDnsName,omitempty"`   // "mpDnsName": "ILO2M25090RMW",
	MpIpAddress string `json:"mpIpAddress,omitempty"` // make this private to force calls to GetIloIPAddress() "mpIpAddress": "172.28.3.136",
	// extra client struct
	Client *OVClient
}

ServerHardware get server hardware from ov

func (ServerHardware) GetIloIPAddress

func (h ServerHardware) GetIloIPAddress() string

GetIloIPAddress - Use MpIpAddress for v1 and For v2 check MpHostInfo is not nil , loop through MpHostInfo.MpIPAddress[], and return the first nonzero address

func (ServerHardware) GetPowerState

func (s ServerHardware) GetPowerState() (PowerState, error)

get the power state

func (ServerHardware) PowerOff

func (s ServerHardware) PowerOff() error

server hardware power off

func (ServerHardware) PowerOn

func (s ServerHardware) PowerOn() error

server hardware power on

type ServerHardwareList

type ServerHardwareList struct {
	Type        string           `json:"type,omitempty"`        // "type": "server-hardware-list-3",
	Category    string           `json:"category,omitempty"`    // "category": "server-hardware",
	Count       int              `json:"count,omitempty"`       // "count": 15,
	Created     string           `json:"created,omitempty"`     // "created": "2015-09-08T04:58:21.489Z",
	ETAG        string           `json:"eTag,omitempty"`        // "eTag": "1441688301489",
	Modified    string           `json:"modified,omitempty"`    // "modified": "2015-09-08T04:58:21.489Z",
	NextPageURI utils.Nstring    `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	PrevPageURI utils.Nstring    `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	Start       int              `json:"start,omitempty"`       // "start": 0,
	Total       int              `json:"total,omitempty"`       // "total": 15,
	URI         string           `json:"uri,omitempty"`         // "uri": "/rest/server-hardware?sort=name:asc&filter=serverHardwareTypeUri=%27/rest/server-hardware-types/DB7726F7-F601-4EA8-B4A6-D1EE1B32C07C%27&filter=serverGroupUri=%27/rest/enclosure-groups/56ad0069-8362-42fd-b4e3-f5c5a69af039%27&start=0&count=100"
	Members     []ServerHardware `json:"members,omitempty"`     //"members":[]
}

server hardware list, simillar to ServerProfileList with a TODO

type ServerHardwareType added in v0.8.1

type ServerHardwareType struct {
	Category    string        `json:"category,omitempty"`    // "category": "server-hardware",
	Created     string        `json:"created,omitempty"`     // "created": "20150831T154835.250Z",
	Description string        `json:"description,omitempty"` // "description": "ServerHardware",
	ETAG        string        `json:"eTag,omitempty"`        // "eTag": "1441036118675/8",
	Modified    string        `json:"modified,omitempty"`    // "modified": "20150831T154835.250Z",
	Name        string        `json:"name,omitempty"`        // "name": "ServerHardware 1",
	Type        string        `json:"type,omitempty"`        // "type": "server-hardware-type-4",
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/server-hardware-types/e2f0031b-52bd-4223-9ac1-d91cb519d548"
}

type ServerHardwareTypeList added in v0.8.1

type ServerHardwareTypeList struct {
	Total       int                  `json:"total,omitempty"`       // "total": 1,
	Count       int                  `json:"count,omitempty"`       // "count": 1,
	Start       int                  `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring        `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring        `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring        `json:"uri,omitempty"`         // "uri": "/rest/server-hardware-types?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []ServerHardwareType `json:"members,omitempty"`     // "members":[]
}

type ServerHardwarev200

type ServerHardwarev200 struct {
	IntelligentProvisioningVersion string              `json:"intelligentProvisioningVersion,omitempty"` // intelligentProvisioningVersion The installed version of the Intelligent Provisioning embedded server provisioning tool. string
	MpHostInfo                     *MpHostInfov200     `json:"mpHostInfo,omitempty"`                     // The host name and IP address information for the Management Processor that resides on this server.
	MpState                        string              `json:"mpState,omitempty"`                        //  Indicates the current state of the management processor.
	PortMap                        *PortMapv200        `json:"portMap,omitempty"`                        //  A list of adapters/slots, their ports and attributes. This information is available for blade servers but not rack servers.
	ServerSettings                 *ServerSettingsv200 `json:"serverSettings,omitempty"`                 //  Indicates the current settings on the server and state of these settings.
	Signature                      *Signaturev200      `json:"signature,omitempty"`                      // Data representing the current configuration or 'signature' of the server.
}

ServerHardwarev200 get server hardware from ov mphostinfo is private to force calls to GetIloIPAddress

type ServerProfile

type ServerProfile struct {
	ServerProfilev200
	*ServerProfilev300
	Affinity              string              `json:"affinity,omitempty"`         // "affinity": "Bay",
	AssociatedServer      utils.Nstring       `json:"associatedServer,omitempty"` // "associatedServer": null,
	Bios                  *BiosOption         `json:"bios,omitempty"`             // "bios": {	},
	Boot                  BootManagement      `json:"boot,omitempty"`             // "boot": { },
	BootMode              BootModeOption      `json:"bootMode,omitempty"`         // "bootMode": {},
	Category              string              `json:"category,omitempty"`         // "category": "server-profiles",
	Connections           []Connection        `json:"connections,omitempty"`
	ConnectionSettings    ConnectionSettings  `json:"connectionSettings,omitempty"`
	Description           string              `json:"description,omitempty"`           // "description": "Docker Machine Bay 16",
	Created               string              `json:"created,omitempty"`               // "created": "20150831T154835.250Z",
	ETAG                  string              `json:"eTag,omitempty"`                  // "eTag": "1441036118675/8"
	EnclosureBay          int                 `json:"enclosureBay,omitempty"`          // "enclosureBay": 16,
	EnclosureGroupURI     utils.Nstring       `json:"enclosureGroupUri,omitempty"`     // "enclosureGroupUri": "/rest/enclosure-groups/56ad0069-8362-42fd-b4e3-f5c5a69af039",
	EnclosureURI          utils.Nstring       `json:"enclosureUri,omitempty"`          // "enclosureUri": "/rest/enclosures/092SN51207RR",
	Firmware              FirmwareOption      `json:"firmware,omitempty"`              // "firmware": { },
	HideUnusedFlexNics    bool                `json:"hideUnusedFlexNics,omitempty"`    // "hideUnusedFlexNics": false,
	InProgress            bool                `json:"inProgress,omitempty"`            // "inProgress": false,
	InitialScopeUris      []utils.Nstring     `json:"initialScopeUris,omitempty"`      // "initialScopeUris":[],
	LocalStorage          LocalStorageOptions `json:"localStorage,omitempty"`          // "localStorage": {},
	MACType               string              `json:"macType,omitempty"`               // "macType": "Physical",
	Modified              string              `json:"modified,omitempty"`              // "modified": "20150902T175611.657Z",
	Name                  string              `json:"name,omitempty"`                  // "name": "Server_Profile_scs79",
	SanStorage            SanStorageOptions   `json:"sanStorage,omitempty"`            // "sanStorage": {},
	ScopesUri             string              `json:"scopesUri,omitempty"`             // "scopesUri": "/rest/scopes/resources/rest/server-profiles/DB7726F7-F601-4EA8-B4A6-D1EE1B32C07C",
	SerialNumber          utils.Nstring       `json:"serialNumber,omitempty"`          // "serialNumber": "2M25090RMW",
	SerialNumberType      string              `json:"serialNumberType,omitempty"`      // "serialNumberType": "Physical",
	ServerHardwareTypeURI utils.Nstring       `json:"serverHardwareTypeUri,omitempty"` // "serverHardwareTypeUri": "/rest/server-hardware-types/DB7726F7-F601-4EA8-B4A6-D1EE1B32C07C",
	ServerHardwareURI     utils.Nstring       `json:"serverHardwareUri,omitempty"`     // "serverHardwareUri": "/rest/server-hardware/30373237-3132-4D32-3235-303930524D57",
	State                 string              `json:"state,omitempty"`                 // "state": "Normal",
	Status                string              `json:"status,omitempty"`                // "status": "Critical",
	TaskURI               utils.Nstring       `json:"taskUri,omitempty"`               // "taskUri": "/rest/tasks/6F0DF438-7D30-41A2-A36D-62AB866BC7E8",
	Type                  string              `json:"type,omitempty"`                  // "type": "ServerProfileV4",
	URI                   utils.Nstring       `json:"uri,omitempty"`                   // "uri": "/rest/server-profiles/9979b3a4-646a-4c3e-bca6-80ca0b403a93",
	UUID                  utils.Nstring       `json:"uuid,omitempty"`                  // "uuid": "30373237-3132-4D32-3235-303930524D57",
	WWNType               string              `json:"wwnType,omitempty"`               // "wwnType": "Physical",
}

ServerProfile - server profile object for ov

func (ServerProfile) Clone

func (s ServerProfile) Clone() ServerProfile

Clone server profile

func (ServerProfile) GetConnectionByName

func (s ServerProfile) GetConnectionByName(name string) (Connection, error)

GetConnectionByName gets the connection from a profile with a given name

type ServerProfileList

type ServerProfileList struct {
	Total       int             `json:"total,omitempty"`       // "total": 1,
	Count       int             `json:"count,omitempty"`       // "count": 1,
	Start       int             `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring   `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring   `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring   `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=serialNumber%20matches%20%272M25090RMW%27&sort=name:asc"
	Members     []ServerProfile `json:"members,omitempty"`     // "members":[]
}

ServerProfileList a list of ServerProfile objects TODO: missing properties, need to think how we can make a higher lvl structure like an OVList Then things like Members are inherited

type ServerProfilev200

type ServerProfilev200 struct {
	TemplateCompliance       string        `json:"templateCompliance,omitempty"`       // v2 Compliant, NonCompliant, Unknown
	ServerProfileTemplateURI utils.Nstring `json:"serverProfileTemplateUri,omitempty"` // undocmented option
}

ServerProfilev200 - v200 changes to ServerProfile

type ServerProfilev300 added in v0.8.2

type ServerProfilev300 struct {
	IscsiInitiatorName     string               `json:"iscsiInitiatorName,omitempty"`     // "iscsiInitiatorName": "name of iscsi initiator name",
	IscsiInitiatorNameType string               `json:"iscsiInitiatorNameType,omitempty"` // "iscsiInitiatorNameType": "UserDefined",
	OSDeploymentSettings   OSDeploymentSettings `json:"osDeploymentSettings,omitempty"`   // "osDeploymentSettings": {...},
}

type ServerSettingsv200

type ServerSettingsv200 struct {
	FirmwareAndDriversInstallState *FirmwareAndDriversInstallStatev200 `json:"firmwareAndDriversInstallState,omitempty"` //  firmwareAndDriversInstallState The current installation status details of the firmware and/or OS drivers on the server.
	HPSmartUpdateToolStatus        *HpSmartUpdateToolStatusv200        `json:"hpSmartUpdateToolStatus,omitempty"`        // The status of HP Smart Update Tool installed on the server.
}

ServerSettingsv200 -

type Session

type Session struct {
	ID string `json:"sessionID,omitempty"`
}

Session struct

type Signaturev200

type Signaturev200 struct {
	PersonalityChecksum int `json:"personalityChecksum,omitempty"` // A calculated checksum of the server 'personality,' based on the defined connections and server identifiers. integer read only
	ServerHwChecksum    int `json:"serverHwChecksum,omitempty"`    // A calculated checksum of the server hardware, based on the hardware components installed in the server. integer read only
}

Signaturev200 -

type SnmpConfiguration

type SnmpConfiguration struct {
	Category      utils.Nstring `json:"category,omitempty"`      // "category": "snmp-configuration",
	Created       string        `json:"created,omitempty"`       // "created": "20150831T154835.250Z",
	Description   utils.Nstring `json:"description,omitempty"`   // "description": null,
	ETAG          string        `json:"eTag,omitempty"`          // "eTag": "1441036118675/8",
	Enabled       *bool         `json:"enabled,omitempty"`       // "enabled": true,
	Modified      string        `json:"modified,omitempty"`      // "modified": "20150831T154835.250Z",
	Name          string        `json:"name,omitempty"`          // "name": "Snmp Config",
	ReadCommunity string        `json:"readCommunity,omitempty"` // "readCommunity": "public",
	SnmpAccess    []string      `json:"snmpAccess,omitempty"`    // "snmpAccess": [],

	State            string            `json:"state,omitempty"`            // "state": "Normal",
	Status           string            `json:"status,omitempty"`           // "status": "Critical",
	SystemContact    string            `json:"systemContact,omitempty"`    // "systemContact": "",
	TrapDestinations []TrapDestination `json:"trapDestinations,omitempty"` // "trapDestinations": {...}
	Type             string            `json:"type,omitempty"`             // "type": "snmp-configuration",
	URI              utils.Nstring     `json:"uri,omitempty"`              // "uri": null,
	V3Enabled        *bool             `json:"v3Enabled,omitempty"`        // "v3Enabled": true
	// contains filtered or unexported fields
}

TODO SNMPConfiguration

type Snmpv3User added in v1.0.0

type Snmpv3User struct {
	SnmpV3UserName    string             `json:"snmpV3UserName,omitempty"`    //"snmpV3UserName":"",
	UserCredentials   []ExtentedProperty `json:"userCredentials,omitempty"`   //"UserCredentials":"",
	V3AuthProtocol    string             `json:"v3AuthProtocol,omitempty"`    // "v3AuthProtocol":"",
	V3PrivacyProtocol string             `json:"v3PrivacyProtocol,omitempty"` // "v3PrivacyProtocol":""
}

type StorageAttachment added in v1.0.0

type StorageAttachment struct {
	Category         string        `json:"category,omitempty"`
	Created          string        `json:"created,omitempty"`
	Description      string        `json:"description,omitempty"`
	ETAG             string        `json:"eTag,omitempty"`
	Host             *Host         `json:"host,omitempty"`
	Paths            *Paths        `json:"paths,omitempty"`
	Name             string        `json:"name,omitempty"`
	State            string        `json:"state,omitempty"`
	Status           string        `json:"status,omitempty"`
	Type             string        `json:"type,omitempty"`
	URI              utils.Nstring `json:"uri,omitempty"`
	StorageSystemUri utils.Nstring `json:"storageSystemUri,omitempty"`
	StorageVolumeUri utils.Nstring `json:"storageVolumeUri,omitempty"`
}

type StorageAttachmentsListV2 added in v1.0.0

type StorageAttachmentsListV2 struct {
	Total       int                 `json:"total,omitempty"`       // "total": 1,
	Count       int                 `json:"count,omitempty"`       // "count": 1,
	Start       int                 `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring       `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring       `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring       `json:"uri,omitempty"`         // "uri": "/rest/storage-pools?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []StorageAttachment `json:"members,omitempty"`     // "members":[]
}

type StoragePath

type StoragePath struct {
	ConnectionID      int      `json:"connectionId,omitempty"`      // connectionId (required), The ID of the connection associated with this storage path. Use GET /rest/server-profiles/available-networks to retrieve the list of available networks.
	IsEnabled         bool     `json:"isEnabled"`                   // isEnabled (required), Identifies whether the storage path is enabled.
	Status            string   `json:"status,omitempty"`            // status (read only), The overall health status of the storage path.
	StorageTargetType string   `json:"storageTargetType,omitempty"` // storageTargetType ('Auto', 'TargetPorts')
	StorageTargets    []string `json:"storageTargets,omitempty"`    // only set when storageTargetType is TargetPorts
}

StoragePath storage path host-to-target paths Use GET /rest/storage-systems/{arrayid}/managedPorts?query="expectedNetworkUri EQ '/rest/fc-networks/{netowrk-id}'" to retrieve the storage targets for the associated network.

func (StoragePath) Clone

func (c StoragePath) Clone() StoragePath

Clone -

type StoragePathV2

type StoragePathV2 struct {
	ConnectionID      int      `json:"connectionId,omitempty"`      // connectionId The ID of the connection associated with this storage path. Use GET /rest/server-profiles/available-networks to retrieve the list of available networks. integer required
	IsEnabled         bool     `json:"isEnabled,omitempty"`         // isEnabled Identifies whether the storage path is enabled. Boolean required
	Status            string   `json:"status,omitempty"`            // status The overall health status of the storage path. string read only
	StorageTargetType string   `json:"storageTargetType,omitempty"` // storageTargetType If set to Auto, the storage system will automatically identify the storage targets. In this case, set the storageTargets field to an empty array. If set to TargetPorts, the storage targets can be manually specified in the storageTargets field using comma-separated strings.
	StorageTargets    []string `json:"storageTargets,omitempty"`    // The WWPNs (World Wide Port Names) of the targets on the storage system. If storageTargetType is set to Auto, the storage system will automatically select the target ports, in which case the storageTargets field is not needed and should be set to an empty array. If storageTargetType is set to TargetPorts, then the the storageTargets field should be an array of comma-separated strings representing the WWPNs intended to be used to connect with the storage system. Use GET /rest/storage-systems/{arrayid}/managedPorts?query="expectedNetworkUri EQ '/rest/fc-networks/{netowrk-id}'" to retrieve the storage targets for the associated network.
}

StoragePathV2 - A list of host-to-target path associations.

type StoragePoolV3 added in v1.0.0

type StoragePoolV3 struct {
	Category                 string                    `json:"category,omitempty"`
	Created                  string                    `json:"created,omitempty"`
	Description              string                    `json:"description,omitempty"`
	ETAG                     string                    `json:"eTag,omitempty"`
	Name                     string                    `json:"name,omitempty"`
	State                    string                    `json:"state,omitempty"`
	Status                   string                    `json:"status,omitempty"`
	Type                     string                    `json:"type,omitempty"`
	URI                      utils.Nstring             `json:"uri,omitempty"`
	AllocatedCapacity        string                    `json:"allocatedCapacity,omitempty"`
	InitialScopeUris         utils.Nstring             `json:"initialScopeUris,omitempty"`
	DeviceSpecificAttributes *DeviceSpecificAttributes `json:"deviceSpecificAttributes,omitempty"`
	StorageSystemUri         utils.Nstring             `json:"storageSystemUri,omitempty"`
	TotalCapacity            string                    `json:"totalCapacity,omitempty"`
	FreeCapacity             string                    `json:"freeCapacity,omitempty"`
	IsManaged                bool                      `json:"isManaged"`
}

type StoragePoolsListV3 added in v1.0.0

type StoragePoolsListV3 struct {
	Total       int             `json:"total,omitempty"`       // "total": 1,
	Count       int             `json:"count,omitempty"`       // "count": 1,
	Start       int             `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring   `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring   `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring   `json:"uri,omitempty"`         // "uri": "/rest/storage-pools?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []StoragePoolV3 `json:"members,omitempty"`     // "members":[]
}

type StorageSystemDeviceSpecificAttributes added in v1.0.0

type StorageSystemDeviceSpecificAttributes struct {
	Firmware      string         `json:"firmware,omitempty"`
	Model         string         `json:"model,omitempty"`
	ManagedPools  []ManagedPools `json:"managedPools,omitempty"`
	ManagedDomain string         `json:"managedDomain,omitempty"`
}

type StorageSystemV4 added in v1.0.0

type StorageSystemV4 struct {
	Hostname                              string                                 `json:"hostname,omitempty"`
	Username                              string                                 `json:"username,omitempty"`
	Password                              string                                 `json:"password,omitempty"`
	Credentials                           *Credentials                           `json:"credentials,omitempty"`
	Category                              string                                 `json:"category,omitempty"`
	ETAG                                  string                                 `json:"eTag,omitempty"`
	Name                                  string                                 `json:"name,omitempty"`
	Description                           string                                 `json:"description,omitempty"`
	State                                 string                                 `json:"state,omitempty"`
	Status                                string                                 `json:"status,omitempty"`
	Type                                  string                                 `json:"type,omitempty"`
	URI                                   utils.Nstring                          `json:"uri,omitempty"`
	Family                                string                                 `json:"family,omitempty"`
	StoragePoolsUri                       utils.Nstring                          `json:"storagePoolsUri,omitempty"`
	TotalCapacity                         string                                 `json:"totalCapacity,omitempty"`
	Mode                                  string                                 `json:"mode,omitempty"`
	Ports                                 []Ports                                `json:"ports,omitempty"`
	StorageSystemDeviceSpecificAttributes *StorageSystemDeviceSpecificAttributes `json:"deviceSpecificAttributes,omitempty"`
}

type StorageSystemsListV4 added in v1.0.0

type StorageSystemsListV4 struct {
	Total       int               `json:"total,omitempty"`       // "total": 1,
	Count       int               `json:"count,omitempty"`       // "count": 1,
	Start       int               `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring     `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring     `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring     `json:"uri,omitempty"`         // "uri": "/rest/storage-systems"
	Members     []StorageSystemV4 `json:"members,omitempty"`     // "members":[]
}

type StorageVolumeV3 added in v0.8.1

type StorageVolumeV3 struct {
	Category                  string                    `json:"category,omitempty"`
	Created                   string                    `json:"created,omitempty"`
	Description               string                    `json:"description,omitempty"`
	ETAG                      string                    `json:"eTag,omitempty"`
	Name                      string                    `json:"name,omitempty"`
	State                     string                    `json:"state,omitempty"`
	Status                    string                    `json:"status,omitempty"`
	Type                      string                    `json:"type,omitempty"`
	URI                       utils.Nstring             `json:"uri,omitempty"`
	DeviceVolumeName          string                    `json:"deviceVolumeName,omitempty"`
	RequestingRefresh         bool                      `json:"requestingRefresh,omitempty"`
	AllocatedCapacity         string                    `json:"allocatedCapacity,omitempty"`
	InitialScopeUris          utils.Nstring             `json:"initialScopeUris,omitempty"`
	DeviceSpecificAttributes  *DeviceSpecificAttributes `json:"deviceSpecificAttributes,omitempty"`
	VolumeTemplateUri         utils.Nstring             `json:"volumeTemplateUri,omitempty"`
	IsShareable               bool                      `json:"isShareable,omitempty"`
	StoragePoolUri            utils.Nstring             `json:"storagePoolUri,omitempty"`
	StorageSystemUri          utils.Nstring             `json:"storageSystemUri,omitempty"`
	ProvisionedCapacity       string                    `json:"provisionedCapacity,omitempty"`
	Properties                *Properties               `json:"properties,omitempty"`
	TemplateURI               utils.Nstring             `json:"templateURI,omitempty"`
	IsPermanent               bool                      `json:"isPermanent,omitempty"`
	ProvisioningTypeForUpdate string                    `json:"provisioningType,omitempty"`
}

type StorageVolumesListV3 added in v0.8.1

type StorageVolumesListV3 struct {
	Total       int               `json:"total,omitempty"`       // "total": 1,
	Count       int               `json:"count,omitempty"`       // "count": 1,
	Start       int               `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring     `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring     `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring     `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []StorageVolumeV3 `json:"members,omitempty"`     // "members":[]
}

type SubPort added in v1.0.0

type SubPort struct {
	PortNumber       int    `json:"portNumber"`
	PortStatus       string `json:"portStatus"`
	PortStatusReason string `json:"portStatusReason"`
}

type SupportSettings added in v1.0.0

type SupportSettings struct {
	Destination         string `json:"destination,omitempty"`         // "destination": "",
	SupportCurrentState string `json:"supportCurrentState,omitempty"` // "supportCurrentState": "Unknown",

}

type SwitchMapEntry

type SwitchMapEntry struct {
	PermittedSwitchTypeUri utils.Nstring   `json:"permittedSwitchTypeUri"` //"permittedSwitchTypeUri": "/rest/switch-types/a2bc8f42-8bb8-4560-b80f-6c3c0e0d66e0",
	LogicalLocation        LogicalLocation `json:"logicalLocation"`
}

type SwitchMapTemplate

type SwitchMapTemplate struct {
	SwitchMapEntryTemplates []SwitchMapEntry `json:"switchMapEntryTemplates"`
}

type SwitchType

type SwitchType struct {
	Name string        `json:"name,omitempty"` // "name": "Ethernet Network 1",
	URI  utils.Nstring `json:"uri"`            //"uri": "/rest/switch-types/a2bc8f42-8bb8-4560-b80f-6c3c0e0d66e0"
}

type SwitchTypeList

type SwitchTypeList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/server-profiles?filter=connectionTemplateUri%20matches%7769cae0-b680-435b-9b87-9b864c81657fsort=name:asc"
	Members     []SwitchType  `json:"members,omitempty"`     // "members":[]
}

type Task

type Task struct {
	Type                    string             `json:"type,omitempty"`                    // "type": "TaskResourceV2",
	Data                    TaskData           `json:"data,omitempty"`                    // "data": null,
	Category                string             `json:"category,omitempty"`                // "category": "tasks",
	Hidden                  bool               `json:"hidden,omitempty"`                  // "hidden": false,
	StateReason             string             `json:"stateReason,omitempty"`             // "stateReason": null,
	User                    string             `json:"User,omitempty"`                    // "taskType": "User",
	AssociatedRes           AssociatedResource `json:"associatedResource,omitempty"`      // "associatedResource": { },
	PercentComplete         int                `json:"percentComplete,omitempty"`         // "percentComplete": 0,
	AssociatedTaskURI       utils.Nstring      `json:"associatedTaskUri,omitempty"`       // "associatedTaskUri": null,
	CompletedSteps          int                `json:"completedSteps,omitempty"`          // "completedSteps": 0,
	ComputedPercentComplete int                `json:"computedPercentComplete,omitempty"` //     "computedPercentComplete": 0,
	ExpectedDuration        int                `json:"expectedDuration,omitempty"`        // "expectedDuration": 300,
	ParentTaskURI           utils.Nstring      `json:"parentTaskUri,omitempty"`           // "parentTaskUri": null,
	ProgressUpdates         []ProgressUpdate   `json:"progressUpdates,omitempty"`         // "progressUpdates": [],
	TaskErrors              []TaskError        `json:"taskErrors,omitempty"`              // "taskErrors": [],
	TaskOutput              []string           `json:"taskOutput,omitempty"`              // "taskOutput": [],
	TaskState               string             `json:"taskState,omitempty"`               // "taskState": "New",
	TaskStatus              string             `json:"taskStatus,omitempty"`              // "taskStatus": "Power off Server: se05, bay 16",
	TaskType                string             `json:"taskType,omitempty"`
	TotalSteps              int                `json:"totalSteps,omitempty"`    // "totalSteps": 0,
	UserInitiated           bool               `json:"userInitiated,omitempty"` // "userInitiated": true,
	Name                    string             `json:"name,omitempty"`          // "name": "Power off",
	Owner                   string             `json:"owner,omitempty"`         // "owner": "wenlock",
	ETAG                    string             `json:"eTag,omitempty"`          // "eTag": "0",
	Created                 string             `json:"created,omitempty"`       // "created": "2015-09-07T03:25:54.844Z",
	Modified                string             `json:"modified,omitempty"`      // "modified": "2015-09-07T03:25:54.844Z",
	URI                     utils.Nstring      `json:"uri,omitempty"`           // "uri": "/rest/tasks/145F808A-A8DD-4E1B-8C86-C2379C97B3B2"
	TaskIsDone              bool               // when true, task are done
	Timeout                 int                // time before timeout on Executor
	WaitTime                time.Duration      // time between task checks
	Client                  *OVClient
}

Task structure

func (*Task) GetCurrentTaskStatus

func (t *Task) GetCurrentTaskStatus() error

GetCurrentTaskStatus - Get the current status

func (*Task) GetLastStatusUpdate

func (t *Task) GetLastStatusUpdate() string

GetLastStatusUpdate - get last detail updates from task

func (*Task) NewProfileTask

func (t *Task) NewProfileTask(c *OVClient) *Task

NewProfileTask - Create New Task

func (*Task) ResetTask

func (t *Task) ResetTask()

ResetTask - reset the power task back to off

func (*Task) Wait

func (t *Task) Wait() error

Wait - wait on task to complete

type TaskData

type TaskData struct {
	TaskCategory string `json:"task-category,omitempty"`
}

type TaskError

type TaskError struct {
	Data               map[string]interface{} `json:"data,omitempty"`               // "data":{},
	ErrorCode          string                 `json:"errorCode,omitempty"`          // "errorCode":"MacTypeDiffGlobalMacType",
	Details            string                 `json:"details,omitempty"`            // "details":"",
	NestedErrors       []TaskError            `json:"nestedErrors,omitempty"`       // "nestedErrors":[],
	Message            string                 `json:"message,omitempty"`            // "message":"When macType is not user defined, mac type should be same as the global Mac assignment Virtual."
	ErrorSource        utils.Nstring          `json:"errorSource,omitempty"`        // "errorSource":null,
	RecommendedActions []string               `json:"recommendedActions,omitempty"` // "recommendedActions":["Verify parameters and try again."],
}

TaskError struct

type TaskServer

type TaskServer struct {
	Name string `json:"name,omitempty"` // "Name to server
	URI  string `json:"uri,omitempty"`  // "URI to server
}

TaskServer Example: {"name":"se05, bay 14", "uri":"/rest/server-hardware/30373237-3132-4D32-3235-303930524D52"}

type TaskState

type TaskState int

TaskState task state

const (
	T_COMPLETED TaskState = 1 + iota
	T_ERROR
	T_INERRUPTED
	T_KILLED
	T_NEW
	T_PENDING
	T_RUNNING
	T_STARTING
	T_STOPPING
	T_SUSPENDED
	T_TERMINATED
	T_UNKNOWN
	T_WARNING
)

func (TaskState) Equal

func (ts TaskState) Equal(s string) bool

Equal for type

func (TaskState) String

func (ts TaskState) String() string

String for type

type TaskType

type TaskType int

TaskType - task type

const (
	T_APPLIANCE TaskType = 1 + iota
	T_BACKGROUND
	T_USER
)

func (TaskType) Equal

func (tt TaskType) Equal(s string) bool

Equal type

func (TaskType) String

func (tt TaskType) String() string

String return

type TasksList added in v1.0.0

type TasksList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         utils.Nstring `json:"uri,omitempty"`         // "uri": "/rest/tasks/7769cae0-b680-435b-9b87-9b864c81657"
	Members     []Task        `json:"members,omitempty"`     // "members":[]
}

type TelemetryConfiguration

type TelemetryConfiguration struct {
	Category        string        `json:"category,omitempty"`        // "category": "telemetry-configuration",
	Created         string        `json:"created,omitempty"`         // "created": "20150831T154835.250Z",
	Description     utils.Nstring `json:"description,omitempty"`     // "description": null,
	ETAG            string        `json:"eTag,omitempty"`            // "eTag": "1441036118675/8",
	EnableTelemetry *bool         `json:"enableTelemetry,omitempty"` // "enableTelemetry": false,
	Modified        string        `json:"modified,omitempty"`        // "modified": "20150831T154835.250Z",
	Name            string        `json:"name,omitempty"`            // "name": "telemetry configuration",
	SampleCount     int           `json:"sampleCount,omitempty"`     // "sampleCount": 12
	SampleInterval  int           `json:"sampleInterval,omitempty"`  // "sampleInterval": 300,
	State           string        `json:"state,omitempty"`           // "state": "Normal",
	Status          string        `json:"status,omitempty"`          // "status": "Critical",
	Type            string        `json:"type,omitempty"`            // "type": "telemetry-configuration",
	URI             utils.Nstring `json:"uri,omitempty"`             // "uri": null
}

type TimeOut

type TimeOut struct {
	IdleTimeout int64 `json:"idleTimeout"`
}

TimeOut structure

type TrapDestination

type TrapDestination struct {
	CommunityString    string   `json:"communityString,omitempty"`    //"communityString": "public",
	EnetTrapCategories []string `json:"enetTrapCategories,omitempty"` //"enetTrapCategories": ["PortStatus", "Other"],
	FcTrapCategories   []string `json:"fcTrapCategories,omitempty"`   //"fcTrapCategories": ["PortStatus", "Other"]
	TrapDestination    string   `json:"trapDestination,omitempty"`    //"trapDestination": "127.0.0.1",
	TrapFormat         string   `json:"trapFormat,omitempty"`         //"trapFormat", "SNMPv1",
	TrapSeverities     []string `json:"trapSeverities,omitempty"`     //"trapSeverities": "Info",
	VcmTrapCategories  []string `json:"vcmTrapCategories,omitempty"`  // "vcmTrapCategories": ["Legacy"],
}

type UplinkSet

type UplinkSet struct {
	Name                           string            `json:"name,omitempty"`                           // "name": "Uplink77",
	LogicalInterconnectURI         utils.Nstring     `json:"logicalInterconnectUri,omitempty"`         // "logicalInterconnectUri": "/rest/logical-interconnects/7769cae0-b680-435b-9b87-9b864c81657f",
	NetworkURIs                    []utils.Nstring   `json:"networkUris,omitempty"`                    // "networkUris": "/rest/ethernet-networks/e2f0031b-52bd-4223-9ac1-d91cb519d548",
	FcNetworkURIs                  []utils.Nstring   `json:"fcNetworkUris"`                            // "fcNetworkUris": "[]",
	FcoeNetworkURIs                []utils.Nstring   `json:"fcoeNetworkUris"`                          // "fcoeNetworkUris": "[]",
	PortConfigInfos                []PortConfigInfos `json:"portConfigInfos"`                          // "portConfigInfos": "[]",
	ConnectionMode                 string            `json:"connectionMode,omitempty"`                 // "connectionMode":"Auto",
	NetworkType                    string            `json:"networkType,omitempty"`                    // "networkType":"Ethernet",
	EthernetNetworkType            string            `json:"ethernetNetworkType,omitempty"`            // "ethernetNetworkType":"Tagged",
	ManualLoginRedistributionState string            `json:"manualLoginRedistributionState,omitempty"` //"manualLoginRedistributionState":"NotSupported"
	URI                            utils.Nstring     `json:"uri,omitempty"`                            // "uri": "/rest/uplink-sets/"e2f0031b-52bd-4223-9ac1-d91cb519d548",
	Type                           string            `json:"type,omitempty"`                           // "type": "uplink-setV4",
	Category                       string            `json:"category,omitempty"`                       //"category":"uplink-sets",
	Created                        string            `json:"created,omitempty"`                        //"created":"20150831T154835.250Z",
	Description                    utils.Nstring     `json:"description,omitempty"`                    // "description": "Uplink-set 1",
	Etag                           string            `json:"eTag,omitempty"`                           // "eTag": "1441036118675/8",
	Modified                       string            `json:"modified,omitempty"`                       // "modified": "20150831T154835.250Z",
	LacpTimer                      string            `json:"lacpTimer,omitempty"`                      // "lacpTimer": "Long",
	FcMode                         string            `json:"mode,omitempty"`                           // "mode": "TRUNK",
	ExpectedNeighbor               *ExpectedNeighbor `json:"expectedNeighbor,omitempty"`               //"expectedNeighbor": ""
	NativeNetworkUri               utils.Nstring     `json:"nativeNetworkUri,omitempty"`               // "nativeNetworkUri": null,
	PrimaryPortLocation            *Location         `json:"primaryPort,omitempty"`                    // "primaryPort": {...},
	Reachability                   string            `json:"reachability,omitempty"`                   // "reachability": "Reachable",
	State                          string            `json:"state,omitempty"`                          // "state": "Normal",
	Status                         string            `json:"status,omitempty"`                         // "status": "Critical",

}

type UplinkSetList added in v1.0.0

type UplinkSetList struct {
	Total       int           `json:"total,omitempty"`       // "total": 1,
	Count       int           `json:"count,omitempty"`       // "count": 1,
	Start       int           `json:"start,omitempty"`       // "start": 0,
	PrevPageURI utils.Nstring `json:"prevPageUri,omitempty"` // "prevPageUri": null,
	NextPageURI utils.Nstring `json:"nextPageUri,omitempty"` // "nextPageUri": null,
	URI         string        `json:"uri,omitempty"`         // "uri": "/rest/uplink-sets?start=0&count=10"
	Members     []UplinkSet   `json:"members,omitempty"`     // "members":[]
}

type UplinkSets added in v1.0.0

type UplinkSets struct {
	EthernetNetworkType    string                  `json:"ethernetNetworkType,omitempty"` // "ethernetNetworkType": "Tagged",
	LacpTimer              string                  `json:"lacpTimer,omitempty"`           // "lacpTimer": "Long",
	LogicalPortConfigInfos []LogicalPortConfigInfo `json:"logicalPortConfigInfos"`        // "logicalPortConfigInfos": {...},
	Mode                   string                  `json:"mode,omitempty"`                // "mode": "Auto",
	FcMode                 string                  `json:"fcMode,omitempty"`              //"fcMode": "NA",
	Name                   string                  `json:"name,omitempty"`                // "name": "Uplink 1",
	NativeNetworkUri       utils.Nstring           `json:"nativeNetworkUri,omitempty"`    // "nativeNetworkUri": null,
	NetworkType            string                  `json:"networkType,omitempty"`         // "networkType": "Ethernet",
	NetworkUris            []utils.Nstring         `json:"networkUris"`                   // "networkUris": ["/rest/ethernet-networks/f1e38895-721b-4204-8395-ae0caba5e163"]
	PrimaryPort            *LogicalLocation        `json:"primaryPort,omitempty"`         // "primaryPort": {...},
	Reachability           string                  `json:"reachability,omitempty"`        // "reachability": "Reachable",
}

type VirtualPortv200

type VirtualPortv200 struct {
	CurrentAllocatedVirtualFunctionCount int    `json:"currentAllocatedVirtualFunctionCount,omitempty"` // currentAllocatedVirtualFunctionCount The number of virtual functions presently allocated to this virtual port. integer read only
	MAC                                  string `json:"mac,omitempty"`                                  // mac The mac address assigned to this virtual port. string read only
	PortFunction                         string `json:"portFunction,omitempty"`                         // portFunction The function identifier for this FlexNIC, such as a, b, c or d. string read only
	PortNumber                           int    `json:"portNumber,omitempty"`                           // portNumber The port number assigned to this virtual port. integer read only
	WWNN                                 string `json:"WWNN,omitempty"`                                 // wwnn The world wide node name assigned to this virtual port. string read only
	WWPN                                 string `json:"WWPN,omitempty"`                                 // wwpn The world wide port name assigned to this virtual port. string read only
}

VirtualPortv200 -

type VolumeAttachment

type VolumeAttachment struct {
	VolumeAttachmentV3
	ID                             int           `json:"id,omitempty"`                             // id, The ID of the attached storage volume.
	LUN                            string        `json:"lun,omitempty"`                            // lun, The logical unit number.
	LUNType                        string        `json:"lunType,omitempty"`                        // lunType(required), The logical unit number type: Auto or Manual.
	Permanent                      bool          `json:"permanent"`                                // permanent, If true, indicates that the volume will persist when the profile is deleted. If false, then the volume will be deleted when the profile is deleted.
	State                          string        `json:"state,omitempty"`                          // state(read only), current state of the attachment
	Status                         string        `json:"status,omitempty"`                         // status(read only), The current status of the attachment.
	StoragePaths                   []StoragePath `json:"storagePaths,omitempty"`                   // A list of host-to-target path associations.
	VolumeDescription              string        `json:"volumeDescription,omitempty"`              // The description of the storage volume.
	VolumeName                     string        `json:"volumeName,omitempty"`                     // The name of the volume. This attribute is required when creating a volume.
	VolumeProvisionType            string        `json:"volumeProvisionType,omitempty"`            // The provisioning type of the new volume: Thin or Thick. This attribute is required when creating a volume.
	VolumeProvisionedCapacityBytes string        `json:"volumeProvisionedCapacityBytes,omitempty"` // The requested provisioned capacity of the storage volume in bytes. This attribute is required when creating a volume.
	VolumeShareable                bool          `json:"volumeShareable"`                          // Identifies whether the storage volume is shared or private. If false, then the volume will be private. If true, then the volume will be shared. This attribute is required when creating a volume.
	VolumeStoragePoolURI           utils.Nstring `json:"volumeStoragePoolUri,omitempty"`           // The URI of the storage pool associated with this volume attachment's volume. Use GET /rest/server-profiles/available-storage-systems to retrieve the URI of the storage pool associated with a volume.
	VolumeStorageSystemURI         utils.Nstring `json:"volumeStorageSystemUri,omitempty"`         // The URI of the storage system associated with this volume attachment. Use GET /rest/server-profiles/available-storage-systems to retrieve the URI of the storage system associated with a volume.
	VolumeURI                      utils.Nstring `json:"volumenUri,omitempty"`                     // The URI of the storage volume associated with this volume attachment. Use GET /rest/server-profiles/available-storage-systems to retrieve the URIs of available storage volumes.
}

VolumeAttachment volume attachment

func (VolumeAttachment) Clone

Clone clone volume attachment for submits

type VolumeAttachmentStateV2

type VolumeAttachmentStateV2 int

VolumeAttachmentStateV2 -

const (
	VAAttachFailed VolumeAttachmentStateV2 = 1 + iota
	VAAttached
	VAAttaching
	VACreating
	VADeleteFailed
	VADeleted
	VADeleting
	VAReserveFailed
	VAReserved
	VAReserving
	VAUpdating
	VAUserDeleted
	VAVolumeCreateFailed
	VAVolumeCreating
)

Constants for VolumeAttachmentStateV2

func (VolumeAttachmentStateV2) Equal

func (o VolumeAttachmentStateV2) Equal(s string) bool

Equal - helper

func (VolumeAttachmentStateV2) String

func (o VolumeAttachmentStateV2) String() string

String - helper

type VolumeAttachmentV2

type VolumeAttachmentV2 struct {
	ID                             int             `json:"id,omitempty"`                             // id The ID of the attached storage volume. integer
	LUN                            string          `json:"lun,omitempty"`                            // lun The logical unit number. string
	LUNType                        string          `json:"lunType,omitempty"`                        // lunType The logical unit number type: Auto or Manual. string required
	Permanent                      bool            `json:"permanent"`                                // permanent If true, indicates that the volume will persist when the profile is deleted. If false, then the volume will be deleted when the profile is deleted. Boolean
	State                          string          `json:"state,omitempty"`                          //state The current state of the attachment. VolumeAttachmentStateV2 read only
	Status                         string          `json:"status,omitempty"`                         // status The current status of the attachment. string read only
	StoragePaths                   []StoragePathV2 `json:"storagePaths,omitempty"`                   // A list of host-to-target path associations.
	VolumeDescription              string          `json:"volumeDescription,omitempty"`              // volumeDescription The description of the storage volume. string
	VolumeName                     string          `json:"volumeName,omitempty"`                     // volumeName The name of the volume. This attribute is required when creating a volume. string
	VolumeProvisionType            string          `json:"volumeProvisionType,omitempty"`            // volumeProvisionType The provisioning type of the new volume: Thin or Thick. This attribute is required when creating a volume. string
	VolumeProvisionedCapacityBytes string          `json:"volumeProvisionedCapacityBytes,omitempty"` // volumeProvisionedCapacityBytes The requested provisioned capacity of the storage volume in bytes. This attribute is required when creating a volume. string
	VolumeShareable                bool            `json:"volumeShareable"`                          // volumeShareable Identifies whether the storage volume is shared or private. If false, then the volume will be private. If true, then the volume will be shared. This attribute is required when creating a volume. Boolean
	VolumeStoragePoolURI           utils.Nstring   `json:"volumeStoragePoolUri,omitempty"`           // volumeStoragePoolUri The URI of the storage pool associated with this volume attachment's volume. Use GET /rest/server-profiles/available-storage-systems to retrieve the URI of the storage pool associated with a volume. string
	VolumeStorageSystemURI         utils.Nstring   `json:"volumeStorageSystemUri,omitempty"`         // volumeStorageSystemUri The URI of the storage system associated with this volume attachment. Use GET /rest/server-profiles/available-storage-systems to retrieve the URI of the storage system associated with a volume. string Format URI
	VolumeURI                      utils.Nstring   `json:"volumeUri,omitempty"`                      // volumeUri The URI of the storage volume associated with this volume attachment. Use GET /rest/server-profiles/available-storage-systems to retrieve the URIs of available storage volumes. string Format URI
}

VolumeAttachmentV2 The list of storage volume attachments.

type VolumeAttachmentV3 added in v0.8.2

type VolumeAttachmentV3 struct {
	IsBootVolume bool `json:"isBootVolume,omitempty"` // "isBootVolume": true,
}

Jump to

Keyboard shortcuts

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