func (c *petSets) Update(petSet *v1alpha1.PetSet) (result *v1alpha1.PetSet, err error) {
	result = &v1alpha1.PetSet{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("petsets").
		Name(petSet.Name).
		Body(petSet).
		Do().
		Into(result)
	return
}
Update takes the representation of a petSet and updates it. Returns the server's representation of the petSet, and an error, if there is any.
package v1alpha1
import (
	v1alpha1 "github.com/Mirantis/k8s-AppController/pkg/client/petsets/apis/apps/v1alpha1"
	api "k8s.io/client-go/pkg/api"
	watch "k8s.io/client-go/pkg/watch"
)
type PetSetsGetter interface {
	PetSets(namespace string) PetSetInterface
}
type PetSetInterface interface {
	Create(*v1alpha1.PetSet) (*v1alpha1.PetSet, error)
	Update(*v1alpha1.PetSet) (*v1alpha1.PetSet, error)
	UpdateStatus(*v1alpha1.PetSet) (*v1alpha1.PetSet, error)
	Delete(name string, options *api.DeleteOptions) error
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
	Get(name string) (*v1alpha1.PetSet, error)
	List(opts api.ListOptions) (*v1alpha1.PetSetList, error)
	Watch(opts api.ListOptions) (watch.Interface, error)
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PetSet, err error)
	PetSetExpansion
}
type petSets struct {
	client *AppsClient
	ns     string
}
func newPetSets(c *AppsClient, namespace string) *petSets {
	return &petSets{
		client: c,
		ns:     namespace,
	}
}
func (c *petSets) Create(petSet *v1alpha1.PetSet) (result *v1alpha1.PetSet, err error) {
	result = &v1alpha1.PetSet{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("petsets").
		Body(petSet).
		Do().
		Into(result)
	return
}