dto

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerAddressFormatIPv4 = 3
	ServerAddressFormatIPv6 = 4
	ServerAddressFormatURL  = 201
)

Variables

View Source
var ValidateAMTPassOrGenRan validator.Func = func(fl validator.FieldLevel) bool {
	amtPass := fl.Parent().FieldByName("AMTPassword").String()

	return amtPass == ""
}
View Source
var ValidateAuthandIEEE validator.Func = func(fl validator.FieldLevel) bool {
	authMethod, _ := fl.Parent().FieldByName("AuthenticationMethod").Interface().(int)
	profName, _ := fl.Parent().FieldByName("IEEE8021xProfileName").Interface().(*string)
	if authMethod == 5 || authMethod == 7 {
		if profName == nil || *profName == "" {
			return false
		}
	}

	if authMethod == 4 || authMethod == 6 {
		if profName != nil && *profName != "" {
			return false
		}
	}

	return true
}
View Source
var ValidateCIRAOrTLS validator.Func = func(fl validator.FieldLevel) bool {
	ciraConfigField := fl.Parent().FieldByName("CIRAConfigName")
	tlsModeField := fl.Parent().FieldByName("TLSMode")

	ciraConfigName, _ := ciraConfigField.Interface().(*string)
	tlsMode, _ := tlsModeField.Interface().(int)

	if ciraConfigName != nil && *ciraConfigName != "" && tlsMode != 0 {
		return false
	}

	return true
}
View Source
var ValidateUserConsent validator.Func = func(fl validator.FieldLevel) bool {
	userConsent := strings.ToLower(fl.Field().String())
	activation := fl.Parent().FieldByName("Activation").String()
	if activation == "ccmactivate" && userConsent != "All" {
		return false
	}

	return userConsent == "none" || userConsent == "kvm" || userConsent == "all"
}

Functions

func AuthProtocolValidator

func AuthProtocolValidator(fl validator.FieldLevel) bool

Types

type AddAlarmOutput

type AddAlarmOutput struct {
	ReturnValue int // Return code. 0 indicates success
}

type AlarmClockOccurrence

type AlarmClockOccurrence struct {
	ElementName        string    `json:"ElementName" binding:"required" example:"test"`
	InstanceID         string    `json:"InstanceID" binding:"" example:"test"`
	StartTime          StartTime `json:"StartTime" binding:"required"`
	Interval           int       `json:"Interval" default:"0" example:"1"`
	IntervalInMinutes  int       `json:"IntervalInMinutes" example:"1"`
	DeleteOnCompletion bool      `json:"DeleteOnCompletion" binding:"" example:"true"`
}

type AlarmClockOccurrenceInput

type AlarmClockOccurrenceInput struct {
	ElementName        string    `json:"ElementName" binding:"required" example:"test"`
	InstanceID         string    `json:"InstanceID" binding:"" example:"test"`
	StartTime          time.Time `json:"StartTime" binding:"required"`
	Interval           int       `json:"Interval" default:"0" example:"1"`
	DeleteOnCompletion bool      `json:"DeleteOnCompletion" binding:"" example:"true"`
}

type AuditLog

type AuditLog struct {
	TotalCount int                       `json:"totalCnt" binding:"required" example:"0"`
	Records    []auditlog.AuditLogRecord `json:"records" binding:"required"`
}

type BootSetting

type BootSetting struct {
	Action int  `json:"action" binding:"required" example:"8"`
	UseSOL bool `json:"useSOL" binding:"omitempty,required" example:"true"`
}

type CIRAConfig

type CIRAConfig struct {
	ConfigName          string `json:"configName" example:"My CIRA Config"`
	MPSAddress          string `json:"mpsServerAddress" binding:"required,url|ipv4|ipv6" example:"https://example.com"`
	MPSPort             int    `json:"mpsPort" binding:"required,gt=1024,lt=49151" example:"4433"`
	Username            string `json:"username" binding:"required,alphanum" example:"my_username"`
	Password            string `json:"password,omitempty" example:"my_password"`
	CommonName          string `json:"commonName" binding:"required_if=ServerAddressFormat 3" example:"example.com"`
	ServerAddressFormat int    `json:"serverAddressFormat" binding:"required,oneof=3 4 201" example:"201"` // 3 = IPV4, 4= IPV6, 201 = FQDN
	AuthMethod          int    `json:"authMethod" binding:"required,oneof=1 2" example:"2"`                // 1 = Mutal Auth, 2 = Username and Password
	MPSRootCertificate  string `json:"mpsRootCertificate" binding:"required" example:"-----BEGIN CERTIFICATE-----\n..."`
	ProxyDetails        string `json:"proxyDetails" example:"http://example.com"`
	TenantID            string `json:"tenantId" example:"abc123"`
	RegeneratePassword  bool   `json:"regeneratePassword,omitempty" example:"true"`
	Version             string `json:"version,omitempty" example:"1.0.0"`
}

type CertCreationResult

type CertCreationResult struct {
	H             string `json:"h:"`
	Cert          string `json:"cert"`
	PEM           string `json:"pem"`
	CertBin       string `json:"certBin"`
	PrivateKey    string `json:"privateKey"`
	PrivateKeyBin string `json:"privateKeyBin"`
	Checked       bool   `json:"checked" example:"true"`
	Key           []byte `json:"key"`
}

type Certificate

type Certificate struct {
	GUID               string    `json:"guid"`
	CommonName         string    `json:"commonName"`
	IssuerName         string    `json:"issuerName"`
	SerialNumber       string    `json:"serialNumber"`
	NotBefore          time.Time `json:"notBefore"`
	NotAfter           time.Time `json:"notAfter"`
	DNSNames           []string  `json:"dnsNames"`
	SHA1Fingerprint    string    `json:"sha1Fingerprint"`
	SHA256Fingerprint  string    `json:"sha256Fingerprint"`
	PublicKeyAlgorithm string    `json:"publicKeyAlgorithm"`
	PublicKeySize      int       `json:"publicKeySize"`
}

type CertificatePullResponse

type CertificatePullResponse struct {
	KeyManagementItems []RefinedKeyManagementResponse `json:"keyManagementItems,omitempty"`
	Certificates       []RefinedCertificate           `json:"publicKeyCertificateItems,omitempty"`
}

type Credentials

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

type DeleteAlarmOccurrenceRequest

type DeleteAlarmOccurrenceRequest struct {
	Name string `json:"Name" binding:"required" example:"test"`
}

type Device

type Device struct {
	ConnectionStatus bool        `json:"connectionStatus"`
	MPSInstance      string      `json:"mpsInstance"`
	Hostname         string      `json:"hostname"`
	GUID             string      `json:"guid"`
	MPSUsername      string      `json:"mpsusername"`
	Tags             []string    `json:"tags"`
	TenantID         string      `json:"tenantId"`
	FriendlyName     string      `json:"friendlyName"`
	DNSSuffix        string      `json:"dnsSuffix"`
	LastConnected    *time.Time  `json:"lastConnected,omitempty"`
	LastSeen         *time.Time  `json:"lastSeen,omitempty"`
	LastDisconnected *time.Time  `json:"lastDisconnected,omitempty"`
	DeviceInfo       *DeviceInfo `json:"deviceInfo,omitempty"`
	Username         string      `json:"username" binding:"max=16"`
	Password         string      `json:"password"`
	UseTLS           bool        `json:"useTLS"`
	AllowSelfSigned  bool        `json:"allowSelfSigned"`
	CertHash         string      `json:"certHash"`
}

type DeviceInfo

type DeviceInfo struct {
	FWVersion   string    `json:"fwVersion"`
	FWBuild     string    `json:"fwBuild"`
	FWSku       string    `json:"fwSku"`
	CurrentMode string    `json:"currentMode"`
	Features    string    `json:"features"`
	IPAddress   string    `json:"ipAddress"`
	LastUpdated time.Time `json:"lastUpdated"`
}

type Domain

