models

package
v2.5.4 Latest Latest
Warning

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

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

Documentation

Overview

Package models provides a set of utility types, constants, and functions that are used broadly across amt, cim, and ips packages

Index

Constants

View Source
const (
	ValueNotFound string = "Value not found in map"
)

Variables

View Source
var ChassisPackageTypeToString = map[int]string{
	0:  "Unknown",
	1:  "Other",
	2:  "SMBIOS Reserved",
	3:  "Desktop",
	4:  "Low Profile Desktop",
	5:  "Pizza Box",
	6:  "Mini Tower",
	7:  "Tower",
	8:  "Portable",
	9:  "LapTop",
	10: "Notebook",
	11: "Hand Held",
	12: "Docking Station",
	13: "All in One",
	14: "Sub Notebook",
	15: "Space-Saving",
	16: "Lunch Box",
	17: "Main System Chassis",
	18: "Expansion Chassis",
	19: "SubChassis",
	20: "Bus Expansion Chassis",
	21: "Peripheral Chassis",
	22: "Storage Chassis",
	23: "SMBIOS Reserved",
	24: "Sealed-Case PC",
	25: "SMBIOS Reserved",
	26: "CompactPCI",
	27: "AdvancedTCA",
	28: "Blade Enclosure",
	29: "SMBIOS Reserved",
	30: "Tablet",
	31: "Convertible",
	32: "Detachable",
	33: "IoT Gateway",
	34: "Embedded PC",
	35: "Mini PC",
	36: "Stick PC",
}

ChassisPackageTypeToString is a map of ChassisPackageType value to string.

View Source
var LinkTechnologyToString = map[int]string{
	0:  "Unknown",
	1:  "Other",
	2:  "Ethernet",
	3:  "IB",
	4:  "FC",
	5:  "FDDI",
	6:  "ATM",
	7:  "Token Ring",
	8:  "Frame Relay",
	9:  "Infrared",
	10: "Bluetooth",
	11: "Wireless LAN",
}

LinkTechnologyToString is a map of LinkTechnology value to string.

View Source
var PortTypeToString = map[int]string{
	0: "Unknown",
	1: "Other",
	2: "Not Applicable",
}

PortTypeToString is a map of PortType value to string.

View Source
var RemovalConditionsToString = map[int]string{
	0: "Unknown",
	2: "Not Applicable",
	3: "Removable When Off",
	4: "Removable When On or Off",
}

RemovalConditionsToString is a map of RemovalConditions value to string.

View Source
var RoleCharacteristicsToString = map[int]string{
	2: "Static",
	3: "Opaque",
}

RoleCharacteristicsToString is a map of RoleCharacteristics value to string.

View Source
var SecurityBreachToString = map[int]string{
	1: "Other",
	2: "Unknown",
	3: "No Breach",
	4: "Breach Attempted",
	5: "Breach Successful",
}

SecurityBreachToString is a map of SecurityBreach value to string.

View Source
var ServicePhilosophyToString = map[int]string{
	0: "Unknown",
	1: "Other",
	2: "Service From Top",
	3: "Service From Front",
	4: "Service From Back",
	5: "Service From Side",
	6: "Sliding Trays",
	7: "Removable Sides",
	8: "Moveable",
}

ServicePhilosophyToString is a map of ServicePhilosophy value to string.

View Source
var SoftwareElementStateToString = map[int]string{
	0: "Deployable",
	1: "Installable",
	2: "Executable",
	3: "Running",
}

SoftwareElementStateToString is a map of SoftwareElementState value to string.

View Source
var UsageRestrictionToString = map[int]string{
	0: "Unknown",
	1: "FrontEndOnly",
	2: "BackEndOnly",
	3: "NotRestricted",
}

UsageRestrictionToString is a map of UsageRestriction value to string.

Functions

func ConvertChassisPackageTypeToString added in v2.2.4

func ConvertChassisPackageTypeToString(value int) string

ConvertChassisPackageTypeToString returns the string representation of ChassisPackageType.

func ConvertLinkTechnologyToString added in v2.2.4

func ConvertLinkTechnologyToString(value int) string

ConvertLinkTechnologyToString returns the string representation of LinkTechnology.

func ConvertPortTypeToString added in v2.2.4

func ConvertPortTypeToString(value int) string

ConvertPortTypeToString returns the string representation of PortType.

func ConvertRemovalConditionsToString added in v2.2.4

func ConvertRemovalConditionsToString(value int) string

ConvertRemovalConditionsToString returns the string representation of RemovalConditions.

func ConvertRoleCharacteristicsToString added in v2.2.4

func ConvertRoleCharacteristicsToString(value int) string

ConvertRoleCharacteristicsToString returns the string representation of RoleCharacteristics.

func ConvertSecurityBreachToString added in v2.2.4

func ConvertSecurityBreachToString(value int) string

ConvertSecurityBreachToString returns the string representation of SecurityBreach.

func ConvertServicePhilosophyToString added in v2.2.4

func ConvertServicePhilosophyToString(value int) string

ConvertServicePhilosophyToString returns the string representation of ServicePhilosophy.

func ConvertSoftwareElementStateToString added in v2.2.4

func ConvertSoftwareElementStateToString(value int) string

ConvertSoftwareElementStateToString returns the string representation of SoftwareElementState.

func ConvertUsageRestrictionToString added in v2.2.4

func ConvertUsageRestrictionToString(value int) string

ConvertUsageRestrictionToString returns the string representation of UsageRestriction.

Types

type AdditionalAvailabilityValues

