public ClusterAttributes WithCredentialPassThrough()

in csharp/Microsoft.Azure.Databricks.Client/Models/ClusterAttributes.cs [407:419]


    public ClusterAttributes WithCredentialPassThrough(bool enabled, string singleUserName = default)
    {
        if (enabled && singleUserName == null)
        {
            throw new ArgumentException("When credential pass-through is enabled, you must specify a single user name.");
        }

        SparkConfiguration ??= new Dictionary<string, string>();
        SparkConfiguration["spark.databricks.passthrough.enabled"] = enabled ? "true" : "false";
        this.SingleUserName = enabled ? singleUserName : null;

        return this;
    }