type Domain struct {
	ProfileName                   string    `json:"profileName" binding:"required,alphanum" example:"My Profile"`
	DomainSuffix                  string    `json:"domainSuffix" binding:"required" example:"example.com"`
	ProvisioningCert              string    `json:"provisioningCert,omitempty" binding:"required" example:"-----BEGIN CERTIFICATE-----\n..."`
	ProvisioningCertStorageFormat string    `json:"provisioningCertStorageFormat" binding:"required,oneof=raw string" example:"string"`
	ProvisioningCertPassword      string    `json:"provisioningCertPassword,omitempty" binding:"required,lte=64" example:"my_password"`
	ExpirationDate                time.Time `json:"expirationDate,omitempty" example:"2022-01-01T00:00:00Z"`
	TenantID                      string    `json:"tenantId" example:"abc123"`
	Version                       string    `json:"version,omitempty" example:"1.0.0"`
}

type EventLog

type EventLog struct {
	DeviceAddress   int    `json:"DeviceAddress"`
	EventSensorType int    `json:"EventSensorType"`
	EventType       int    `json:"EventType"`
	EventOffset     int    `json:"EventOffset"`
	EventSourceType int    `json:"EventSourceType"`
	EventSeverity   string `json:"EventSeverity"`
	SensorNumber    int    `json:"SensorNumber"`
	Entity          string `json:"Entity"`
	EntityInstance  int    `json:"EntityInstance"`
	EventData       []int  `json:"EventData"`
	Time            string `json:"Time"`
	EntityStr       string `json:"EntityStr"`
	Description     string `json:"Desc"`
	EventTypeDesc   string `json:"eventTypeDesc"`
}

type Explorer

type Explorer struct {
	XMLInput  string `json:"xmlInput"`
	XMLOutput string `json:"xmlOutput"`
}

type Features

type Features struct {
	UserConsent  string `json:"userConsent" example:"kvm"`
	EnableSOL    bool   `json:"enableSOL" example:"true"`
	EnableIDER   bool   `json:"enableIDER" example:"true"`
	EnableKVM    bool   `json:"enableKVM" example:"true"`
	Redirection  bool   `json:"redirection" example:"true"`
	OptInState   int    `json:"optInState" example:"0"`
	KVMAvailable bool   `json:"kvmAvailable" example:"true"`
}

type FeaturesRequest

type FeaturesRequest struct {
	UserConsent string `json:"userConsent" example:"kvm"`
	EnableSOL   bool   `json:"enableSOL" example:"true"`
	EnableIDER  bool   `json:"enableIDER" example:"true"`
	EnableKVM   bool   `json:"enableKVM" example:"true"`
}

type GetUserConsentMessage

type GetUserConsentMessage struct {
	Body UserConsentMessage `json:"Body" binding:"required"`
}

type IEEE8021x

type IEEE8021x struct {
	Enabled       string `json:"enabled"`
	AvailableInS0 bool   `json:"availableInS0"`
	PxeTimeout    int    `json:"pxeTimeout"`
}

type IEEE8021xConfig

type IEEE8021xConfig struct {
	ProfileName            string `json:"profileName" binding:"required,max=32,alphanum" example:"My Profile"`
	AuthenticationProtocol int    `json:"authenticationProtocol" binding:"authProtocolValidator" example:"1"`
	PXETimeout             *int   `json:"pxeTimeout" binding:"required,number,gte=0,lte=86400" example:"60"`
	WiredInterface         bool   `json:"wiredInterface" example:"false"`
	TenantID               string `json:"tenantId" example:"abc123"`
	Version                string `json:"version,omitempty" example:"1.0.0"`
}

type IEEE8021xSettings

type IEEE8021xSettings struct {
	AuthenticationProtocol          int    `json:"authenticationProtocol"`
	RoamingIdentity                 string `json:"roamingIdentity"`
	ServerCertificateName           string `json:"serverCertificateName"`
	ServerCertificateNameComparison int    `json:"serverCertificateNameComparison"`
	Username                        string `json:"username"`
	Password                        string `json:"password"`
	Domain                          string `json:"domain"`
	ProtectedAccessCredential       string `json:"protectedAccessCredential"`
	PACPassword                     string `json:"pacPassword"`
	PSK                             string `json:"psk"`
}