type AdditionalAvailabilityValues int
const (
	AdditionalAvailability_Other AdditionalAvailabilityValues = iota + 1
	AdditionalAvailability_Unknown
	AdditionalAvailability_RunningFullPower
	AdditionalAvailability_Warning
	AdditionalAvailability_InTest
	AdditionalAvailability_NotApplicable
	AdditionalAvailability_PowerOff
	AdditionalAvailability_OffLine
	AdditionalAvailability_OffDuty
	AdditionalAvailability_Degraded
	AdditionalAvailability_NotInstalled
	AdditionalAvailability_InstallError
	AdditionalAvailability_PowerSaveUnknown
	AdditionalAvailability_PowerSaveLowPowerMode
	AdditionalAvailability_PowerSaveStandby
	AdditionalAvailability_PowerCycle
	AdditionalAvailability_PowerSaveWarning
	AdditionalAvailability_Paused
	AdditionalAvailability_NotReady
	AdditionalAvailability_NotConfigured
	AdditionalAvailability_Quiesced
)

type Antecedent

type Antecedent struct {
	XMLName             xml.Name `xml:"Antecedent,omitempty"`
	Address             string   `xml:"Address,omitempty"`
	ReferenceParameters ReferenceParameters
}

type AssociatedPowerManagementService

type AssociatedPowerManagementService struct {
	ServiceAvailableToElement
	CIMAssociatedPowerManagementService CIMAssociatedPowerManagementServiceItem
}

type AssociationReference

type AssociationReference struct {
	Address             string `xml:"Address,omitempty"`
	ReferenceParameters ReferenceParametersNoNamespace
}

type AuthenticationProtocol

type AuthenticationProtocol int
const (
	AuthenticationProtocol_EAPTLS AuthenticationProtocol = iota
	AuthenticationProtocol_EAPTTLSMSCHAPv2
	AuthenticationProtocol_PEAPv0EAPMSCHAPv2
	AuthenticationProtocol_PEAPv1EAPGTC
	AuthenticationProtocol_EAPFASTMSCHAPv2
	AuthenticationProtocol_EAPFASTGTC
	AuthenticationProtocol_EAPMD5
	AuthenticationProtocol_EAPPSK
	AuthenticationProtocol_EAPSIM
	AuthenticationProtocol_EAPAKA
	AuthenticationProtocol_EAPFASTTLS
)

type AuthenticationService

type AuthenticationService struct {
	SecurityService
}

type AvailabilityValues

type AvailabilityValues int
const (
	Availability_Other AvailabilityValues = iota + 1
	Availability_Unknown
	Availability_RunningFullPower
	Availability_Warning
	Availability_InTest
	Availability_NotApplicable
	Availability_PowerOff
	Availability_OffLine
	Availability_OffDuty
	Availability_Degraded
	Availability_NotInstalled
	Availability_InstallError
	Availability_PowerSaveUnknown
	Availability_PowerSaveLowPowerMode
	Availability_PowerSaveStandby
	Availability_PowerCycle
	Availability_PowerSaveWarning
	Availability_Paused
	Availability_NotReady
	Availability_NotConfigured
	Availability_Quiesced
)

type BIOSElement

type BIOSElement struct {
	SoftwareElement
	PrimaryBIOS bool `xml:"PrimaryBIOS,omitempty"`
	ReleaseDate DateTime
}

type BootConfigSettingInstanceID

type BootConfigSettingInstanceID string
const (
	ForceHardDriveBoot       BootConfigSettingInstanceID = "Intel(r) AMT: Force Hard-drive Boot"
	ForceCD_DVDBoot          BootConfigSettingInstanceID = "Intel(r) AMT: Force CD/DVD Boot"
	ForcePXEBoot             BootConfigSettingInstanceID = "Intel(r) AMT: Force PXE Boot"
	ForceOCRUEFIHTTPSBoot    BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI HTTPS Boot"
	ForceOCRUEFIBootOption1  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 1"
	ForceOCRUEFIBootOption2  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 2"
	ForceOCRUEFIBootOption3  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 3"
	ForceOCRUEFIBootOption4  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 4"
	ForceOCRUEFIBootOption5  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 5"
	ForceOCRUEFIBootOption6  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 6"
	ForceOCRUEFIBootOption7  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 7"
	ForceOCRUEFIBootOption8  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 8"
	ForceOCRUEFIBootOption9  BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 9"
	ForceOCRUEFIBootOption10 BootConfigSettingInstanceID = "Intel(r) AMT: Force OCR UEFI Boot Option 10"
)

type BootSettingData

type BootSettingData struct {
	SettingData
	OwningEntity string `xml:"OwningEntity,omitempty"` // MaxLen=256
}

type BootSourceSetting

type BootSourceSetting struct {
	SettingData
	StructuredBootString string               `xml:"StructuredBootString,omitempty"`
	BIOSBootString       string               `xml:"BIOSBootString,omitempty"`
	BootString           string               `xml:"BootString,omitempty"`
	FailThroughSupported FailThroughSupported `xml:"FailThroughSupported,omitempty"`
}

BootSourceSetting represents the boot source settings for a device.

type CIMAssociatedPowerManagementServiceItem

type CIMAssociatedPowerManagementServiceItem struct {
	ServiceAvailableToElement
	AvailableRequestedPowerStates []string `xml:"AvailableRequestedPowerStates,omitempty"`
	PowerState                    string   `xml:"PowerState,omitempty"`
}

type CIMSoftwareIdentityItem

type CIMSoftwareIdentityItem struct {
	LogicalElement
	InstanceID    string `xml:"InstanceID,omitempty"`
	VersionString string `xml:"VersionString,omitempty"`
	IsEntity      bool   `xml:"IsEntity,omitempty"`
}

type CPUStatus

type CPUStatus int
const (
	CPUStatus_Unknown CPUStatus = iota
	CPUStatus_Enabled
	CPUStatus_DisabledByUser
	CPUStatus_DisabledByBIOS
	CPUStatus_Idle
	CPUStatus_Other
)

type CapabilitiesValues

