public function updateObjectStateGroup(ObjectStateGroup $objectStateGroup, ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct)
{
$inputMessage = $this->outputVisitor->visit($objectStateGroupUpdateStruct);
$inputMessage->headers['Accept'] = $this->outputVisitor->getMediaType('ObjectStateGroup');
$inputMessage->headers['X-HTTP-Method-Override'] = 'PATCH';
// Should originally be PATCH, but PHP's shiny new internal web server
// dies with it.
$result = $this->client->request('POST', $objectStateGroup->id, $inputMessage);
return $this->inputDispatcher->parse($result);
}