func NewForConfig(c *rest.Config) (*ApiextensionsV1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	httpClient, err := rest.HTTPClientFor(&config)
	if err != nil {
		return nil, err
	}
	return NewForConfigAndClient(&config, httpClient)
}
NewForConfig creates a new ApiextensionsV1Client for the given config.
NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
where httpClient was generated with rest.HTTPClientFor(c).
package v1
import (
	"net/http"
	v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
	"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/scheme"
	rest "k8s.io/client-go/rest"
)
type ApiextensionsV1Interface interface {
	RESTClient() rest.Interface
	CustomResourceDefinitionsGetter
}
type ApiextensionsV1Client struct {
	restClient rest.Interface
}
func (c *ApiextensionsV1Client) CustomResourceDefinitions() CustomResourceDefinitionInterface {
	return newCustomResourceDefinitions(c)
}