type CapabilitiesValues int
const (
	Capabilities_Unknown CapabilitiesValues = iota
	Capabilities_Other
	Capabilities_WriteRecordSupported
	Capabilities_DeleteRecordSupported
	Capabilities_CanMoveBackwardInLog
	Capabilities_FreezeLogSupported
	Capabilities_ClearLogSupported
	Capabilities_SupportsAddressingByOrdinalRecordNumber
	Capabilities_VariableLengthRecordsSupported
	Capabilities_VariableFormatsForRecords
	Capabilities_CanFlagRecordsForOverwrite
)

type CharacterSet

type CharacterSet int
const (
	CharacterSet_Unknown CharacterSet = iota
	CharacterSet_Other
	CharacterSet_ASCII
	CharacterSet_Unicode
	CharacterSet_ISO2022
	CharacterSet_ISO8859
	CharacterSet_ExtendedUNIXCode
	CharacterSet_UTF8
	CharacterSet_UCS2
	CharacterSet_BitMappedData
	CharacterSet_OctetString
	CharacterSet_DefinedByIndividualRecords
)

type Chassis

type Chassis struct {
	PhysicalFrame
	ChassisPackageType int `xml:"ChassisPackageType,omitempty"`
}

type ChassisPackageType

type ChassisPackageType int

type Chip

type Chip struct {
	PhysicalComponent
}

type Collection

type Collection struct {
	XMLName xml.Name `xml:"CIM_Collection"`
	ManagedElement
}

type CommunicationStatus

type CommunicationStatus int
const (
	CommunicationStatus_UnknownCS CommunicationStatus = iota
	CommunicationStatus_NotAvailableCS
	CommunicationStatus_CommunicationOK
	CommunicationStatus_LostCommunication
	CommunicationStatus_NoContact
)

type ConcreteJob

type ConcreteJob struct {
	Job
	UntilTime             DateTime         `xml:"UntilTime,omitempty"`
	JobState              ConcreteJobState `xml:"JobState,omitempty"`
	TimeOfLastStateChange DateTime         `xml:"TimeOfLastStateChange,omitempty"`
	TimeBeforeRemoval     DateTime         `xml:"TimeBeforeRemoval,omitempty"`
}

type ConcreteJobState

type ConcreteJobState int
const (
	ConcreteJobState_New ConcreteJobState = 2 + iota
	ConcreteJobState_Starting
	ConcreteJobState_Running
	ConcreteJobState_Suspended
	ConcreteJobState_ShuttingDown
	ConcreteJobState_Completed
	ConcreteJobState_Terminated
	ConcreteJobState_Killed
	ConcreteJobState_Exception
	ConcreteJobState_Service
	ConcreteJobState_QueryPending
)

type Credential

type Credential struct {
	ManagedElement
	Issued  DateTime `xml:"Issued,omitempty"`  // The date and time when the credential was issued. Default is current time
	Expires DateTime `xml:"Expires,omitempty"` // The date and time when the credential expires (and is not appropriate for use for authentication/authorization). Default is '99991231235959.999999+999'
}

type CredentialContext

type CredentialContext struct {
	ElementInContext        Credential
	ElementProvidingContext ManagedElement
}

type CredentialManagementService

type CredentialManagementService struct {
	AuthenticationService
	// InstanceID is an optional property that may be used to opaquely and uniquely identify an instance of this class within the scope of the instantiating Namespace . . .
	InstanceID string // MaxLen=256
}

type DateTime

type DateTime struct {
	DateTime string `xml:"DateTime,omitempty"`
}

type Dependent

type Dependent struct {
	XMLName             xml.Name `xml:"Dependent,omitempty"`
	Address             string   `xml:"Address,omitempty"`
	ReferenceParameters ReferenceParameters
}

type DetailedStatus

type DetailedStatus int
const (
	DetailedStatus_NotAvailableDS DetailedStatus = iota
	DetailedStatus_NoAdditionalInformation
	DetailedStatus_Stressed
	DetailedStatus_PredictiveFailure
	DetailedStatus_NonRecoverableError
	DetailedStatus_SupportingEntityInError
)

type Enabled

type Enabled int

*

  • Enabled:1 | Disabled:2 | Enabled For Debug:3.
const (
	Enabled_Enabled Enabled = 1 + iota
	Enabled_Disabled
	Enabled_EnabledForDebug
)

type EnabledDefault

type EnabledDefault int
const (
	EnabledDefault_Enabled           EnabledDefault = 2
	EnabledDefault_Disabled          EnabledDefault = 3
	EnabledDefault_NotApplicable     EnabledDefault = 5
	EnabledDefault_EnabledbutOffline EnabledDefault = 6
	EnabledDefault_NoDefault         EnabledDefault = 7
	EnabledDefault_Quiesce           EnabledDefault = 9
)

type EnabledLogicalElement

type EnabledLogicalElement struct {
	LogicalElement
	EnabledState          EnabledState   `xml:"EnabledState,omitempty"`
	OtherEnabledState     string         `xml:"OtherEnabledState,omitempty"`
	RequestedState        RequestedState `xml:"RequestedState,omitempty"`
	EnabledDefault        EnabledDefault `xml:"EnabledDefault,omitempty"`
	TimeOfLastStateChange DateTime
}

type EnabledState

type EnabledState int
const (
	EnabledState_Unknown EnabledState = iota
	EnabledState_Other
	EnabledState_Enabled
	EnabledState_Disabled
	EnabledState_ShuttingDown
	EnabledState_NotApplicable
	EnabledState_EnabledbutOffline
	EnabledState_InTest
	EnabledState_Deferred
	EnabledState_Quiesce
	EnabledState_Starting
)

type EthernetPort

type EthernetPort struct {
	NetworkPort
}

type FailThroughSupported

type FailThroughSupported int
const (
	FailThroughSupportedUnknown FailThroughSupported = iota
	IsSupported
	NotSupported
)

type HealthState

