service

package
v2.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const CIM_ServiceAvailableToElement string = "CIM_ServiceAvailableToElement"

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableToElement

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

func NewServiceAvailableToElementWithClient

func NewServiceAvailableToElementWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) AvailableToElement

NewServiceAvailableToElement returns a new instance of the ServiceAvailableToElement struct.

func (AvailableToElement) Enumerate

func (availableToElement AvailableToElement) Enumerate() (response Response, err error)

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

func (AvailableToElement) Pull

func (availableToElement AvailableToElement) 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.

type Body

type Body struct {
	XMLName                          xml.Name `xml:"Body"`
	PullResponse                     PullResponse
	EnumerateResponse                common.EnumerateResponse
	AssociatedPowerManagementService CIM_AssociatedPowerManagementService `xml:"CIM_AssociatedPowerManagementService"`
}

Response Types

type CIM_AssociatedPowerManagementService

type CIM_AssociatedPowerManagementService struct {
	AvailableRequestedPowerStates int `xml:"AvailableReuestedPowerStates,omitempty"`
	PowerState                    int `xml:"PowerState,omitempty"`
	ServiceProvided               ServiceProvided
	UserOfService                 UserOfService
}

Response Types

type PullResponse

type PullResponse struct {
	XMLName                          xml.Name                               `xml:"PullResponse"`
	AssociatedPowerManagementService []CIM_AssociatedPowerManagementService `xml:"Items>CIM_AssociatedPowerManagementService"`
}

Response Types

type ReferenceParameters

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

Response Types

type Response

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

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 ServiceProvided

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

Response Types

type UserOfService

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

Response Types

Jump to

Keyboard shortcuts

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