type Key

type Key struct {
	ElementName       string `json:"elementName,omitempty"`
	InstanceID        string `json:"instanceID,omitempty"`
	DERKey            string `json:"derKey,omitempty"`
	CertificateHandle string `json:"certificateHandle,omitempty"`
}

type KeyPullResponse

type KeyPullResponse struct {
	Keys []Key `json:"publicPrivateKeyPairItems,omitempty"`
}

type NetworkInfo

type NetworkInfo struct {
	ElementName                  string   `json:"elementName"`                            // The user-friendly name for this instance of SettingData. In addition, the user-friendly name can be used as an index property for a search or query. (Note: The name does not have to be unique within a namespace.)
	InstanceID                   string   `json:"instanceID"`                             // Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class.
	VLANTag                      int      `json:"vlanTag"`                                // Indicates whether VLAN is in use and what is the VLAN tag when used.
	SharedMAC                    bool     `json:"sharedMAC"`                              // Indicates whether Intel® AMT shares it's MAC address with the host system.
	MACAddress                   string   `json:"macAddress"`                             // The MAC address used by Intel® AMT in a string format. For Example: 01-02-3f-b0-99-99. (This property can only be read and can't be changed.)
	LinkIsUp                     bool     `json:"linkIsUp"`                               // Indicates whether the network link is up
	LinkPolicy                   []string `json:"linkPolicy"`                             // Enumeration values for link policy restrictions for better power consumption. If Intel® AMT will not be able to determine the exact power state, the more restrictive closest configuration applies.
	LinkPreference               string   `json:"linkPreference,omitempty"`               // Determines whether the link is preferred to be owned by ME or host
	LinkControl                  string   `json:"linkControl,omitempty"`                  // Determines whether the link is owned by ME or host.  Additional Notes: This property is read-only.
	SharedStaticIP               bool     `json:"sharedStaticIP"`                         // Indicates whether the static host IP is shared with ME.
	SharedDynamicIP              bool     `json:"sharedDynamicIP"`                        // Indicates whether the dynamic host IP is shared with ME. This property is read only.
	IPSyncEnabled                bool     `json:"ipSyncEnabled"`                          // Indicates whether the IP synchronization between host and ME is enabled.
	DHCPEnabled                  bool     `json:"dhcpEnabled"`                            // Indicates whether DHCP is in use. Additional Notes: 'DHCPEnabled' is a required field for the Put command.
	IPAddress                    string   `json:"ipAddress"`                              // String representation of IP address. Get operation - reports the acquired IP address (whether in static or DHCP mode). Put operation - sets the IP address (in static mode only).
	SubnetMask                   string   `json:"subnetMask"`                             // Subnet mask in a string format.For example: 255.255.0.0
	DefaultGateway               string   `json:"defaultGateway"`                         // Default Gateway in a string format. For example: 10.12.232.1
	PrimaryDNS                   string   `json:"primaryDNS"`                             // Primary DNS in a string format. For example: 10.12.232.1
	SecondaryDNS                 string   `json:"secondaryDNS"`                           // Secondary DNS in a string format. For example: 10.12.232.1
	ConsoleTCPMaxRetransmissions int      `json:"consoleTCPMaxRetransmissions,omitempty"` // Indicates the number of retransmissions host TCP SW tries ifno ack is accepted
	WLANLinkProtectionLevel      string   `json:"wlanLinkProtectionLevel,omitempty"`      // Defines the level of the link protection feature activation. Read only property.
	PhysicalConnectionType       string   `json:"physicalConnectionType"`                 // Indicates the physical connection type of this network interface. Note: Applicable in Intel AMT 15.0 and later.
	PhysicalNicMedium            string   `json:"physicalNICMedium"`                      // Indicates which medium is currently used by Intel® AMT to communicate with the NIC. Note: Applicable in Intel AMT 15.0 and later.
}

NetworkResults defines the network results for a device.

type NetworkSettings

