def _set_attributes(self, **kwargs):
        '''Set instance attributes based on kwargs

        :param kwargs: dict -- kwargs to set as attributes
        '''

        try:
            self.devices = kwargs['devices'][:]
            self.name = kwargs['device_group_name']
            self.type = kwargs['device_group_type']
            self.partition = kwargs['device_group_partition']
        except KeyError as ex:
            raise MissingRequiredDeviceGroupParameter(ex)
Set instance attributes based on kwargs

        :param kwargs: dict -- kwargs to set as attributes