type HealthState int
const (
	HealthState_Unknown             HealthState = 0
	HealthState_OK                  HealthState = 5
	HealthState_DegradedWarning     HealthState = 10
	HealthState_MinorFailure        HealthState = 15
	HealthState_MajorFailure        HealthState = 20
	HealthState_CriticalFailure     HealthState = 25
	HealthState_NonRecoverableError HealthState = 30
)

type IEEE8021xSettings

type IEEE8021xSettings struct {
	XMLName                         xml.Name                        `xml:"h:IEEE8021xSettingsInput,omitempty"`
	H                               string                          `xml:"xmlns:q,attr"`
	ElementName                     string                          `xml:"q:ElementName,omitempty"`
	InstanceID                      string                          `xml:"q:InstanceID,omitempty"`
	AuthenticationProtocol          AuthenticationProtocol          `xml:"q:AuthenticationProtocol"`
	RoamingIdentity                 string                          `xml:"q:RoamingIdentity,omitempty"`
	ServerCertificateName           string                          `xml:"q:ServerCertificateName,omitempty"`
	ServerCertificateNameComparison ServerCertificateNameComparison `xml:"q:ServerCertificateNameComparison,omitempty"`
	Username                        string                          `xml:"q:Username,omitempty"`
	Password                        string                          `xml:"q:Password,omitempty"`
	Domain                          string                          `xml:"q:Domain,omitempty"`
	ProtectedAccessCredential       string                          `xml:"q:ProtectedAccessCredential,omitempty"`
	PACPassword                     string                          `xml:"q:PACPassword,omitempty"`
	PSK                             string                          `xml:"q:PSK,omitempty"`
}

IEEE8021xSettings represents the IEEE 802.1x settings for a network interface.

type Job

type Job struct {
	LogicalElement
	InstanceId          string              `xml:"InstanceId,omitempty"`
	CommunicationStatus CommunicationStatus `xml:"CommunicationStatus,omitempty"`
	DetailedStatus      DetailedStatus      `xml:"DetailedStatus,omitempty"`
	OperatingStatus     OperatingStatus     `xml:"OperatingStatus,omitempty"`
	PrimaryStatus       PrimaryStatus       `xml:"PrimaryStatus,omitempty"`
	JobStatus           string              `xml:"JobStatus,omitempty"`
	TimeSubmitted       DateTime            `xml:"TimeSubmitted,omitempty"`
	ScheduledStartTime  DateTime            `xml:"ScheduledStartTime,omitempty"`
	StartTime           DateTime            `xml:"StartTime,omitempty"`
	ElapsedTime         DateTime            `xml:"ElapsedTime,omitempty"`
	JobRunTimes         int                 `xml:"JobRunTimes,omitempty"`
	RunMonth            RunMonth            `xml:"RunMonth,omitempty"`
	RunDay              int                 `xml:"RunDay,omitempty"`
	RunDayOfWeek        RunDayOfWeek        `xml:"RunDayOfWeek,omitempty"`
	RunStartInterval    DateTime            `xml:"RunStartInterval,omitempty"`
	LocalOrUtcTime      LocalOrUtcTime      `xml:"LocalOrUtcTime,omitempty"`
	Notify              string              `xml:"Notify,omitempty"`
	Owner               string              `xml:"Owner,omitempty"`
	Priority            int                 `xml:"Priority,omitempty"`
	PercentComplete     int                 `xml:"PercentComplete,omitempty"`
	DeleteOnCompletion  bool                `xml:"DeleteOnCompletion,omitempty"`
	ErrorCode           int                 `xml:"ErrorCode,omitempty"`
	ErrorDescription    string              `xml:"ErrorDescription,omitempty"`
	RecoveryAction      RecoveryAction      `xml:"RecoveryAction,omitempty"`
	OtherRecoveryAction string              `xml:"OtherRecoveryAction,omitempty"`
}

type LastChange

type LastChange int
const (
	LastChange_Unknown LastChange = iota
	LastChange_Add
	LastChange_Delete
	LastChange_Modify
	LastChange_LogCleared
)

type LocalOrUtcTime

type LocalOrUtcTime int
const (
	LocalTime LocalOrUtcTime = iota + 1
	UTCTime
)

type Log

type Log struct {
	EnabledLogicalElement
	MaxNumberOfRecords     int             `xml:"MaxNumberOfRecords,omitempty"`
	CurrentNumberOfRecords int             `xml:"CurrentNumberOfRecords,omitempty"`
	OverwritePolicy        OverwritePolicy `xml:"OverwritePolicy,omitempty"`
	LogState               LogState        `xml:"LogState,omitempty"`
}

type LogState

type LogState int
const (
	LogState_Unknown       LogState = 0
	LogState_Normal        LogState = 2
	LogState_Erasing       LogState = 3
	LogState_NotApplicable LogState = 4
)

type LogicalDevice

type LogicalDevice struct {
	EnabledLogicalElement       EnabledLogicalElement
	SystemCreationClassName     string                              `xml:"SystemCreationClassName,omitempty"`
	SystemName                  string                              `xml:"SystemName,omitempty"`
	CreationClassName           string                              `xml:"CreationClassName,omitempty"`
	DeviceId                    string                              `xml:"DeviceId,omitempty"`
	PowerManagementSupported    bool                                `xml:"PowerManagementSupported,omitempty"`
	PowerManagementCapabilities []PowerManagementCapabilitiesValues `xml:"PowerManagementCapabilities,omitempty"`
	Availability                AvailabilityValues                  `xml:"Availability,omitempty"`
	StatusInfo                  StatusInfoValues                    `xml:"StatusInfo,omitempty"`
	LastErrorCode               int                                 `xml:"LastErrorCode,omitempty"`
	ErrorDescription            string                              `xml:"ErrorDescription,omitempty"`
	ErrorCleared                bool                                `xml:"ErrorCleared,omitempty"`
	OtherIdentifyingInfo        []string                            `xml:"OtherIdentifyingInfo,omitempty"`
	PowerOnHours                int                                 `xml:"PowerOnHours,omitempty"`
	TotalPowerOnHours           int                                 `xml:"TotalPowerOnHours,omitempty"`
	IdentifyingDescriptions     []string                            `xml:"IdentifyingDescriptions,omitempty"`
	AdditionalAvailability      []AdditionalAvailabilityValues      `xml:"AdditionalAvailability,omitempty"`
	MaxQuiesceTime              int                                 `xml:"MaxQuiesceTime,omitempty"`
}