type NetworkSettings struct {
	Wired    *WiredNetworkInfo    `json:"wired"`
	Wireless *WirelessNetworkInfo `json:"wireless"`
}

NetworkSettings defines the network settings for a device.

type NotValidError

type NotValidError struct {
	Console consoleerrors.InternalError
}

func (NotValidError) Error

func (e NotValidError) Error() string

func (NotValidError) Wrap

func (e NotValidError) Wrap(function, call string, err error) error

type PinCertificate

type PinCertificate struct {
	SHA256Fingerprint string `json:"sha256Fingerprint"`
}

type PowerAction

type PowerAction struct {
	Action int `json:"action" binding:"required" example:"8"`
}

type PowerCapabilities

type PowerCapabilities struct {
	PowerUp    int `json:"Power up,omitempty" example:"0"`
	PowerCycle int `json:"Power cycle,omitempty" example:"0"`
	PowerDown  int `json:"Power down,omitempty" example:"0"`
	Reset      int `json:"Reset,omitempty" example:"0"`

	SoftOff   int `json:"Soft-off,omitempty" example:"0"`
	SoftReset int `json:"Soft-reset,omitempty" example:"0"`
	Sleep     int `json:"Sleep,omitempty" example:"0"`
	Hibernate int `json:"Hibernate,omitempty" example:"0"`

	PowerOnToBIOS int `json:"Power up to BIOS,omitempty" example:"0"`
	ResetToBIOS   int `json:"Reset to BIOS,omitempty" example:"0"`

	ResetToSecureErase int `json:"Reset to Secure Erase,omitempty" example:"0"`

	ResetToIDERFloppy   int `json:"Reset to IDE-R Floppy,omitempty" example:"0"`
	PowerOnToIDERFloppy int `json:"Power on to IDE-R Floppy,omitempty" example:"0"`
	ResetToIDERCDROM    int `json:"Reset to IDE-R CDROM,omitempty" example:"0"`
	PowerOnToIDERCDROM  int `json:"Power on to IDE-R CDROM,omitempty" example:"0"`

	PowerOnToDiagnostic int `json:"Power on to diagnostic,omitempty" example:"0"`
	ResetToDiagnostic   int `json:"Reset to diagnostic,omitempty" example:"0"`

	ResetToPXE   int `json:"Reset to PXE,omitempty" example:"0"`
	PowerOnToPXE int `json:"Power on to PXE,omitempty" example:"0"`
}

type PowerState

type PowerState struct {
	PowerState int `json:"powerstate" binding:"required" example:"0"`
}

type Profile

type Profile struct {
	ProfileName                string               `json:"profileName,omitempty" binding:"required" example:"My Profile"`
	AMTPassword                string               `` /* 156-byte string literal not displayed */
	CreationDate               string               `json:"creationDate,omitempty" example:"2021-07-01T00:00:00Z"`
	CreatedBy                  string               `json:"created_by,omitempty" example:"admin"`
	GenerateRandomPassword     bool                 `json:"generateRandomPassword" binding:"omitempty,genpasswordwone" example:"true"`
	CIRAConfigName             *string              `json:"ciraConfigName,omitempty" example:"My CIRA Config"`
	Activation                 string               `json:"activation" binding:"required,oneof=ccmactivate acmactivate" example:"activate"`
	MEBXPassword               string               `` /* 196-byte string literal not displayed */
	GenerateRandomMEBxPassword bool                 `json:"generateRandomMEBxPassword" example:"true"`
	CIRAConfigObject           *CIRAConfig          `json:"ciraConfigObject,omitempty"`
	Tags                       []string             `json:"tags,omitempty" example:"tag1,tag2"`
	DHCPEnabled                bool                 `json:"dhcpEnabled" example:"true"`
	IPSyncEnabled              bool                 `json:"ipSyncEnabled" example:"true"`
	LocalWiFiSyncEnabled       bool                 `json:"localWifiSyncEnabled" example:"true"`
	WiFiConfigs                []ProfileWiFiConfigs `json:"wifiConfigs,omitempty" binding:"excluded_if=DHCPEnabled false,dive"`
	TenantID                   string               `json:"tenantId" example:"abc123"`
	TLSMode                    int                  `json:"tlsMode,omitempty" binding:"omitempty,min=1,max=4,ciraortls" example:"1"`
	TLSCerts                   *TLSCerts            `json:"tlsCerts,omitempty"`
	TLSSigningAuthority        string               `json:"tlsSigningAuthority,omitempty" binding:"omitempty,oneof=SelfSigned MicrosoftCA" example:"SelfSigned"`
	UserConsent                string               `json:"userConsent,omitempty" binding:"omitempty" default:"All" example:"All"`
	IDEREnabled                bool                 `json:"iderEnabled" example:"true"`
	KVMEnabled                 bool                 `json:"kvmEnabled" example:"true"`
	SOLEnabled                 bool                 `json:"solEnabled" example:"true"`
	IEEE8021xProfileName       *string              `json:"ieee8021xProfileName,omitempty" example:"My Profile"`
	IEEE8021xProfile           *IEEE8021xConfig     `json:"ieee8021xProfile,omitempty"`
	Version                    string               `json:"version,omitempty" example:"1.0.0"`
}

