func (c *replicaSets) List(opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) {
	result = &v1beta1.ReplicaSetList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("replicasets").
		VersionedParams(&opts, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
List takes label and field selectors, and returns the list of ReplicaSets that match those selectors.
package v1beta1
import (
	v1beta1 "k8s.io/api/extensions/v1beta1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	scheme "k8s.io/client-go/kubernetes/scheme"
	rest "k8s.io/client-go/rest"
)
type ReplicaSetsGetter interface {
	ReplicaSets(namespace string) ReplicaSetInterface
}
type ReplicaSetInterface interface {
	Create(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error)
	Update(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error)
	UpdateStatus(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1beta1.ReplicaSet, error)
	List(opts v1.ListOptions) (*v1beta1.ReplicaSetList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error)
	GetScale(replicaSetName string, options v1.GetOptions) (*v1beta1.Scale, error)
	UpdateScale(replicaSetName string, scale *v1beta1.Scale) (*v1beta1.Scale, error)
	ReplicaSetExpansion
}
type replicaSets struct {
	client rest.Interface
	ns     string
}
func newReplicaSets(c *ExtensionsV1beta1Client, namespace string) *replicaSets {
	return &replicaSets{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *replicaSets) Get(name string, options v1.GetOptions) (result *v1beta1.ReplicaSet, err error) {
	result = &v1beta1.ReplicaSet{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("replicasets").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}