type LogicalElement

type LogicalElement struct {
	ManagedSystemElement
}

type LogicalPort

type LogicalPort struct {
	LogicalDevice
	Speed            int    `xml:"Speed,omitempty"`
	MaxSpeed         int    `xml:"MaxSpeed,omitempty"`
	RequestedSpeed   int    `xml:"RequestedSpeed,omitempty"`
	UsageRestriction int    `xml:"UsageRestriction,omitempty"`
	PortType         int    `xml:"PortType,omitempty"`
	OtherPortType    string `xml:"OtherPortType,omitempty"`
}

type ManagedElement

type ManagedElement struct {
	XMLName     xml.Name `xml:"h:ManagedElement"`
	Caption     string   `xml:"h:Caption,omitempty"`     // MaxLen=64
	Description string   `xml:"h:Description,omitempty"` // MaxLen=256
	ElementName string   `xml:"h:ElementName,omitempty"` // MaxLen=256
}

type ManagedSystemElement

type ManagedSystemElement struct {
	ManagedElement
	InstallDate        DateTime          `xml:"InstallDate,omitempty"`
	Name               string            `xml:"Name,omitempty"`
	OperationalStatus  OperationalStatus `xml:"OperationalStatus,omitempty"`
	StatusDescriptions []string          `xml:"Items>StatusDescriptions,omitempty"`
	Status             string            `xml:"Status,omitempty"`
	HealthState        HealthState       `xml:"HealthState,omitempty"`
}

type MessageLog

type MessageLog struct {
	Log
	CreationClassName        string               `xml:"CreationClassName,omitempty"`
	Capabilities             []CapabilitiesValues `xml:"Capabilities,omitempty"`
	CapabilitiesDescriptions []string             `xml:"CapabilitiesDescriptions,omitempty"`
	MaxLogSize               int                  `xml:"MaxLogSize,omitempty"`
	SizeOfHeader             int                  `xml:"SizeOfHeader,omitempty"`
	HeaderFormat             string               `xml:"HeaderFormat,omitempty"`
	MaxRecordSize            int                  `xml:"MaxRecordSize,omitempty"`
	SizeOfRecordHeader       int                  `xml:"SizeOfRecordHeader,omitempty"`
	RecordHeaderFormat       string               `xml:"RecordHeaderFormat,omitempty"`
	OtherPolicyDescription   string               `xml:"OtherPolicyDescription,omitempty"`
	TimeWhenOutdated         DateTime             `xml:"TimeWhenOutdated,omitempty"`
	PercentageNearFull       int                  `xml:"PercentageNearFull,omitempty"`
	LastChange               LastChange           `xml:"LastChange,omitempty"`
	TimeOfLastChange         DateTime             `xml:"TimeOfLastChange,omitempty"`
	RecordLastChanged        int                  `xml:"RecordLastChanged,omitempty"`
	IsFrozen                 bool                 `xml:"IsFrozen,omitempty"`
	CharacterSet             CharacterSet         `xml:"CharacterSet,omitempty"`
}

type NetworkPort

type NetworkPort struct {
	LogicalPort
	PortNumber                       int
	LinkTechnology                   int      `xml:"LinkTechnology,omitempty"`
	OtherLinkTechnology              string   `xml:"OtherLinkTechnology,omitempty"`
	PermanentAddress                 string   `xml:"PermanentAddress,omitempty"`
	NetworkAddresses                 []string `xml:"NetworkAddresses,omitempty"`
	FullDuplex                       bool     `xml:"FullDuplex,omitempty"`
	AutoSense                        bool     `xml:"AutoSense,omitempty"`
	SupportedMaximumTransmissionUnit int      `xml:"SupportedMaximumTransmissionUnit,omitempty"`
	ActiveMaximumTransmissionUnit    int      `xml:"OtherActiveMaximumTransmissionUnitPortType,omitempty"`
}

type NetworkPortConfigurationService

type NetworkPortConfigurationService struct {
	Service
}

type OperatingStatus

type OperatingStatus int
const (
	OperatingStatus_UnknownOS OperatingStatus = iota
	OperatingStatus_NotAvailableOS
	OperatingStatus_Servicing
	OperatingStatus_Starting
	OperatingStatus_Stopping
	OperatingStatus_Stopped
	OperatingStatus_Aborted
	OperatingStatus_Dormant
	OperatingStatus_Completed
	OperatingStatus_Migrating
	OperatingStatus_Emigrating
	OperatingStatus_Immigrating
	OperatingStatus_SnapShotting
	OperatingStatus_ShuttingDown
	OperatingStatus_InTest
	OperatingStatus_Transitioning
	OperatingStatus_InService
)

type OperationalStatus

type OperationalStatus int
const (
	OperationalStatus_Unknown OperationalStatus = iota
	OperationalStatus_Other
	OperationalStatus_OK
	OperationalStatus_Degraded
	OperationalStatus_Stressed
	OperationalStatus_PredictiveFailure
	OperationalStatus_Error
	OperationalStatus_NonRecoverableError
	OperationalStatus_Starting
	OperationalStatus_Stopping
	OperationalStatus_Stopped
	OperationalStatus_InService
	OperationalStatus_NoContact
	OperationalStatus_LostCommunication
	OperationalStatus_Aborted
	OperationalStatus_Dormant
	OperationalStatus_SupportingEntityinError
	OperationalStatus_Completed
	OperationalStatus_PowerMode
	OperationalStatus_Relocating
)

