func (c *KHJobV1Client) RESTClient() rest.Interface {
	if c == nil {
		return nil
	}
	return c.restClient
}
RESTClient returns a RESTClient that is used to communicate
with API server by this client implementation.
package v1
import (
	"k8s.io/apimachinery/pkg/runtime/serializer"
	"k8s.io/client-go/kubernetes/scheme"
	"k8s.io/client-go/rest"
	"k8s.io/client-go/tools/clientcmd"
)
type KHJobV1Interface interface {
	RESTClient() rest.Interface
	KuberhealthyJobsGetter
}
type KHJobV1Client struct {
	restClient rest.Interface
}
func (c *KHJobV1Client) KuberhealthyJobs(namespace string) KuberhealthyJobInterface {
	return newKuberhealthyJobs(c, namespace)
}
func Client(kubeConfigFile string) (*KHJobV1Client, error) {
	c, err := rest.InClusterConfig()
	if err != nil {
		c, err = clientcmd.BuildConfigFromFlags("", kubeConfigFile)
	}
	client, err := NewForConfig(c)
	if err != nil {
		return nil, err
	}
	return client, err
}
func NewForConfig(c *rest.Config) (*KHJobV1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &KHJobV1Client{client}, nil
}
func NewForConfigOrDie(c *rest.Config) *KHJobV1Client {
	client, err := NewForConfig(c)
	if err != nil {
		panic(err)
	}
	return client
}
func New(c rest.Interface) *KHJobV1Client {
	return &KHJobV1Client{c}
}
func setConfigDefaults(config *rest.Config) error {
	err := ConfigureScheme("comcast.github.io", "v1")
	if err != nil {
		return err
	}
	gv := SchemeGroupVersion
	config.GroupVersion = &gv
	config.APIPath = "/apis"
	config.NegotiatedSerializer = serializer.WithoutConversionCodecFactory{CodecFactory: scheme.Codecs}
	if config.UserAgent == "" {
		config.UserAgent = rest.DefaultKubernetesUserAgent()
	}
	return nil
}