code: public ApiResponse<DeviceTypesEnvelope> getDeviceTypesWithHttpInfo(String name, Integer offset, Integer count, String tags) throws ApiException {
          com.squareup.okhttp.Call call = getDeviceTypesValidateBeforeCall(name, offset, count, tags, null, null);
          Type localVarReturnType = new TypeToken<DeviceTypesEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
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 ApiResponse&lt;DeviceTypesEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body