type OverwritePolicy

type OverwritePolicy int
const (
	OverwritePolicy_Unknown         OverwritePolicy = 0
	OverwritePolicy_WrapsWhenFull   OverwritePolicy = 2
	OverwritePolicy_NeverOverwrites OverwritePolicy = 7
)

type PackageType

type PackageType int

type PhysicalComponent

type PhysicalComponent struct {
	PhysicalElement
	RemovalConditions int  `xml:"RemovalConditions,omitempty"`
	Removable         bool `xml:"Removable,omitempty"`
	Replaceable       bool `xml:"Replaceable,omitempty"`
	HotSwappable      bool `xml:"HotSwappable,omitempty"`
}

type PhysicalElement

type PhysicalElement struct {
	ManagedSystemElement
	Tag                  string   `xml:"Tag,omitempty"`                  // MaxLen=256
	CreationClassName    string   `xml:"CreationClassName,omitempty"`    // MaxLen=256
	Manufacturer         string   `xml:"Manufacturer,omitempty"`         // MaxLen=256
	Model                string   `xml:"Model,omitempty"`                // MaxLen=256
	Sku                  string   `xml:"Sku,omitempty"`                  // MaxLen=64
	SerialNumber         string   `xml:"SerialNumber,omitempty"`         // MaxLen=256
	Version              string   `xml:"Version,omitempty"`              // MaxLen=64
	PartNumber           string   `xml:"PartNumber,omitempty"`           // MaxLen=256
	OtherIdentifyingInfo string   `xml:"OtherIdentifyingInfo,omitempty"` // MaxLen=256
	PoweredOn            bool     `xml:"PoweredOn,omitempty"`
	ManufactureDate      DateTime `xml:"ManufactureDate,omitempty"`
	VendorEquipmentType  string   `xml:"VendorEquipmentType,omitempty"` // MaxLen=256
	UserTracking         string   `xml:"UserTracking,omitempty"`        // MaxLen=256
	CanBeFRUed           bool     `xml:"CanBeFRUed,omitempty"`
}

type PhysicalFrame

type PhysicalFrame struct {
	PhysicalPackage
	VendorCompatibilityStrings []string `xml:"VendorCompatibilityStrings,omitempty"`
	OtherPackageType           string   `xml:"OtherPackageType,omitempty"`
	Weight                     int      `xml:"Weight,omitempty"`
	Width                      int      `xml:"Width,omitempty"`
	Depth                      int      `xml:"Depth,omitempty"`
	Height                     int      `xml:"Height,omitempty"`
	RemovalConditions          int      `xml:"RemovalConditions,omitempty"`
	Removable                  bool     `xml:"Removable,omitempty"`
	Replaceable                bool     `xml:"Replaceable,omitempty"`
	HotSwappable               bool     `xml:"HotSwappable,omitempty"`
	CableManagementStrategy    string   `xml:"CableManagementStrategy,omitempty"`
	ServicePhilosophy          int      `xml:"ServicePhilosophy,omitempty"`
	ServiceDescriptions        []string `xml:"ServiceDescriptions,omitempty"`
	LockPresent                bool     `xml:"LockPresent,omitempty"`
	AudibleAlarm               bool     `xml:"AudibleAlarm,omitempty"`
	VisibleAlarm               bool     `xml:"VisibleAlarm,omitempty"`
	SecurityBreach             int      `xml:"SecurityBreach,omitempty"`
	BreachDescription          string   `xml:"BreachDescription,omitempty"`
	IsLocked                   bool     `xml:"IsLocked,omitempty"`
}

*

  • Enabled:1 | Disabled:2 | Enabled For Debug:3.

type PhysicalPackage

type PhysicalPackage struct {
	PhysicalElement
	PackageType int `xml:"PackageType,omitempty"`
}

type PowerManagementCapabilitiesValues

type PowerManagementCapabilitiesValues int
const (
	PowerManagementCapabilities_Unknown PowerManagementCapabilitiesValues = iota
	PowerManagementCapabilities_NotSupported
	PowerManagementCapabilities_Disabled
	PowerManagementCapabilities_Enabled
	PowerManagementCapabilities_PowerSavingModesEnteredAutomatically
	PowerManagementCapabilities_PowerStateSettable
	PowerManagementCapabilities_PowerCyclingSupported
	PowerManagementCapabilities_TimedPowerOnSupported
)

type PrimaryStatus

type PrimaryStatus int
const (
	PrimaryStatus_UnknownPS PrimaryStatus = iota
	PrimaryStatus_OK
	PrimaryStatus_Degraded
	PrimaryStatus_ErrorPS
)

type RecoveryAction

type RecoveryAction int
const (
	RecoveryAction_UnknownRA RecoveryAction = iota
	RecoveryAction_Other
	RecoveryAction_DoNotContinue
	RecoveryAction_ContinueWithNextJob
	RecoveryAction_RerunJob
	RecoveryAction_RunRecoveryJob
)

type ReferenceParameters

type ReferenceParameters struct {
	XMLName     xml.Name    `xml:"ReferenceParameters"`
	H           string      `xml:"xmlns:c,attr"`
	ResourceURI string      `xml:"c:ResourceURI,omitempty"`
	SelectorSet SelectorSet `xml:"c:SelectorSet,omitempty"`
}

type ReferenceParametersNoNamespace added in v2.2.4

type ReferenceParametersNoNamespace struct {
	XMLName     xml.Name            `xml:"ReferenceParameters,omitempty"`
	ResourceURI string              `xml:"ResourceURI,omitempty"`
	SelectorSet SelectorNoNamespace `xml:"SelectorSet,omitempty"`
}

