optin

package
v2.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	False int = 0
	True  int = 1
)
View Source
const (
	NotStarted int = iota
	Requested
	Displayed
	Received
	InSession
)
View Source
const (
	None uint32 = 0
	KVM  uint32 = 1
	All  uint32 = 4294967295
)
View Source
const (
	ReturnValuePTStatusSuccess int = iota
	ReturnValuePTStatusInternalError
	ReturnValuePTStatusInvalidState
	ReturnValuePTStatusBlocked
	ReturnValuePTStatusFailedFFS
)
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
	GetAndPutResponse     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 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 OptInServiceRequest added in v2.1.11

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

INPUT Request Types

type OptInServiceResponse

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

OUTPUT Response Types

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 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) Put added in v2.1.11

func (service Service) Put(request OptInServiceRequest) (response Response, err error)

Put will change properties of the selected instance

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