func New(c rest.Interface) *StorageV1alpha1Client {
	return &StorageV1alpha1Client{c}
}
New creates a new StorageV1alpha1Client for the given RESTClient.
package v1alpha1
import (
	v1alpha1 "k8s.io/api/storage/v1alpha1"
	serializer "k8s.io/apimachinery/pkg/runtime/serializer"
	"k8s.io/client-go/kubernetes/scheme"
	rest "k8s.io/client-go/rest"
)
type StorageV1alpha1Interface interface {
	RESTClient() rest.Interface
	VolumeAttachmentsGetter
}
type StorageV1alpha1Client struct {
	restClient rest.Interface
}
func (c *StorageV1alpha1Client) VolumeAttachments() VolumeAttachmentInterface {
	return newVolumeAttachments(c)
}
func NewForConfig(c *rest.Config) (*StorageV1alpha1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &StorageV1alpha1Client{client}, nil
}
func NewForConfigOrDie(c *rest.Config) *StorageV1alpha1Client {
	client, err := NewForConfig(c)
	if err != nil {
		panic(err)
	}
	return client
}