func (c *FakeTenantNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(tenantnetworksResource, c.ns, opts))
}
Watch returns a watch.Interface that watches the requested tenantNetworks.
package fake
import (
	"context"
	danmv1 "github.com/nokia/danm/crd/apis/danm/v1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeTenantNetworks struct {
	Fake *FakeDanmV1
	ns   string
}
var tenantnetworksResource = schema.GroupVersionResource{Group: "danm.k8s.io", Version: "v1", Resource: "tenantnetworks"}
var tenantnetworksKind = schema.GroupVersionKind{Group: "danm.k8s.io", Version: "v1", Kind: "TenantNetwork"}
func (c *FakeTenantNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *danmv1.TenantNetwork, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(tenantnetworksResource, c.ns, name), &danmv1.TenantNetwork{})
	if obj == nil {
		return nil, err
	}
	return obj.(*danmv1.TenantNetwork), err
}
func (c *FakeTenantNetworks) List(ctx context.Context, opts v1.ListOptions) (result *danmv1.TenantNetworkList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(tenantnetworksResource, tenantnetworksKind, c.ns, opts), &danmv1.TenantNetworkList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &danmv1.TenantNetworkList{ListMeta: obj.(*danmv1.TenantNetworkList).ListMeta}
	for _, item := range obj.(*danmv1.TenantNetworkList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}