Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap the CIM_AssociatedPowerManagementService service #377

Open
rgl opened this issue Jul 24, 2024 · 0 comments
Open

Wrap the CIM_AssociatedPowerManagementService service #377

rgl opened this issue Jul 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rgl
Copy link

rgl commented Jul 24, 2024

Wrap the CIM_AssociatedPowerManagementService service.

This service has more details about the power state of the system then the existing PowerManagementService, for example, it has the AvailableRequestedPowerStates property, which contains the set of states the system can transition to.

Further documentation about this CIM_AssociatedPowerManagementService service is available at:

It seems this repository already includes the required message type at https://github.com/open-amt-cloud-toolkit/go-wsman-messages/blob/v2.11.1/pkg/wsman/cim/models/types.go#L431-L434

I guess this should be wrapped in a similar way to PowerManagementService, which is used as:

messages := wsman.NewMessages(clientParameters)
response, err := messages.CIM.PowerManagementService.Get()

So, I guess, something like this is needed:

messages := wsman.NewMessages(clientParameters)
response, err := messages.CIM.AssociatedPowerManagementService.Get()
@bwendlandt-intel bwendlandt-intel added the enhancement New feature or request label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants