def _get_reset_action_element(self): reset_action = self._actions.reset if not reset_action: raise exceptions.MissingActionError(action='#Manager.Reset', resource=self._path) return reset_action
def _get_reset_action_element(self): reset_action = self._actions.reset if not reset_action: raise exceptions.MissingActionError(action="#ComposedNode.Reset", resource=self._path) return reset_action
def _get_secure_erase_action_element(self): secure_erase_action = self._actions.secure_erase if not secure_erase_action: raise exceptions.MissingActionError(action="#Drive.SecureErase", resource=self._path) return secure_erase_action
def _get_reset_action_element(self): reset_action = self._actions.reset # TODO(dtantsur): make this check also declarative? if not reset_action: raise exceptions.MissingActionError(action='#ComputerSystem.Reset', resource=self._path) return reset_action
def _get_initialize_action_element(self): initialize_action = self._actions.initialize if not initialize_action: raise exceptions.MissingActionError( action='#Volume.Initialize', resource=self._path) return initialize_action
def _get_attach_endpoint_action_element(self): attach_endpoint_action = self._actions.attach_endpoint if not attach_endpoint_action: raise exceptions.MissingActionError( action='#ComposedNode.AttachResource', resource=self._path) if attach_endpoint_action.action_info is None: attach_endpoint_action.action_info = \ attach_action_info.AttachResourceActionInfo( self._conn, attach_endpoint_action.action_info_path, redfish_version=self.redfish_version) return attach_endpoint_action
def _get_change_password_element(self): actions = self._actions if not actions: raise exceptions.MissingAttributeError(attribute="Actions", resource=self._path) change_password_action = actions.change_password if not change_password_action: raise exceptions.MissingActionError(action='#Bios.ChangePassword', resource=self._path) return change_password_action
def _get_reset_bios_action_element(self): actions = self._actions if not actions: raise exceptions.MissingAttributeError(attribute="Actions", resource=self._path) reset_bios_action = actions.reset_bios if not reset_bios_action: raise exceptions.MissingActionError(action='#Bios.ResetBios', resource=self._path) return reset_bios_action
def _get_compose_action_element(self): compose_action = self._actions.compose if not compose_action: raise exceptions.MissingActionError( action="#ComposedNodeCollection.Allocate", resource=self._path) return compose_action
def _get_detach_endpoint_action_element(self): detach_endpoint_action = self._actions.detach_endpoint if not detach_endpoint_action: raise exceptions.MissingActionError( action="#ComposedNode.DetachEndpoint", resource=self._path) return detach_endpoint_action
def _get_assemble_action_element(self): assemble_action = self._actions.assemble if not assemble_action: raise exceptions.MissingActionError( action="#ComposedNode.Assemble", resource=self._path) return assemble_action
def _get_eject_media_element(self): eject_media = self._actions.eject_media if not eject_media: raise exceptions.MissingActionError( action='#VirtualMedia.EjectMedia', resource=self._path) return eject_media
def _get_insert_media_element(self): insert_media = self._actions.insert_media if not insert_media: raise exceptions.MissingActionError( action='#VirtualMedia.InsertMedia', resource=self._path) return insert_media
def _get_reset_action_element(self): reset_action = self._actions.reset_keys if not reset_action: raise exceptions.MissingActionError( action='#SecureBootDatabase.ResetKeys', resource=self._path) return reset_action
def _get_attach_endpoint_action_element(self): attach_endpoint_action = self._actions.attach_endpoint if not attach_endpoint_action: raise exceptions.MissingActionError( action='#ComposedNode.AttachEndpoint', resource=self._path) return attach_endpoint_action
def _get_unbind_action_element(self): unbind_action = self._actions.unbind if not unbind_action: raise exceptions.MissingActionError( action="#EthernetSwitchACL.Unbind", resource=self._path) return unbind_action