client

package module
v0.0.0-...-fd2ad07 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 20 Imported by: 12

README

Go API client for client

Partial Redfish OAPI specification for a limited client

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.0.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

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

import "./client"

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi EjectVirtualMedia Post /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia
DefaultApi GetManager Get /redfish/v1/Managers/{managerId}
DefaultApi GetManagerVirtualMedia Get /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}
DefaultApi GetRoot Get /redfish/v1
DefaultApi GetSystem Get /redfish/v1/Systems/{systemId}
DefaultApi InsertVirtualMedia Post /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.InsertMedia
DefaultApi ListManagerVirtualMedia Get /redfish/v1/Managers/{managerId}/VirtualMedia
DefaultApi ListManagers Get /redfish/v1/Managers
DefaultApi ListSystems Get /redfish/v1/Systems
DefaultApi ResetSystem Post /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset
DefaultApi SetSystem Patch /redfish/v1/Systems/{systemId}

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

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

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

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

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

Types

type APIClient

type APIClient struct {
	DefaultApi *DefaultApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Redfish OAPI specification API v0.0.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Boot

type Boot struct {
	BootSourceOverrideEnabled                      BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"`
	BootSourceOverrideTarget                       BootSource                `json:"BootSourceOverrideTarget,omitempty"`
	BootSourceOverrideTargetRedfishAllowableValues []BootSource              `json:"BootSourceOverrideTarget@Redfish.AllowableValues,omitempty"`
}

type BootSource

type BootSource string
const (
	BOOTSOURCE_NONE           BootSource = "None"
	BOOTSOURCE_PXE            BootSource = "Pxe"
	BOOTSOURCE_FLOPPY         BootSource = "Floppy"
	BOOTSOURCE_CD             BootSource = "Cd"
	BOOTSOURCE_USB            BootSource = "Usb"
	BOOTSOURCE_HDD            BootSource = "Hdd"
	BOOTSOURCE_BIOS_SETUP     BootSource = "BiosSetup"
	BOOTSOURCE_UTILITIES      BootSource = "Utilities"
	BOOTSOURCE_DIAGS          BootSource = "Diags"
	BOOTSOURCE_UEFI_SHELL     BootSource = "UefiShell"
	BOOTSOURCE_UEFI_TARGET    BootSource = "UefiTarget"
	BOOTSOURCE_SD_CARD        BootSource = "SDCard"
	BOOTSOURCE_UEFI_HTTP      BootSource = "UefiHttp"
	BOOTSOURCE_REMOTE_DRIVE   BootSource = "RemoteDrive"
	BOOTSOURCE_UEFI_BOOT_NEXT BootSource = "UefiBootNext"
)

List of BootSource

type BootSourceOverrideEnabled

type BootSourceOverrideEnabled string
const (
	BOOTSOURCEOVERRIDEENABLED_ONCE       BootSourceOverrideEnabled = "Once"
	BOOTSOURCEOVERRIDEENABLED_CONTINUOUS BootSourceOverrideEnabled = "Continuous"
)

List of BootSourceOverrideEnabled

type Collection

type Collection struct {
	// context
	OdataContext string `json:"@odata.context,omitempty"`
	// etag
	OdataEtag string `json:"@odata.etag,omitempty"`
	// id
	OdataId string `json:"@odata.id"`
	// type
	OdataType string `json:"@odata.type"`
	// description
	Description *string `json:"Description,omitempty"`
	// Contains the members of this collection.
	Members []IdRef `json:"Members"`
	// The number of items in a collection.
	MembersodataCount int32 `json:"Members@odata.count,omitempty"`
	// The URI to the resource containing the next set of partial members.
	MembersodataNextLink string `json:"Members@odata.nextLink,omitempty"`
	// The name of the resource.
	Name string `json:"Name"`
}

A Collection of ComputerSystem resource instances.

type ComputerSystem

type ComputerSystem struct {
	// The name of the resource.
	Id string `json:"Id,omitempty"`
	// The name of the resource.
	Name string `json:"Name"`
	// redfish version
	RedfishVersion string `json:"RedfishVersion,omitempty"`
	UUID           string `json:"UUID,omitempty"`
	// The type of a resource.
	OdataType string `json:"@odata.type"`
	// The unique identifier for a resource.
	OdataId string `json:"@odata.id"`
	// The OData description of a payload.
	OdataContext string `json:"@odata.context,omitempty"`
	// redfish copyright
	RedfishCopyright   string                `json:"@Redfish.Copyright,omitempty"`
	Bios               IdRef                 `json:"Bios,omitempty"`
	Processors         IdRef                 `json:"Processors,omitempty"`
	Memory             IdRef                 `json:"Memory,omitempty"`
	EthernetInterfaces IdRef                 `json:"EthernetInterfaces,omitempty"`
	SimpleStorage      IdRef                 `json:"SimpleStorage,omitempty"`
	PowerState         PowerState            `json:"PowerState,omitempty"`
	Status             Status                `json:"Status,omitempty"`
	Boot               Boot                  `json:"Boot,omitempty"`
	ProcessorSummary   ProcessorSummary      `json:"ProcessorSummary,omitempty"`
	MemorySummary      MemorySummary         `json:"MemorySummary,omitempty"`
	IndicatorLED       IndicatorLed          `json:"IndicatorLED,omitempty"`
	Links              SystemLinks           `json:"Links,omitempty"`
	Actions            ComputerSystemActions `json:"Actions,omitempty"`
}

Root redfish path.

type ComputerSystemActions

type ComputerSystemActions struct {
	ComputerSystemReset ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"`
}

type ComputerSystemReset

type ComputerSystemReset struct {
	// The unique identifier for a resource.
	Target                          string      `json:"target,omitempty"`
	ResetTypeRedfishAllowableValues []ResetType `json:"ResetType@Redfish.AllowableValues,omitempty"`
}

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

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

type ConnectedVia

type ConnectedVia string
const (
	CONNECTEDVIA_NOT_CONNECTED ConnectedVia = "NotConnected"
	CONNECTEDVIA_URI           ConnectedVia = "URI"
	CONNECTEDVIA_APPLET        ConnectedVia = "Applet"
	CONNECTEDVIA_OEM           ConnectedVia = "Oem"
)

List of ConnectedVia

type DefaultApiService

type DefaultApiService service

func (*DefaultApiService) EjectVirtualMedia

func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string, body map[string]interface{}) (RedfishError, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param managerId ID of resource
  • @param virtualMediaId ID of resource
  • @param body

@return RedfishError

func (*DefaultApiService) GetManager

func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) (Manager, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param managerId ID of resource

@return Manager

func (*DefaultApiService) GetManagerVirtualMedia

func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string) (VirtualMedia, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param managerId ID of resource
  • @param virtualMediaId ID of resource

@return VirtualMedia

func (*DefaultApiService) GetRoot

DefaultApiService

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

@return Root

func (*DefaultApiService) GetSystem

func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (ComputerSystem, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param systemId ID of resource

@return ComputerSystem

func (*DefaultApiService) InsertVirtualMedia

func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string, insertMediaRequestBody InsertMediaRequestBody) (RedfishError, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param managerId ID of resource
  • @param virtualMediaId ID of resource
  • @param insertMediaRequestBody

@return RedfishError

func (*DefaultApiService) ListManagerVirtualMedia

func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, managerId string) (Collection, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param managerId ID of resource

@return Collection

func (*DefaultApiService) ListManagers

DefaultApiService

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

@return Collection

func (*DefaultApiService) ListSystems

DefaultApiService

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

@return Collection

func (*DefaultApiService) ResetSystem

func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId string, resetRequestBody ResetRequestBody) (RedfishError, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param computerSystemId
  • @param resetRequestBody

@return RedfishError

func (*DefaultApiService) SetSystem

func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string, computerSystem ComputerSystem) (ComputerSystem, *_nethttp.Response, error)

DefaultApiService

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param systemId ID of resource
  • @param computerSystem

@return ComputerSystem

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type Health

type Health string
const (
	HEALTH_OK       Health = "OK"
	HEALTH_WARNING  Health = "Warning"
	HEALTH_CRITICAL Health = "Critical"
)

List of Health

type IdRef

type IdRef struct {
	// The unique identifier for a resource.
	OdataId string `json:"@odata.id,omitempty"`
}

A reference to a resource.

type IndicatorLed

type IndicatorLed string
const (
	INDICATORLED_UNKNOWN  IndicatorLed = "Unknown"
	INDICATORLED_LIT      IndicatorLed = "Lit"
	INDICATORLED_BLINKING IndicatorLed = "Blinking"
	INDICATORLED_OFF      IndicatorLed = "Off"
)

List of IndicatorLED

type InsertMediaRequestBody

type InsertMediaRequestBody struct {
	Image                string               `json:"Image"`
	Inserted             bool                 `json:"Inserted,omitempty"`
	Password             string               `json:"Password,omitempty"`
	TransferMethod       TransferMethod       `json:"TransferMethod,omitempty"`
	TransferProtocolType TransferProtocolType `json:"TransferProtocolType,omitempty"`
	UserName             string               `json:"UserName,omitempty"`
	WriteProtected       bool                 `json:"WriteProtected,omitempty"`
}

type Manager

type Manager struct {
	// The name of the resource.
	Id string `json:"Id,omitempty"`
	// The name of the resource.
	Name                  string `json:"Name"`
	UUID                  string `json:"UUID,omitempty"`
	ServiceEntryPointUUID string `json:"ServiceEntryPointUUID,omitempty"`
	// The type of a resource.
	OdataType string `json:"@odata.type"`
	// The unique identifier for a resource.
	OdataId string `json:"@odata.id"`
	// The OData description of a payload.
	OdataContext string `json:"@odata.context,omitempty"`
	// redfish copyright
	RedfishCopyright string      `json:"@Redfish.Copyright,omitempty"`
	Model            *string     `json:"Model,omitempty"`
	ManagerType      ManagerType `json:"ManagerType,omitempty"`
	Status           Status      `json:"Status,omitempty"`
	DateTime         *string     `json:"DateTime,omitempty"`
	// The time offset from UTC that the DateTime property is set to in format: +06:00 .
	DateTimeLocalOffset *string `json:"DateTimeLocalOffset,omitempty"`
	// description
	Description        *string      `json:"Description,omitempty"`
	EthernetInterfaces IdRef        `json:"EthernetInterfaces,omitempty"`
	FirmwareVersion    *string      `json:"FirmwareVersion,omitempty"`
	Links              ManagerLinks `json:"Links,omitempty"`
	PowerState         PowerState   `json:"PowerState,omitempty"`
	VirtualMedia       IdRef        `json:"VirtualMedia,omitempty"`
}

Redfish manager resource.

type ManagerLinks struct {
	ManagerForServers  []IdRef `json:"ManagerForServers,omitempty"`
	ManagerForChassis  []IdRef `json:"ManagerForChassis,omitempty"`
	ManagerForSwitches []IdRef `json:"ManagerForSwitches,omitempty"`
	ManagerInChassis   []IdRef `json:"ManagerInChassis,omitempty"`
}

type ManagerType

type ManagerType string
const (
	MANAGERTYPE_MANAGEMENT_CONTROLLER ManagerType = "ManagementController"
	MANAGERTYPE_ENCLOSURE_MANAGER     ManagerType = "EnclosureManager"
	MANAGERTYPE_BMC                   ManagerType = "BMC"
	MANAGERTYPE_RACK_MANAGER          ManagerType = "RackManager"
	MANAGERTYPE_AUXILIARY_CONTROLLER  ManagerType = "AuxiliaryController"
	MANAGERTYPE_SERVICE               ManagerType = "Service"
)

List of ManagerType

type MemorySummary

type MemorySummary struct {
	TotalSystemMemoryGiB           *float32 `json:"TotalSystemMemoryGiB,omitempty"`
	TotalSystemPersistentMemoryGiB *float32 `json:"TotalSystemPersistentMemoryGiB,omitempty"`
	Status                         Status   `json:"Status,omitempty"`
}

type Message

type Message struct {
	Message           string   `json:"Message,omitempty"`
	MessageArgs       []string `json:"MessageArgs,omitempty"`
	MessageId         string   `json:"MessageId"`
	RelatedProperties []string `json:"RelatedProperties,omitempty"`
	Resolution        string   `json:"Resolution,omitempty"`
	Severity          string   `json:"Severity,omitempty"`
}

type PowerState

type PowerState string
const (
	POWERSTATE_TRUE         PowerState = "true"
	POWERSTATE_FALSE        PowerState = "false"
	POWERSTATE_POWERING_ON  PowerState = "PoweringOn"
	POWERSTATE_POWERING_OFF PowerState = "PoweringOff"
)

List of PowerState

type ProcessorSummary

type ProcessorSummary struct {
	Count  *int32 `json:"Count,omitempty"`
	Status Status `json:"Status,omitempty"`
}

type RedfishError

type RedfishError struct {
	Error RedfishErrorError `json:"error"`
}

Contains an error payload from a Redfish Service.

type RedfishErrorError

type RedfishErrorError struct {
	MessageExtendedInfo []Message `json:"@Message.ExtendedInfo,omitempty"`
	Code                string    `json:"code"`
	Message             string    `json:"message"`
}

type ResetRequestBody

type ResetRequestBody struct {
	ResetType ResetType `json:"ResetType,omitempty"`
}

type ResetType

type ResetType string
const (
	RESETTYPE_ON                ResetType = "On"
	RESETTYPE_FORCE_OFF         ResetType = "ForceOff"
	RESETTYPE_GRACEFUL_SHUTDOWN ResetType = "GracefulShutdown"
	RESETTYPE_GRACEFUL_RESTART  ResetType = "GracefulRestart"
	RESETTYPE_FORCE_RESTART     ResetType = "ForceRestart"
	RESETTYPE_NMI               ResetType = "Nmi"
	RESETTYPE_FORCE_ON          ResetType = "ForceOn"
	RESETTYPE_PUSH_POWER_BUTTON ResetType = "PushPowerButton"
	RESETTYPE_POWER_CYCLE       ResetType = "PowerCycle"
)

List of ResetType

type Root

type Root struct {
	// The name of the resource.
	Id string `json:"Id,omitempty"`
	// The name of the resource.
	Name string `json:"Name"`
	// redfish version
	RedfishVersion string `json:"RedfishVersion,omitempty"`
	UUID           string `json:"UUID,omitempty"`
	// The type of a resource.
	OdataType string `json:"@odata.type"`
	// The unique identifier for a resource.
	OdataId string `json:"@odata.id"`
	// redfish copyright
	RedfishCopyright string `json:"@Redfish.Copyright,omitempty"`
	Systems          IdRef  `json:"Systems,omitempty"`
	Managers         IdRef  `json:"Managers,omitempty"`
}

Root redfish path.

type State

type State string
const (
	STATE_ENABLED             State = "Enabled"
	STATE_DISABLED            State = "Disabled"
	STATE_STANDBY_OFFLINE     State = "StandbyOffline"
	STATE_STANDBY_SPARE       State = "StandbySpare"
	STATE_IN_TEST             State = "InTest"
	STATE_STARTING            State = "Starting"
	STATE_ABSENT              State = "Absent"
	STATE_UNAVAILABLE_OFFLINE State = "UnavailableOffline"
	STATE_DEFERRING           State = "Deferring"
	STATE_QUIESCED            State = "Quiesced"
	STATE_UPDATING            State = "Updating"
)

List of State

type Status

type Status struct {
	Health       Health `json:"Health,omitempty"`
	HealthRollup Health `json:"HealthRollup,omitempty"`
	State        State  `json:"State,omitempty"`
}
type SystemLinks struct {
	Chassis   []IdRef `json:"Chassis,omitempty"`
	ManagedBy []IdRef `json:"ManagedBy,omitempty"`
}

type TransferMethod

type TransferMethod string
const (
	TRANSFERMETHOD_STREAM TransferMethod = "Stream"
	TRANSFERMETHOD_UPLOAD TransferMethod = "Upload"
)

List of TransferMethod

type TransferProtocolType

type TransferProtocolType string
const (
	TRANSFERPROTOCOLTYPE_CIFS  TransferProtocolType = "CIFS"
	TRANSFERPROTOCOLTYPE_FTP   TransferProtocolType = "FTP"
	TRANSFERPROTOCOLTYPE_SFTP  TransferProtocolType = "SFTP"
	TRANSFERPROTOCOLTYPE_HTTP  TransferProtocolType = "HTTP"
	TRANSFERPROTOCOLTYPE_HTTPS TransferProtocolType = "HTTPS"
	TRANSFERPROTOCOLTYPE_NFS   TransferProtocolType = "NFS"
	TRANSFERPROTOCOLTYPE_SCP   TransferProtocolType = "SCP"
	TRANSFERPROTOCOLTYPE_TFTP  TransferProtocolType = "TFTP"
)

List of TransferProtocolType

type VirtualMedia

type VirtualMedia struct {
	// The name of the resource.
	Id string `json:"Id,omitempty"`
	// The name of the resource.
	Name string `json:"Name"`
	// The type of a resource.
	OdataType string `json:"@odata.type"`
	// The unique identifier for a resource.
	OdataId string `json:"@odata.id"`
	// The OData description of a payload.
	OdataContext string `json:"@odata.context,omitempty"`
	// redfish copyright
	RedfishCopyright string `json:"@Redfish.Copyright,omitempty"`
	// description
	Description          *string              `json:"Description,omitempty"`
	Image                *string              `json:"Image,omitempty"`
	ImageName            *string              `json:"ImageName,omitempty"`
	Inserted             *bool                `json:"Inserted,omitempty"`
	ConnectedVia         ConnectedVia         `json:"ConnectedVia,omitempty"`
	MediaTypes           []string             `json:"MediaTypes,omitempty"`
	WriteProtected       *bool                `json:"WriteProtected,omitempty"`
	UserName             *string              `json:"UserName,omitempty"`
	Password             *string              `json:"Password,omitempty"`
	TransferMethod       TransferMethod       `json:"TransferMethod,omitempty"`
	TransferProtocolType TransferProtocolType `json:"TransferProtocolType,omitempty"`
	Actions              VirtualMediaActions  `json:"Actions,omitempty"`
}

Redfish virtual media resource for manager.

type VirtualMediaActions

type VirtualMediaActions struct {
	VirtualMediaEjectMedia  VirtualMediaActionsVirtualMediaEjectMedia `json:"#VirtualMedia.EjectMedia,omitempty"`
	VirtualMediaInsertMedia VirtualMediaActionsVirtualMediaEjectMedia `json:"#VirtualMedia.InsertMedia,omitempty"`
}

type VirtualMediaActionsVirtualMediaEjectMedia

type VirtualMediaActionsVirtualMediaEjectMedia struct {
	// The unique identifier for a resource.
	Target string `json:"target,omitempty"`
}

Jump to

Keyboard shortcuts

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