func (*ReferenceParametersNoNamespace) GetSelectorValue added in v2.2.4

func (rp *ReferenceParametersNoNamespace) GetSelectorValue(name string) string

GetSelectorValue returns the Value property of a selector found in a SelectorSet based on the selector name.

func (*ReferenceParametersNoNamespace) HasSelector added in v2.2.4

func (rp *ReferenceParametersNoNamespace) HasSelector(name, value string) bool

HasSelector checks the SelectorSet and returns true if the SelectorSet contains a Selector.

type ReferenceParameters_OUTPUT

type ReferenceParameters_OUTPUT struct {
	ResourceURI string             `xml:"ResourceURI,omitempty"`
	SelectorSet SelectorSet_OUTPUT `xml:"SelectorSet,omitempty"`
}

type RemovalConditions

type RemovalConditions int
const (
	RemovalConditions_Unknown              RemovalConditions = 0
	RemovalConditions_NotApplicable        RemovalConditions = 2
	RemovalConditions_RemovableWhenOff     RemovalConditions = 3
	RemovalConditions_RemovableWhenOnOrOff RemovalConditions = 4
)

type RequestedState

type RequestedState int
const (
	RequestedState_Enabled RequestedState = iota + 2
	RequestedState_Disabled
	RequestedState_ShutDown
	RequestedState_NoChange
	RequestedState_Offline
	RequestedState_Test
	RequestedState_Deferred
	RequestedState_Quiesce
	RequestedState_Reboot
	RequestedState_Reset
	RequestedState_NotApplicable
	RequestedState_Unknown RequestedState = 0
)

type Role

type Role struct {
	XMLName xml.Name `xml:"CIM_Role"`
	Collection
	CreationClassName   string `xml:"CreationClassName,omitempty"`
	Name                string `xml:"Name,omitempty"`
	CommonName          string `xml:"CommonName,omitempty"`
	RoleCharacteristics []int  `xml:"RoleCharacteristics,omitempty"`
}

type RunDayOfWeek

type RunDayOfWeek int
const (
	SaturdayNegative RunDayOfWeek = iota - 7
	FridayNegative
	ThursdayNegative
	WednesdayNegative
	TuesdayNegative
	MondayNegative
	SundayNegative
	ExactDayOfMonth
	Sunday
	Monday
	Tuesday
	Wednesday
	Thursday
	Friday
	Saturday
)

type RunMonth

type RunMonth int
const (
	January RunMonth = iota
	February
	March
	April
	May
	June
	July
	August
	September
	October
	November
	December
)

type SecurityBreach

type SecurityBreach int

type SecurityService

type SecurityService struct {
	Service
}

type Selector

type Selector struct {
	H       string   `xml:"xmlns:c,attr"`
	XMLName xml.Name `xml:"c:Selector,omitempty"`
	Name    string   `xml:"Name,attr"`
	Value   string   `xml:",chardata"`
}

type SelectorNoNamespace

type SelectorNoNamespace struct {
	XMLName   xml.Name           `xml:"SelectorSet,omitempty"`
	Selectors []SelectorResponse `xml:"Selector,omitempty"`
}

type SelectorResponse added in v2.2.4

type SelectorResponse struct {
	XMLName xml.Name `xml:"Selector,omitempty"`
	Name    string   `xml:"Name,attr"`
	Text    string   `xml:",chardata"`
}

type SelectorSet

type SelectorSet struct {
	H        string   `xml:"xmlns:c,attr"`
	XMLName  xml.Name `xml:"c:SelectorSet,omitempty"`
	Selector []Selector
}

type SelectorSet_OUTPUT

type SelectorSet_OUTPUT struct {
	XMLName  xml.Name `xml:"SelectorSet,omitempty"`
	Selector []message.Selector_OUTPUT
}

type ServerCertificateNameComparison

type ServerCertificateNameComparison int

ServerCertificateNameComparison represents the ServerCertificateNameComparison type for IEEE8021xProfile.

type Service

type Service struct {
	EnabledLogicalElement
	SystemCreationClassName string `xml:"SystemCreationClassName,omitempty"`
	SystemName              string `xml:"SystemName,omitempty"`
	CreationClassName       string `xml:"CreationClassName,omitempty"`
	PrimaryOwnerName        string `xml:"PrimaryOwnerName,omitempty"`
	PrimaryOwnerContact     string `xml:"PrimaryOwnerContact,omitempty"`
	StartMode               string `xml:"StartMode,omitempty"`
	Started                 bool   `xml:"Started,omitempty"`
}

type ServiceAccessPoint

type ServiceAccessPoint struct {
	EnabledLogicalElement   EnabledLogicalElement
	SystemCreationClassName string `xml:"SystemCreationClassName,omitempty"`
	SystemName              string `xml:"SystemName,omitempty"`
	CreationClassName       string `xml:"CreationClassName,omitempty"`
}

type ServiceAvailableToElement

type ServiceAvailableToElement struct {
	ServiceProvided ServiceProvider
	UserOfService   UserOfService
}

type ServicePhilosophy

type ServicePhilosophy int

type ServiceProvider

type ServiceProvider struct {
	Address             string `xml:"Address,omitempty"`
	ReferenceParameters ReferenceParameters
}

type SettingData

type SettingData struct {
	XMLName xml.Name `xml:"CIM_SettingData"`
	ManagedElement
	InstanceID string `xml:"InstanceID,omitempty"` // MaxLen=256
}

type SharedCredential

type SharedCredential struct {
	InstanceID string `xml:"InstanceID,omitempty"`
	RemoteID   string `xml:"RemoteID,omitempty"`
	Secret     string `xml:"Secret,omitempty"`
	Algorithm  string `xml:"Algorithm,omitempty"`
	Protocol   string `xml:"Protocol,omitempty"`
}