type ProfileAssociation

type ProfileAssociation struct {
	Type              string              `json:"type"`
	ProfileID         string              `json:"profileID"`
	RootCertificate   *RefinedCertificate `json:"rootCertificate,omitempty"`
	ClientCertificate *RefinedCertificate `json:"clientCertificate,omitempty"`
	Key               *Key                `json:"publicKey,omitempty"`
}

type ProfileWiFiConfigs

type ProfileWiFiConfigs struct {
	Priority            int    `json:"priority,omitempty" binding:"min=1,max=255" example:"1"`
	WirelessProfileName string `json:"profileName" example:"My Profile"`
	ProfileName         string `json:"profileProfileName" example:"My Wireless Profile"`
	TenantID            string `json:"tenantId" example:"abc123"`
}

type RefinedCertificate

type RefinedCertificate struct {
	ElementName            string   `json:"elementName,omitempty"`
	InstanceID             string   `json:"instanceID,omitempty"`
	X509Certificate        string   `json:"x509Certificate,omitempty"`
	TrustedRootCertificate bool     `json:"trustedRootCertificate"`
	Issuer                 string   `json:"issuer,omitempty"`
	Subject                string   `json:"subject,omitempty"`
	ReadOnlyCertificate    bool     `json:"readOnlyCertificate"`
	PublicKeyHandle        string   `json:"publicKeyHandle,omitempty"`
	AssociatedProfiles     []string `json:"associatedProfiles,omitempty"`
	DisplayName            string   `json:"displayName,omitempty"`
}

type RefinedKeyManagementResponse

type RefinedKeyManagementResponse struct {
	CreationClassName       string `json:"creationClassName,omitempty"`
	ElementName             string `json:"elementName,omitempty"`
	EnabledDefault          int    `json:"enabledDefault,omitempty"`
	EnabledState            int    `json:"enabledState,omitempty"`
	Name                    string `json:"name,omitempty"`
	RequestedState          int    `json:"requestedState,omitempty"`
	SystemCreationClassName string `json:"systemCreationClassName,omitempty"`
	SystemName              string `json:"systemName,omitempty"`
}

type SecuritySettings

type SecuritySettings struct {
	ProfileAssociation  []ProfileAssociation    `json:"profileAssociation"`
	CertificateResponse CertificatePullResponse `json:"certificates"`
	KeyResponse         KeyPullResponse         `json:"publicKeys"`
}

type SettingDataResponse

type SettingDataResponse struct {
	ElementName                   string   `json:"ElementName,omitempty"`
	InstanceID                    string   `json:"InstanceID,omitempty"`
	MutualAuthentication          bool     `json:"MutualAuthentication"`
	Enabled                       bool     `json:"Enabled"`
	TrustedCN                     []string `json:"TrustedCN,omitempty"`
	AcceptNonSecureConnections    bool     `json:"AcceptNonSecureConnections"`
	NonSecureConnectionsSupported *bool    `json:"NonSecureConnectionsSupported"`
}

