optin

package
v2.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const IPS_OptInService string = "IPS_OptInService"

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	XMLName               xml.Name `xml:"Body"`
	EnumerateResponse     common.EnumerateResponse
	GetResponse           OptInServiceResponse `xml:"IPS_OptInService"`
	PullResponse          PullResponse         `xml:"PullResponse"`
	StartOptInResponse    StartOptIn_OUTPUT    `xml:"StartOptIn_OUTPUT"`
	CancelOptInResponse   CancelOptIn_OUTPUT   `xml:"CancelOptIn_OUTPUT"`
	SendOptInCodeResponse SendOptInCode_OUTPUT `xml:"SendOptInCode_OUTPUT"`
}

OUTPUT Response Types

type CanModifyOptInPolicy

type CanModifyOptInPolicy int
const (
	FALSE CanModifyOptInPolicy = 0
	TRUE  CanModifyOptInPolicy = 1
)

type CancelOptIn_OUTPUT

type CancelOptIn_OUTPUT struct {
	XMLName     xml.Name `xml:"CancelOptIn_OUTPUT"`
	ReturnValue int
}

OUTPUT Response Types

type OptInCode

type OptInCode struct {
	XMLName   xml.Name `xml:"h:SendOptInCode_INPUT"`
	H         string   `xml:"xmlns:h,attr"`
	OptInCode int      `xml:"h:OptInCode"`
}

INPUT Request Types

type OptInRequired

type OptInRequired uint32
const (
	None OptInRequired = 0
	KVM  OptInRequired = 1
	All  OptInRequired = 4294967295
)

type OptInService

type OptInService struct {
	XMLName                 xml.Name             `xml:"h:IPS_OptInService"`
	H                       string               `xml:"xmlns:h,attr"`
	Name                    string               `xml:"h:Name,omitempty"`
	CreationClassName       string               `xml:"h:CreationClassName,omitempty"`
	SystemName              string               `xml:"h:SystemName,omitempty"`
	SystemCreationClassName string               `xml:"h:SystemCreationClassName,omitempty"`
	ElementName             string               `xml:"h:ElementName,omitempty"`
	OptInCodeTimeout        int                  `xml:"h:OptInCodeTimeout,omitempty"`
	OptInRequired           OptInRequired        `xml:"h:OptInRequired,omitempty"`
	OptInState              OptInState           `xml:"h:OptInState,omitempty"`
	CanModifyOptInPolicy    CanModifyOptInPolicy `xml:"h:CanModifyOptInPolicy,omitempty"`
	OptInDisplayTimeout     int                  `xml:"h:OptInDisplayTimeout,omitempty"`
}

type OptInServiceResponse

type OptInServiceResponse struct {
	XMLName                 xml.Name `xml:"IPS_OptInService"`
	Name                    string
	CreationClassName       string
	SystemName              string
	SystemCreationClassName string
	ElementName             string
	OptInCodeTimeout        int
	OptInRequired           int
	OptInState              int
	CanModifyOptInPolicy    int
	OptInDisplayTimeout     int
}

OUTPUT Response Types

type OptInState

type OptInState int
const (
	NotStarted OptInState = iota
	Requested
	Displayed
	Received
	InSession
)

type PullResponse

type PullResponse struct {
	XMLName           xml.Name               `xml:"PullResponse"`
	OptInServiceItems []OptInServiceResponse `xml:"Items>IPS_OptInService"`
}

OUTPUT Response Types

type Response

type Response struct {
	*client.Message
	XMLName xml.Name       `xml:"Envelope"`
	Header  message.Header `xml:"Header"`
	Body    Body           `xml:"Body"`
}

OUTPUT Response Types

func (*Response) JSON

func (r *Response) JSON() string

JSON marshals the type into JSON format

func (*Response) YAML

func (r *Response) YAML() string

YAML marshals the type into YAML format

type ReturnValue

type ReturnValue int
const (
	ReturnValuePTStatusSuccess ReturnValue = iota
	ReturnValuePTStatusInternalError
	ReturnValuePTStatusInvalidState
	ReturnValuePTStatusBlocked
	ReturnValuePTStatusFailedFFS
)

type SendOptInCode_OUTPUT

type SendOptInCode_OUTPUT struct {
	XMLName     xml.Name `xml:"SendOptInCode_OUTPUT"`
	ReturnValue int
}

OUTPUT Response Types

type Service

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

func NewOptInServiceWithClient

func NewOptInServiceWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Service

NewOptInService returns a new instance of the OptInService struct.

func (Service) CancelOptIn

func (service Service) CancelOptIn() (response Response, err error)

Cancel a previous opt-in code request.

func (Service) Enumerate

func (service Service) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call

func (Service) Get

func (service Service) Get() (response Response, err error)

Gets the representation of OptInService.

func (Service) Pull

func (service Service) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

func (Service) SendOptInCode

func (service Service) SendOptInCode(optInCode int) (response Response, err error)

Send the opt-in code to Intel® AMT.

func (Service) StartOptIn

func (service Service) StartOptIn() (response Response, err error)

Request an opt-in code.

type StartOptIn_OUTPUT

type StartOptIn_OUTPUT struct {
	XMLName     xml.Name `xml:"StartOptIn_OUTPUT"`
	ReturnValue int
}

OUTPUT Response Types

Jump to

Keyboard shortcuts

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