code: public ApiResponse<DeviceSharingId> createShareForDeviceWithHttpInfo(String deviceId, DeviceShareInfo deviceShareInfo) throws ApiException {
          com.squareup.okhttp.Call call = createShareForDeviceValidateBeforeCall(deviceId, deviceShareInfo, null, null);
          Type localVarReturnType = new TypeToken<DeviceSharingId>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Share a device
  Share a device
  @param deviceId Device ID. (required)
  @param deviceShareInfo Device object that needs to be added (required)
  @return ApiResponse&lt;DeviceSharingId&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body