type SetupAndConfigurationServiceResponse

type SetupAndConfigurationServiceResponse struct {
	RequestedState                setupandconfiguration.RequestedState         `xml:"RequestedState,omitempty"`                // RequestedState is an integer enumeration that indicates the last requested or desired state for the element, irrespective of the mechanism through which it was requested.
	EnabledState                  setupandconfiguration.EnabledState           `xml:"EnabledState,omitempty"`                  // EnabledState is an integer enumeration that indicates the enabled and disabled states of an element.
	ElementName                   string                                       `xml:"ElementName,omitempty"`                   // A user-friendly name for the object. This property allows each instance to define a user-friendly name in addition to its key properties, identity data, and description information. Note that the Name property of ManagedSystemElement is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user-friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information can be present in both the Name and ElementName properties. Note that if there is an associated instance of CIM_EnabledLogicalElementCapabilities, restrictions on this properties may exist as defined in ElementNameMask and MaxElementNameLen properties defined in that class.
	SystemCreationClassName       string                                       `xml:"SystemCreationClassName,omitempty"`       // The CreationClassName of the scoping System.
	SystemName                    string                                       `xml:"SystemName,omitempty"`                    // The Name of the scoping System.
	CreationClassName             string                                       `xml:"CreationClassName,omitempty"`             // CreationClassName indicates the name of the class or the subclass that is used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
	Name                          string                                       `xml:"Name,omitempty"`                          // The Name property uniquely identifies the Service and provides an indication of the functionality that is managed. This functionality is described in more detail in the Description property of the object.
	ProvisioningMode              setupandconfiguration.ProvisioningModeValue  `xml:"ProvisioningMode,omitempty"`              // A Read-Only enumeration value that determines the behavior of Intel® AMT when it is deployed.
	ProvisioningState             setupandconfiguration.ProvisioningStateValue `xml:"ProvisioningState,omitempty"`             // An enumeration value that indicates the state of the Intel® AMT subsystem in the provisioning process"Pre" - the setup operation has not started."In" - the setup operation is in progress."Post" - Intel® AMT is configured.
	ZeroTouchConfigurationEnabled bool                                         `xml:"ZeroTouchConfigurationEnabled,omitempty"` // Indicates if Zero Touch Configuration (Remote Configuration) is enabled or disabled. This property affects only enterprise mode. It can be modified while in SMB mode
	ProvisioningServerOTP         string                                       `xml:"ProvisioningServerOTP,omitempty"`         // A optional binary data value containing 8-32 characters,that represents a one-time password (OTP), used to authenticate the Intel® AMT to the configuration server. This property can be retrieved only in IN Provisioning state, nevertheless, it is settable also in POST provisioning state.
	ConfigurationServerFQDN       string                                       `xml:"ConfigurationServerFQDN,omitempty"`       // The FQDN of the configuration server.
	PasswordModel                 setupandconfiguration.PasswordModelValue     `xml:"PasswordModel,omitempty"`                 // An enumeration value that determines the password model of Intel® AMT.
	DhcpDNSSuffix                 string                                       `xml:"DhcpDNSSuffix,omitempty"`                 // Domain name received from DHCP
	TrustedDNSSuffix              string                                       `xml:"TrustedDNSSuffix,omitempty"`              // Trusted domain name configured in MEBX
}

type SetupAndConfigurationServiceResponses

type SetupAndConfigurationServiceResponses struct {
	Response SetupAndConfigurationServiceResponse `json:"response"`
}

type SoftwareIdentity

type SoftwareIdentity struct {
	InstanceID    string `json:"InstanceID"`
	VersionString string `json:"VersionString" example:"<major>.<minor>.<revision>.<build>"`
	IsEntity      bool   `json:"IsEntity" example:"true"`
}

type SoftwareIdentityResponses

type SoftwareIdentityResponses struct {
	Responses []SoftwareIdentity `json:"responses"`
}

type StartTime

