func NewForConfig(c *rest.Config) (*DiscoveryV1beta1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &DiscoveryV1beta1Client{client}, nil
}
NewForConfig creates a new DiscoveryV1beta1Client for the given config.
package v1beta1
import (
	v1beta1 "k8s.io/api/discovery/v1beta1"
	"k8s.io/client-go/kubernetes/scheme"
	rest "k8s.io/client-go/rest"
)
type DiscoveryV1beta1Interface interface {
	RESTClient() rest.Interface
	EndpointSlicesGetter
}
type DiscoveryV1beta1Client struct {
	restClient rest.Interface
}
func (c *DiscoveryV1beta1Client) EndpointSlices(namespace string) EndpointSliceInterface {
	return newEndpointSlices(c, namespace)
}