def validate()

in connector/src/main/scala/com/microsoft/kusto/spark/datasource/TransientStorageParameters.scala [71:87]


  def validate(): Unit = {
    authMethod match {
      case AuthMethod.Sas =>
        if (sasUrl.isEmpty) throw new InvalidParameterException("sasUrl is null or empty")
      case AuthMethod.Key =>
        if (StringUtils.isBlank(storageAccountName)) {
          throw new InvalidParameterException("storageAccount name is null or empty")
        }
        if (StringUtils.isBlank(storageAccountKey)) {
          throw new InvalidParameterException("storageAccount key is null or empty")
        }
        if (StringUtils.isBlank(blobContainer)) {
          throw new InvalidParameterException("blob container name is null or empty")
        }
      case _ =>
    }
  }