code: public DeviceSharingId createShareForDevice(String deviceId, DeviceShareInfo deviceShareInfo) throws ApiException {
          ApiResponse<DeviceSharingId> resp = createShareForDeviceWithHttpInfo(deviceId, deviceShareInfo);
          return resp.getData();
      }
docs: Share a device
  Share a device
  @param deviceId Device ID. (required)
  @param deviceShareInfo Device object that needs to be added (required)
  @return DeviceSharingId
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body