def device_create(self, device, **kwargs):  # noqa: E501
        """Create a device  # noqa: E501

        Create a new device.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass asynchronous=True
        >>> thread = api.device_create(device, asynchronous=True)
        >>> result = thread.get()

        :param asynchronous bool
        :param DeviceDataPostRequest device: (required)
        :return: DeviceData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('asynchronous'):
            return self.device_create_with_http_info(device, **kwargs)  # noqa: E501
        else:
            (data) = self.device_create_with_http_info(device, **kwargs)  # noqa: E501
            return data
Create a device  # noqa: E501

        Create a new device.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass asynchronous=True
        >>> thread = api.device_create(device, asynchronous=True)
        >>> result = thread.get()

        :param asynchronous bool
        :param DeviceDataPostRequest device: (required)
        :return: DeviceData
                 If the method is called asynchronously,
                 returns the request thread.