func (c *FakePolicies) Update(policy *policiesv1.Policy) (result *policiesv1.Policy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(policiesResource, c.ns, policy), &policiesv1.Policy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*policiesv1.Policy), err
}
Update takes the representation of a policy and updates it. Returns the server's representation of the policy, and an error, if there is any.
package fake
import (
	policiesv1 "github.com/ibm-cloud-security/app-identity-and-access-adapter/adapter/pkg/apis/policies/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 FakePolicies struct {
	Fake *FakeAppidV1
	ns   string
}
var policiesResource = schema.GroupVersionResource{Group: "security.cloud.ibm.com", Version: "v1", Resource: "policies"}
var policiesKind = schema.GroupVersionKind{Group: "security.cloud.ibm.com", Version: "v1", Kind: "Policy"}
func (c *FakePolicies) Get(name string, options v1.GetOptions) (result *policiesv1.Policy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(policiesResource, c.ns, name), &policiesv1.Policy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*policiesv1.Policy), err
}
func (c *FakePolicies) List(opts v1.ListOptions) (result *policiesv1.PolicyList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(policiesResource, policiesKind, c.ns, opts), &policiesv1.PolicyList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &policiesv1.PolicyList{ListMeta: obj.(*policiesv1.PolicyList).ListMeta}
	for _, item := range obj.(*policiesv1.PolicyList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakePolicies) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(policiesResource, c.ns, opts))
}
func (c *FakePolicies) Create(policy *policiesv1.Policy) (result *policiesv1.Policy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(policiesResource, c.ns, policy), &policiesv1.Policy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*policiesv1.Policy), err
}