code: public void promote(String resourceGroupName, String clusterName, String scriptExecutionId) {
          promoteWithServiceResponseAsync(resourceGroupName, clusterName, scriptExecutionId).toBlocking().single().body();
      }
docs: Promotes the specified ad-hoc script execution to a persisted script.
  
  @param resourceGroupName The name of the resource group.
  @param clusterName The name of the cluster.
  @param scriptExecutionId The script execution Id
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent