func NewForConfig(c *rest.Config) (*SparkoperatorV1beta2Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &SparkoperatorV1beta2Client{client}, nil
}
NewForConfig creates a new SparkoperatorV1beta2Client for the given config.
package v1beta2
import (
	v1beta2 "github.com/GoogleCloudPlatform/spark-on-k8s-operator/pkg/apis/sparkoperator.k8s.io/v1beta2"
	"github.com/apache/incubator-yunikorn-k8shim/pkg/sparkclient/clientset/versioned/scheme"
	rest "k8s.io/client-go/rest"
)
type SparkoperatorV1beta2Interface interface {
	RESTClient() rest.Interface
	ScheduledSparkApplicationsGetter
	SparkApplicationsGetter
}
type SparkoperatorV1beta2Client struct {
	restClient rest.Interface
}
func (c *SparkoperatorV1beta2Client) ScheduledSparkApplications(namespace string) ScheduledSparkApplicationInterface {
	return newScheduledSparkApplications(c, namespace)
}
func (c *SparkoperatorV1beta2Client) SparkApplications(namespace string) SparkApplicationInterface {
	return newSparkApplications(c, namespace)
}