// Patch applies the patch and returns the patched horizontalPodAutoscaler. func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(horizontalpodautoscalersResource, c.ns, name, data), &v1beta1.HorizontalPodAutoscaler{}) if obj == nil { return nil, err } return obj.(*v1beta1.HorizontalPodAutoscaler), err }
// Patch applies the patch and returns the patched secret. func (c *FakeSecrets) Patch(name string, pt api.PatchType, data []byte) (result *api.Secret, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(secretsResource, c.ns, name, data), &api.Secret{}) if obj == nil { return nil, err } return obj.(*api.Secret), err }
// Patch applies the patch and returns the patched limitRange. func (c *FakeLimitRanges) Patch(name string, pt api.PatchType, data []byte) (result *api.LimitRange, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(limitrangesResource, c.ns, name, data), &api.LimitRange{}) if obj == nil { return nil, err } return obj.(*api.LimitRange), err }
// Patch applies the patch and returns the patched daemonSet. func (c *FakeDaemonSets) Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.DaemonSet, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(daemonsetsResource, c.ns, name, data), &v1beta1.DaemonSet{}) if obj == nil { return nil, err } return obj.(*v1beta1.DaemonSet), err }
// Patch applies the patch and returns the patched deployment. func (c *FakeDeployments) Patch(name string, pt api.PatchType, data []byte) (result *extensions.Deployment, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(deploymentsResource, c.ns, name, data), &extensions.Deployment{}) if obj == nil { return nil, err } return obj.(*extensions.Deployment), err }
// Patch applies the patch and returns the patched resourceQuota. func (c *FakeResourceQuotas) Patch(name string, pt api.PatchType, data []byte) (result *v1.ResourceQuota, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(resourcequotasResource, c.ns, name, data), &v1.ResourceQuota{}) if obj == nil { return nil, err } return obj.(*v1.ResourceQuota), err }
// Patch applies the patch and returns the patched job. func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte) (result *batch.Job, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(jobsResource, c.ns, name, data), &batch.Job{}) if obj == nil { return nil, err } return obj.(*batch.Job), err }
// Patch applies the patch and returns the patched configMap. func (c *FakeConfigMaps) Patch(name string, pt api.PatchType, data []byte) (result *api.ConfigMap, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(configmapsResource, c.ns, name, data), &api.ConfigMap{}) if obj == nil { return nil, err } return obj.(*api.ConfigMap), err }
// Patch applies the patch and returns the patched persistentVolumeClaim. func (c *FakePersistentVolumeClaims) Patch(name string, pt api.PatchType, data []byte) (result *api.PersistentVolumeClaim, err error) { obj, err := c.Fake. Invokes(core.NewPatchAction(persistentvolumeclaimsResource, c.ns, name, data), &api.PersistentVolumeClaim{}) if obj == nil { return nil, err } return obj.(*api.PersistentVolumeClaim), err }
// Patch patches an existing event. Returns the copy of the event the server returns, or an error. func (c *FakeEvents) Patch(event *v1.Event, data []byte) (*v1.Event, error) { action := core.NewRootPatchAction(eventsResource, event) if c.ns != "" { action = core.NewPatchAction(eventsResource, c.ns, event) } obj, err := c.Fake.Invokes(action, event) if obj == nil { return nil, err } return obj.(*v1.Event), err }