SharedCredential represents a shared credential for a device.

type SoftwareElement

type SoftwareElement struct {
	LogicalElement
	Version               string                `xml:"Version,omitempty"`
	SoftwareElementState  int                   `xml:"SoftwareElementState,omitempty"`
	SoftwareElementId     string                `xml:"SoftwareElementId,omitempty"`
	TargetOperatingSystem TargetOperatingSystem `xml:"TargetOperatingSystem,omitempty"`
	OtherTargetOs         string                `xml:"OtherTargetOs,omitempty"`
	Manufacturer          string                `xml:"Manufacturer,omitempty"`
	BuildNumber           string                `xml:"BuildNumber,omitempty"`
	SerialNumber          string                `xml:"SerialNumber,omitempty"`
	CodeSet               string                `xml:"CodeSet,omitempty"`
	IdentificationCode    string                `xml:"IdentificationCode,omitempty"`
	LanguageEdition       string                `xml:"LanguageEdition,omitempty"`
}

type SoftwareElementState

type SoftwareElementState int

type SoftwareIdentity

type SoftwareIdentity struct {
	LogicalElement
	CIMSoftwareIdentity []CIMSoftwareIdentityItem
}

type StatusInfoValues

type StatusInfoValues int
const (
	StatusInfo_Other StatusInfoValues = iota + 1
	StatusInfo_Unknown
	StatusInfo_Enabled
	StatusInfo_Disabled
	StatusInfo_NotApplicable
)

type SystemPackage

type SystemPackage struct {
	Antecedent   Antecedent
	Dependent    Dependent
	PlatformGUID string `xml:"PlatformGUID,omitempty"`
}

type TargetOperatingSystem

type TargetOperatingSystem int

type UpgradeMethod

type UpgradeMethod int
const (
	UpgradeMethod_Other UpgradeMethod = iota + 1
	UpgradeMethod_Unknown
	UpgradeMethod_DaughterBoard
	UpgradeMethod_ZIFSocket
	UpgradeMethod_ReplacementPiggyBack
	UpgradeMethod_None
	UpgradeMethod_LIFSocket
	UpgradeMethod_Slot1
	UpgradeMethod_Slot2
	UpgradeMethod_Socket370Pin
	UpgradeMethod_SlotA
	UpgradeMethod_SlotM
	UpgradeMethod_Socket423
	UpgradeMethod_SocketASocket462
	UpgradeMethod_Socket478
	UpgradeMethod_Socket754
	UpgradeMethod_Socket940
	UpgradeMethod_Socket939
	UpgradeMethod_SocketmPGA604
	UpgradeMethod_SocketLGA771
	UpgradeMethod_SocketLGA775
	UpgradeMethod_SocketS1
	UpgradeMethod_SocketAM2
	UpgradeMethod_SocketF1207
	UpgradeMethod_SocketLGA1366
	UpgradeMethod_SocketG34
	UpgradeMethod_SocketAM3
	UpgradeMethod_SocketC32
	UpgradeMethod_SocketLGA1156
	UpgradeMethod_SocketLGA1567
	UpgradeMethod_SocketPGA988A
	UpgradeMethod_SocketBGA1288
	UpgradeMethod_rPGA988B
	UpgradeMethod_BGA1023
	UpgradeMethod_BGA1224
	UpgradeMethod_LGA1155
	UpgradeMethod_LGA1356
	UpgradeMethod_LGA2011
	UpgradeMethod_SocketFS1
	UpgradeMethod_SocketFS2
	UpgradeMethod_SocketFM1
	UpgradeMethod_SocketFM2
	UpgradeMethod_SocketLGA20113
	UpgradeMethod_SocketLGA13563
	UpgradeMethod_SocketLGA1150
	UpgradeMethod_SocketBGA1168
	UpgradeMethod_SocketBGA1234
	UpgradeMethod_SocketBGA1364
	UpgradeMethod_SocketAM4
	UpgradeMethod_SocketLGA1151
	UpgradeMethod_SocketBGA1356
	UpgradeMethod_SocketBGA1440
	UpgradeMethod_SocketBGA1515
	UpgradeMethod_SocketLGA36471
	UpgradeMethod_SocketSP3
	UpgradeMethod_SocketSP3r2
	UpgradeMethod_SocketLGA2066
	UpgradeMethod_SocketBGA1392
	UpgradeMethod_SocketBGA1510
	UpgradeMethod_SocketBGA1528
	UpgradeMethod_SocketLGA4189
	UpgradeMethod_SocketLGA1200
	UpgradeMethod_SocketLGA4677
	UpgradeMethod_SocketLGA1700
	UpgradeMethod_SocketBGA1744
	UpgradeMethod_SocketBGA1781
	UpgradeMethod_SocketBGA1211
	UpgradeMethod_SocketBGA2422
	UpgradeMethod_SocketLGA5773
	UpgradeMethod_SocketBGA5773
	UpgradeMethod_SocketAM5
	UpgradeMethod_SocketSP5
	UpgradeMethod_SocketSP6
	UpgradeMethod_SocketBGA883
	UpgradeMethod_SocketBGA1190
	UpgradeMethod_SocketBGA4129
	UpgradeMethod_SocketLGA4710
	UpgradeMethod_SocketLGA7529
	UpgradeMethod_SocketBGA1964
	UpgradeMethod_SocketBGA1792
	UpgradeMethod_SocketBGA2049
	UpgradeMethod_SocketBGA2551
	UpgradeMethod_SocketLGA1851
	UpgradeMethod_SocketBGA2114
	UpgradeMethod_SocketBGA2833
)

type UserOfService

type UserOfService struct {
	Address             string `xml:"Address,omitempty"`
	ReferenceParameters ReferenceParameters
}

type WiFiPort

type WiFiPort struct {
	NetworkPort
}

Jump to

Keyboard shortcuts

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