code: public DeviceTypesEnvelope getDeviceTypes(String name, Integer offset, Integer count, String tags) throws ApiException {
          ApiResponse<DeviceTypesEnvelope> resp = getDeviceTypesWithHttpInfo(name, offset, count, tags);
          return resp.getData();
      }
docs: Get Device Types
  Retrieves Device Types
  @param name Device Type name (required)
  @param offset Offset for pagination. (optional)
  @param count Desired count of items in the result set (optional)
  @param tags Elements tagged with the list of tags. (comma separated) (optional)
  @return DeviceTypesEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body