type StartTime struct {
	Datetime time.Time `json:"Datetime" binding:"required" example:"2024-01-01T00:00:00Z"`
}

type TLSCerts

type TLSCerts struct {
	RootCertificate   CertCreationResult `json:"rootCertificate"`
	IssuedCertificate CertCreationResult `json:"issuedCertificate"`
	Version           string             `json:"version"`
}

type UserConsentCode

type UserConsentCode struct {
	ConsentCode string `json:"consentCode" binding:"required" example:"123456"`
}

type UserConsentMessage

type UserConsentMessage struct {
	Name        xml.Name `json:"XMLName" binding:"required"`
	ReturnValue int      `json:"ReturnValue" binding:"required"`
}

type Version

type Version struct {
	CIMSoftwareIdentity             SoftwareIdentityResponses             `json:"CIM_SoftwareIdentity"`
	AMTSetupAndConfigurationService SetupAndConfigurationServiceResponses `json:"AMT_SetupAndConfigurationService"`
}

type WiFiNetwork

type WiFiNetwork struct {
	ElementName          string `json:"elementName"`
	SSID                 string `json:"ssid"`
	AuthenticationMethod string `json:"authenticationMethod"`
	EncryptionMethod     string `json:"encryptionMethod"`
	Priority             int    `json:"priority"`
	BSSType              string `json:"bsstype"`
}

type WiFiPortConfigService

type WiFiPortConfigService struct {
	RequestedState                     int    `json:"requestedState"`
	EnabledState                       int    `json:"enabledState"`
	HealthState                        int    `json:"healthState"`
	ElementName                        string `json:"elementName"`
	SystemCreationClassName            string `json:"systemCreationClassName"`
	SystemName                         string `json:"systemName"`
	CreationClassName                  string `json:"creationClassName"`
	Name                               string `json:"name"`
	LocalProfileSynchronizationEnabled int    `json:"localProfileSynchronizationEnabled"`
	LastConnectedSsidUnderMeControl    string `json:"lastConnectedSsidUnderMeControl"`
	NoHostCsmeSoftwarePolicy           int    `json:"noHostCsmeSoftwarePolicy"`
	UEFIWiFiProfileShareEnabled        bool   `json:"uefiWiFiProfileShareEnabled"`
}

type WiredNetworkInfo

type WiredNetworkInfo struct {
	NetworkInfo
	IEEE8021x IEEE8021x `json:"ieee8021x"`
}

type WirelessConfig

type WirelessConfig struct {
	ProfileName            string           `json:"profileName,omitempty" example:"My Profile"`
	AuthenticationMethod   int              `json:"authenticationMethod" binding:"required,oneof=4 5 6 7,authforieee8021x" example:"1"`
	EncryptionMethod       int              `json:"encryptionMethod" binding:"oneof=3 4" example:"3"`
	SSID                   string           `json:"ssid" binding:"max=32" example:"abc"`
	PSKValue               int              `json:"pskValue" example:"3"`
	PSKPassphrase          string           `json:"pskPassphrase,omitempty" binding:"omitempty,min=8,max=32" example:"abc"`
	LinkPolicy             []int            `json:"linkPolicy"`
	TenantID               string           `json:"tenantId" example:"abc123"`
	IEEE8021xProfileName   *string          `json:"ieee8021xProfileName,omitempty" example:"My Profile"`
	IEEE8021xProfileObject *IEEE8021xConfig `json:"ieee8021xProfileObject,omitempty"`
	Version                string           `json:"version"`
}

type WirelessConfigCountResponse

type WirelessConfigCountResponse struct {
	Count int              `json:"totalCount"`
	Data  []WirelessConfig `json:"data"`
}

type WirelessNetworkInfo

type WirelessNetworkInfo struct {
	NetworkInfo
	WiFiNetworks          []WiFiNetwork         `json:"wifiNetworks"`
	IEEE8021xSettings     []IEEE8021xSettings   `json:"ieee8021xSettings"`
	WiFiPortConfigService WiFiPortConfigService `json:"wifiPortConfigService"`
}

Jump to

Keyboard shortcuts

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