optin

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 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
	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 CanModifyOptInPolicy

type CanModifyOptInPolicy int

CanModifyOptInPolicy indicates whether the OptIn policy can be modified.

const (
	CanModifyOptInPolicyFalse CanModifyOptInPolicy = 0
	CanModifyOptInPolicyTrue  CanModifyOptInPolicy = 1
)

func (CanModifyOptInPolicy) String added in v2.2.4

func (c CanModifyOptInPolicy) String() string

String returns a human-readable string representation of the CanModifyOptInPolicy enumeration

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

OptInRequired indicates the OptIn (user consent) policy for redirection operations.

const (
	OptInRequiredNone OptInRequired = iota
	OptInRequiredKVM
	OptInRequiredAll OptInRequired = 4294967295
)

func (OptInRequired) String added in v2.2.4

func (o OptInRequired) String() string

String returns a human-readable string representation of the OptInRequired enumeration

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           OptInRequired        `xml:"OptInRequired"`
	OptInState              OptInState           `xml:"OptInState"`
	CanModifyOptInPolicy    CanModifyOptInPolicy `xml:"CanModifyOptInPolicy,omitempty"`
	OptInDisplayTimeout     int                  `xml:"OptInDisplayTimeout,omitempty"`
}

OUTPUT Response Types

type OptInState

type OptInState int

OptInState indicates the current state of the OptIn (user consent) policy.

const (
	NotStarted OptInState = iota
	Requested
	Displayed
	Received
	InSession
)

func (OptInState) String added in v2.2.4

func (o OptInState) String() string

String returns a human-readable string representation of the OptInState enumeration

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

ReturnValue indicates the status of the operation.

const (
	ReturnValueSuccess ReturnValue = iota
	ReturnValueInternalError
	ReturnValueInvalidState
	ReturnValueBlocked
	ReturnValueFailedFFS
)

func (ReturnValue) String added in v2.2.4

func (r ReturnValue) String() string

String returns a human-readable string representation of the ReturnValue enumeration

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