diff --git a/cmd/libs/go2idl/client-gen/generators/client-generator.go b/cmd/libs/go2idl/client-gen/generators/client-generator.go index d33a4ba6b93..fbe82106d31 100644 --- a/cmd/libs/go2idl/client-gen/generators/client-generator.go +++ b/cmd/libs/go2idl/client-gen/generators/client-generator.go @@ -60,11 +60,12 @@ func NameSystems() namer.NameSystems { "Ingress": "Ingress", } return namer.NameSystems{ - "public": namer.NewPublicNamer(0), - "private": namer.NewPrivateNamer(0), - "raw": namer.NewRawNamer("", nil), - "publicPlural": namer.NewPublicPluralNamer(pluralExceptions), - "privatePlural": namer.NewPrivatePluralNamer(pluralExceptions), + "public": namer.NewPublicNamer(0), + "private": namer.NewPrivateNamer(0), + "raw": namer.NewRawNamer("", nil), + "publicPlural": namer.NewPublicPluralNamer(pluralExceptions), + "privatePlural": namer.NewPrivatePluralNamer(pluralExceptions), + "allLowercasePlural": namer.NewAllLowercasePluralNamer(pluralExceptions), } } diff --git a/cmd/libs/go2idl/client-gen/generators/fake/generator-fake-for-type.go b/cmd/libs/go2idl/client-gen/generators/fake/generator-fake-for-type.go index 606808bcc03..3ad0e507b96 100644 --- a/cmd/libs/go2idl/client-gen/generators/fake/generator-fake-for-type.go +++ b/cmd/libs/go2idl/client-gen/generators/fake/generator-fake-for-type.go @@ -157,8 +157,8 @@ type Fake$.type|publicPlural$ struct { var listTemplate = ` func (c *Fake$.type|publicPlural$) List(opts $.apiListOptions|raw$) (result *$.type|raw$List, err error) { obj, err := c.Fake. - $if .namespaced$Invokes($.NewListAction|raw$("$.type|privatePlural$", c.ns, opts), &$.type|raw$List{}) - $else$Invokes($.NewRootListAction|raw$("$.type|privatePlural$", opts), &$.type|raw$List{})$end$ + $if .namespaced$Invokes($.NewListAction|raw$("$.type|allLowercasePlural$", c.ns, opts), &$.type|raw$List{}) + $else$Invokes($.NewRootListAction|raw$("$.type|allLowercasePlural$", opts), &$.type|raw$List{})$end$ if obj == nil { return nil, err } @@ -169,8 +169,8 @@ func (c *Fake$.type|publicPlural$) List(opts $.apiListOptions|raw$) (result *$.t var listUsingOptionsTemplate = ` func (c *Fake$.type|publicPlural$) List(opts $.apiListOptions|raw$) (result *$.type|raw$List, err error) { obj, err := c.Fake. - $if .namespaced$Invokes($.NewListAction|raw$("$.type|privatePlural$", c.ns, opts), &$.type|raw$List{}) - $else$Invokes($.NewRootListAction|raw$("$.type|privatePlural$", opts), &$.type|raw$List{})$end$ + $if .namespaced$Invokes($.NewListAction|raw$("$.type|allLowercasePlural$", c.ns, opts), &$.type|raw$List{}) + $else$Invokes($.NewRootListAction|raw$("$.type|allLowercasePlural$", opts), &$.type|raw$List{})$end$ if obj == nil { return nil, err } @@ -192,8 +192,8 @@ func (c *Fake$.type|publicPlural$) List(opts $.apiListOptions|raw$) (result *$.t var getTemplate = ` func (c *Fake$.type|publicPlural$) Get(name string) (result *$.type|raw$, err error) { obj, err := c.Fake. - $if .namespaced$Invokes($.NewGetAction|raw$("$.type|privatePlural$", c.ns, name), &$.type|raw${}) - $else$Invokes($.NewRootGetAction|raw$("$.type|privatePlural$", name), &$.type|raw${})$end$ + $if .namespaced$Invokes($.NewGetAction|raw$("$.type|allLowercasePlural$", c.ns, name), &$.type|raw${}) + $else$Invokes($.NewRootGetAction|raw$("$.type|allLowercasePlural$", name), &$.type|raw${})$end$ if obj == nil { return nil, err } @@ -204,8 +204,8 @@ func (c *Fake$.type|publicPlural$) Get(name string) (result *$.type|raw$, err er var deleteTemplate = ` func (c *Fake$.type|publicPlural$) Delete(name string, options *$.apiDeleteOptions|raw$) error { _, err := c.Fake. - $if .namespaced$Invokes($.NewDeleteAction|raw$("$.type|privatePlural$", c.ns, name), &$.type|raw${}) - $else$Invokes($.NewRootDeleteAction|raw$("$.type|privatePlural$", name), &$.type|raw${})$end$ + $if .namespaced$Invokes($.NewDeleteAction|raw$("$.type|allLowercasePlural$", c.ns, name), &$.type|raw${}) + $else$Invokes($.NewRootDeleteAction|raw$("$.type|allLowercasePlural$", name), &$.type|raw${})$end$ return err } ` @@ -223,8 +223,8 @@ func (c *Fake$.type|publicPlural$) DeleteCollection(options *$.apiDeleteOptions| var createTemplate = ` func (c *Fake$.type|publicPlural$) Create($.type|private$ *$.type|raw$) (result *$.type|raw$, err error) { obj, err := c.Fake. - $if .namespaced$Invokes($.NewCreateAction|raw$("$.type|privatePlural$", c.ns, $.type|private$), &$.type|raw${}) - $else$Invokes($.NewRootCreateAction|raw$("$.type|privatePlural$", $.type|private$), &$.type|raw${})$end$ + $if .namespaced$Invokes($.NewCreateAction|raw$("$.type|allLowercasePlural$", c.ns, $.type|private$), &$.type|raw${}) + $else$Invokes($.NewRootCreateAction|raw$("$.type|allLowercasePlural$", $.type|private$), &$.type|raw${})$end$ if obj == nil { return nil, err } @@ -235,8 +235,8 @@ func (c *Fake$.type|publicPlural$) Create($.type|private$ *$.type|raw$) (result var updateTemplate = ` func (c *Fake$.type|publicPlural$) Update($.type|private$ *$.type|raw$) (result *$.type|raw$, err error) { obj, err := c.Fake. - $if .namespaced$Invokes($.NewUpdateAction|raw$("$.type|privatePlural$", c.ns, $.type|private$), &$.type|raw${}) - $else$Invokes($.NewRootUpdateAction|raw$("$.type|privatePlural$", $.type|private$), &$.type|raw${})$end$ + $if .namespaced$Invokes($.NewUpdateAction|raw$("$.type|allLowercasePlural$", c.ns, $.type|private$), &$.type|raw${}) + $else$Invokes($.NewRootUpdateAction|raw$("$.type|allLowercasePlural$", $.type|private$), &$.type|raw${})$end$ if obj == nil { return nil, err } @@ -247,8 +247,8 @@ func (c *Fake$.type|publicPlural$) Update($.type|private$ *$.type|raw$) (result var updateStatusTemplate = ` func (c *Fake$.type|publicPlural$) UpdateStatus($.type|private$ *$.type|raw$) (*$.type|raw$, error) { obj, err := c.Fake. - $if .namespaced$Invokes($.NewUpdateSubresourceAction|raw$("$.type|privatePlural$", "status", c.ns, $.type|private$), &$.type|raw${}) - $else$Invokes($.NewRootUpdateSubresourceAction|raw$("$.type|privatePlural$", "status", $.type|private$), &$.type|raw${})$end$ + $if .namespaced$Invokes($.NewUpdateSubresourceAction|raw$("$.type|allLowercasePlural$", "status", c.ns, $.type|private$), &$.type|raw${}) + $else$Invokes($.NewRootUpdateSubresourceAction|raw$("$.type|allLowercasePlural$", "status", $.type|private$), &$.type|raw${})$end$ if obj == nil { return nil, err } @@ -260,7 +260,7 @@ var watchTemplate = ` // Watch returns a $.watchInterface|raw$ that watches the requested $.type|privatePlural$. func (c *Fake$.type|publicPlural$) Watch(opts $.apiListOptions|raw$) ($.watchInterface|raw$, error) { return c.Fake. - $if .namespaced$InvokesWatch($.NewWatchAction|raw$("$.type|privatePlural$", c.ns, opts)) - $else$InvokesWatch($.NewRootWatchAction|raw$("$.type|privatePlural$", opts))$end$ + $if .namespaced$InvokesWatch($.NewWatchAction|raw$("$.type|allLowercasePlural$", c.ns, opts)) + $else$InvokesWatch($.NewRootWatchAction|raw$("$.type|allLowercasePlural$", opts))$end$ } ` diff --git a/cmd/libs/go2idl/client-gen/generators/generator-for-type.go b/cmd/libs/go2idl/client-gen/generators/generator-for-type.go index fc11b8d9009..bc859a1c732 100644 --- a/cmd/libs/go2idl/client-gen/generators/generator-for-type.go +++ b/cmd/libs/go2idl/client-gen/generators/generator-for-type.go @@ -206,7 +206,7 @@ func (c *$.type|privatePlural$) List(opts $.apiListOptions|raw$) (result *$.type result = &$.type|raw$List{} err = c.client.Get(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -219,7 +219,7 @@ func (c *$.type|privatePlural$) Get(name string) (result *$.type|raw$, err error result = &$.type|raw${} err = c.client.Get(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). Name(name). Do(). Into(result) @@ -232,7 +232,7 @@ var deleteTemplate = ` func (c *$.type|privatePlural$) Delete(name string, options *$.apiDeleteOptions|raw$) error { return c.client.Delete(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). Name(name). Body(options). Do(). @@ -245,7 +245,7 @@ var deleteCollectionTemplate = ` func (c *$.type|privatePlural$) DeleteCollection(options *$.apiDeleteOptions|raw$, listOptions $.apiListOptions|raw$) error { return c.client.Delete(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -259,7 +259,7 @@ func (c *$.type|privatePlural$) Create($.type|private$ *$.type|raw$) (result *$. result = &$.type|raw${} err = c.client.Post(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). Body($.type|private$). Do(). Into(result) @@ -273,7 +273,7 @@ func (c *$.type|privatePlural$) Update($.type|private$ *$.type|raw$) (result *$. result = &$.type|raw${} err = c.client.Put(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). Name($.type|private$.Name). Body($.type|private$). Do(). @@ -287,7 +287,7 @@ func (c *$.type|privatePlural$) UpdateStatus($.type|private$ *$.type|raw$) (resu result = &$.type|raw${} err = c.client.Put(). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). Name($.type|private$.Name). SubResource("status"). Body($.type|private$). @@ -303,7 +303,7 @@ func (c *$.type|privatePlural$) Watch(opts $.apiListOptions|raw$) ($.watchInterf return c.client.Get(). Prefix("watch"). $if .namespaced$Namespace(c.ns).$end$ - Resource("$.type|privatePlural$"). + Resource("$.type|allLowercasePlural$"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testtype.go b/cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testtype.go index 8d068b22db7..f212ad217ea 100644 --- a/cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testtype.go +++ b/cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testtype.go @@ -60,7 +60,7 @@ func (c *testTypes) Create(testType *testgroup.TestType) (result *testgroup.Test result = &testgroup.TestType{} err = c.client.Post(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). Body(testType). Do(). Into(result) @@ -72,7 +72,7 @@ func (c *testTypes) Update(testType *testgroup.TestType) (result *testgroup.Test result = &testgroup.TestType{} err = c.client.Put(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). Name(testType.Name). Body(testType). Do(). @@ -84,7 +84,7 @@ func (c *testTypes) UpdateStatus(testType *testgroup.TestType) (result *testgrou result = &testgroup.TestType{} err = c.client.Put(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). Name(testType.Name). SubResource("status"). Body(testType). @@ -97,7 +97,7 @@ func (c *testTypes) UpdateStatus(testType *testgroup.TestType) (result *testgrou func (c *testTypes) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). Name(name). Body(options). Do(). @@ -108,7 +108,7 @@ func (c *testTypes) Delete(name string, options *api.DeleteOptions) error { func (c *testTypes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -120,7 +120,7 @@ func (c *testTypes) Get(name string) (result *testgroup.TestType, err error) { result = &testgroup.TestType{} err = c.client.Get(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). Name(name). Do(). Into(result) @@ -132,7 +132,7 @@ func (c *testTypes) List(opts api.ListOptions) (result *testgroup.TestTypeList, result = &testgroup.TestTypeList{} err = c.client.Get(). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -144,7 +144,7 @@ func (c *testTypes) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("testTypes"). + Resource("testtypes"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/cmd/libs/go2idl/namer/plural_namer.go b/cmd/libs/go2idl/namer/plural_namer.go index bcd42c8e12c..6348a014645 100644 --- a/cmd/libs/go2idl/namer/plural_namer.go +++ b/cmd/libs/go2idl/namer/plural_namer.go @@ -16,7 +16,11 @@ limitations under the License. package namer -import "k8s.io/kubernetes/cmd/libs/go2idl/types" +import ( + "strings" + + "k8s.io/kubernetes/cmd/libs/go2idl/types" +) type pluralNamer struct { // key is the case-sensitive type name, value is the case-insensitive @@ -37,6 +41,12 @@ func NewPrivatePluralNamer(exceptions map[string]string) *pluralNamer { return &pluralNamer{exceptions, IL} } +// NewAllLowercasePluralNamer returns a namer that returns the plural form of the input +// type's name, with all letters in lowercase. +func NewAllLowercasePluralNamer(exceptions map[string]string) *pluralNamer { + return &pluralNamer{exceptions, strings.ToLower} +} + // Name returns the plural form of the type's name. If the type's name is found // in the exceptions map, the map value is returned. func (r *pluralNamer) Name(t *types.Type) string { diff --git a/pkg/client/typed/generated/extensions/unversioned/daemonset.go b/pkg/client/typed/generated/extensions/unversioned/daemonset.go index 8c8e1adda67..d76de635b76 100644 --- a/pkg/client/typed/generated/extensions/unversioned/daemonset.go +++ b/pkg/client/typed/generated/extensions/unversioned/daemonset.go @@ -60,7 +60,7 @@ func (c *daemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions result = &extensions.DaemonSet{} err = c.client.Post(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). Body(daemonSet). Do(). Into(result) @@ -72,7 +72,7 @@ func (c *daemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions result = &extensions.DaemonSet{} err = c.client.Put(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). Name(daemonSet.Name). Body(daemonSet). Do(). @@ -84,7 +84,7 @@ func (c *daemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (result *exte result = &extensions.DaemonSet{} err = c.client.Put(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). Name(daemonSet.Name). SubResource("status"). Body(daemonSet). @@ -97,7 +97,7 @@ func (c *daemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (result *exte func (c *daemonSets) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). Name(name). Body(options). Do(). @@ -108,7 +108,7 @@ func (c *daemonSets) Delete(name string, options *api.DeleteOptions) error { func (c *daemonSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -120,7 +120,7 @@ func (c *daemonSets) Get(name string) (result *extensions.DaemonSet, err error) result = &extensions.DaemonSet{} err = c.client.Get(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). Name(name). Do(). Into(result) @@ -132,7 +132,7 @@ func (c *daemonSets) List(opts api.ListOptions) (result *extensions.DaemonSetLis result = &extensions.DaemonSetList{} err = c.client.Get(). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -144,7 +144,7 @@ func (c *daemonSets) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("daemonSets"). + Resource("daemonsets"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/extensions/unversioned/fake/fake_daemonset.go b/pkg/client/typed/generated/extensions/unversioned/fake/fake_daemonset.go index 336f8fb1235..2bbfaa784af 100644 --- a/pkg/client/typed/generated/extensions/unversioned/fake/fake_daemonset.go +++ b/pkg/client/typed/generated/extensions/unversioned/fake/fake_daemonset.go @@ -32,7 +32,7 @@ type FakeDaemonSets struct { func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("daemonSets", c.ns, daemonSet), &extensions.DaemonSet{}) + Invokes(core.NewCreateAction("daemonsets", c.ns, daemonSet), &extensions.DaemonSet{}) if obj == nil { return nil, err @@ -42,7 +42,7 @@ func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extens func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("daemonSets", c.ns, daemonSet), &extensions.DaemonSet{}) + Invokes(core.NewUpdateAction("daemonsets", c.ns, daemonSet), &extensions.DaemonSet{}) if obj == nil { return nil, err @@ -52,7 +52,7 @@ func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extens func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.DaemonSet, error) { obj, err := c.Fake. - Invokes(core.NewUpdateSubresourceAction("daemonSets", "status", c.ns, daemonSet), &extensions.DaemonSet{}) + Invokes(core.NewUpdateSubresourceAction("daemonsets", "status", c.ns, daemonSet), &extensions.DaemonSet{}) if obj == nil { return nil, err @@ -62,7 +62,7 @@ func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensi func (c *FakeDaemonSets) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("daemonSets", c.ns, name), &extensions.DaemonSet{}) + Invokes(core.NewDeleteAction("daemonsets", c.ns, name), &extensions.DaemonSet{}) return err } @@ -76,7 +76,7 @@ func (c *FakeDaemonSets) DeleteCollection(options *api.DeleteOptions, listOption func (c *FakeDaemonSets) Get(name string) (result *extensions.DaemonSet, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("daemonSets", c.ns, name), &extensions.DaemonSet{}) + Invokes(core.NewGetAction("daemonsets", c.ns, name), &extensions.DaemonSet{}) if obj == nil { return nil, err @@ -86,7 +86,7 @@ func (c *FakeDaemonSets) Get(name string) (result *extensions.DaemonSet, err err func (c *FakeDaemonSets) List(opts api.ListOptions) (result *extensions.DaemonSetList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("daemonSets", c.ns, opts), &extensions.DaemonSetList{}) + Invokes(core.NewListAction("daemonsets", c.ns, opts), &extensions.DaemonSetList{}) if obj == nil { return nil, err @@ -108,6 +108,6 @@ func (c *FakeDaemonSets) List(opts api.ListOptions) (result *extensions.DaemonSe // Watch returns a watch.Interface that watches the requested daemonSets. func (c *FakeDaemonSets) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("daemonSets", c.ns, opts)) + InvokesWatch(core.NewWatchAction("daemonsets", c.ns, opts)) } diff --git a/pkg/client/typed/generated/extensions/unversioned/fake/fake_horizontalpodautoscaler.go b/pkg/client/typed/generated/extensions/unversioned/fake/fake_horizontalpodautoscaler.go index dca9f4d5426..52083514f52 100644 --- a/pkg/client/typed/generated/extensions/unversioned/fake/fake_horizontalpodautoscaler.go +++ b/pkg/client/typed/generated/extensions/unversioned/fake/fake_horizontalpodautoscaler.go @@ -32,7 +32,7 @@ type FakeHorizontalPodAutoscalers struct { func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("horizontalPodAutoscalers", c.ns, horizontalPodAutoscaler), &extensions.HorizontalPodAutoscaler{}) + Invokes(core.NewCreateAction("horizontalpodautoscalers", c.ns, horizontalPodAutoscaler), &extensions.HorizontalPodAutoscaler{}) if obj == nil { return nil, err @@ -42,7 +42,7 @@ func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *extension func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("horizontalPodAutoscalers", c.ns, horizontalPodAutoscaler), &extensions.HorizontalPodAutoscaler{}) + Invokes(core.NewUpdateAction("horizontalpodautoscalers", c.ns, horizontalPodAutoscaler), &extensions.HorizontalPodAutoscaler{}) if obj == nil { return nil, err @@ -52,7 +52,7 @@ func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *extension func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (*extensions.HorizontalPodAutoscaler, error) { obj, err := c.Fake. - Invokes(core.NewUpdateSubresourceAction("horizontalPodAutoscalers", "status", c.ns, horizontalPodAutoscaler), &extensions.HorizontalPodAutoscaler{}) + Invokes(core.NewUpdateSubresourceAction("horizontalpodautoscalers", "status", c.ns, horizontalPodAutoscaler), &extensions.HorizontalPodAutoscaler{}) if obj == nil { return nil, err @@ -62,7 +62,7 @@ func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *ext func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("horizontalPodAutoscalers", c.ns, name), &extensions.HorizontalPodAutoscaler{}) + Invokes(core.NewDeleteAction("horizontalpodautoscalers", c.ns, name), &extensions.HorizontalPodAutoscaler{}) return err } @@ -76,7 +76,7 @@ func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *api.DeleteOptio func (c *FakeHorizontalPodAutoscalers) Get(name string) (result *extensions.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("horizontalPodAutoscalers", c.ns, name), &extensions.HorizontalPodAutoscaler{}) + Invokes(core.NewGetAction("horizontalpodautoscalers", c.ns, name), &extensions.HorizontalPodAutoscaler{}) if obj == nil { return nil, err @@ -86,7 +86,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(name string) (result *extensions.Hori func (c *FakeHorizontalPodAutoscalers) List(opts api.ListOptions) (result *extensions.HorizontalPodAutoscalerList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("horizontalPodAutoscalers", c.ns, opts), &extensions.HorizontalPodAutoscalerList{}) + Invokes(core.NewListAction("horizontalpodautoscalers", c.ns, opts), &extensions.HorizontalPodAutoscalerList{}) if obj == nil { return nil, err @@ -108,6 +108,6 @@ func (c *FakeHorizontalPodAutoscalers) List(opts api.ListOptions) (result *exten // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("horizontalPodAutoscalers", c.ns, opts)) + InvokesWatch(core.NewWatchAction("horizontalpodautoscalers", c.ns, opts)) } diff --git a/pkg/client/typed/generated/extensions/unversioned/fake/fake_thirdpartyresource.go b/pkg/client/typed/generated/extensions/unversioned/fake/fake_thirdpartyresource.go index 205d4b79f84..afb78f39985 100644 --- a/pkg/client/typed/generated/extensions/unversioned/fake/fake_thirdpartyresource.go +++ b/pkg/client/typed/generated/extensions/unversioned/fake/fake_thirdpartyresource.go @@ -32,7 +32,7 @@ type FakeThirdPartyResources struct { func (c *FakeThirdPartyResources) Create(thirdPartyResource *extensions.ThirdPartyResource) (result *extensions.ThirdPartyResource, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("thirdPartyResources", c.ns, thirdPartyResource), &extensions.ThirdPartyResource{}) + Invokes(core.NewCreateAction("thirdpartyresources", c.ns, thirdPartyResource), &extensions.ThirdPartyResource{}) if obj == nil { return nil, err @@ -42,7 +42,7 @@ func (c *FakeThirdPartyResources) Create(thirdPartyResource *extensions.ThirdPar func (c *FakeThirdPartyResources) Update(thirdPartyResource *extensions.ThirdPartyResource) (result *extensions.ThirdPartyResource, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("thirdPartyResources", c.ns, thirdPartyResource), &extensions.ThirdPartyResource{}) + Invokes(core.NewUpdateAction("thirdpartyresources", c.ns, thirdPartyResource), &extensions.ThirdPartyResource{}) if obj == nil { return nil, err @@ -52,7 +52,7 @@ func (c *FakeThirdPartyResources) Update(thirdPartyResource *extensions.ThirdPar func (c *FakeThirdPartyResources) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("thirdPartyResources", c.ns, name), &extensions.ThirdPartyResource{}) + Invokes(core.NewDeleteAction("thirdpartyresources", c.ns, name), &extensions.ThirdPartyResource{}) return err } @@ -66,7 +66,7 @@ func (c *FakeThirdPartyResources) DeleteCollection(options *api.DeleteOptions, l func (c *FakeThirdPartyResources) Get(name string) (result *extensions.ThirdPartyResource, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("thirdPartyResources", c.ns, name), &extensions.ThirdPartyResource{}) + Invokes(core.NewGetAction("thirdpartyresources", c.ns, name), &extensions.ThirdPartyResource{}) if obj == nil { return nil, err @@ -76,7 +76,7 @@ func (c *FakeThirdPartyResources) Get(name string) (result *extensions.ThirdPart func (c *FakeThirdPartyResources) List(opts api.ListOptions) (result *extensions.ThirdPartyResourceList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("thirdPartyResources", c.ns, opts), &extensions.ThirdPartyResourceList{}) + Invokes(core.NewListAction("thirdpartyresources", c.ns, opts), &extensions.ThirdPartyResourceList{}) if obj == nil { return nil, err @@ -98,6 +98,6 @@ func (c *FakeThirdPartyResources) List(opts api.ListOptions) (result *extensions // Watch returns a watch.Interface that watches the requested thirdPartyResources. func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("thirdPartyResources", c.ns, opts)) + InvokesWatch(core.NewWatchAction("thirdpartyresources", c.ns, opts)) } diff --git a/pkg/client/typed/generated/extensions/unversioned/horizontalpodautoscaler.go b/pkg/client/typed/generated/extensions/unversioned/horizontalpodautoscaler.go index 50422bdacb2..78424854282 100644 --- a/pkg/client/typed/generated/extensions/unversioned/horizontalpodautoscaler.go +++ b/pkg/client/typed/generated/extensions/unversioned/horizontalpodautoscaler.go @@ -60,7 +60,7 @@ func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *extensions.Ho result = &extensions.HorizontalPodAutoscaler{} err = c.client.Post(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). Body(horizontalPodAutoscaler). Do(). Into(result) @@ -72,7 +72,7 @@ func (c *horizontalPodAutoscalers) Update(horizontalPodAutoscaler *extensions.Ho result = &extensions.HorizontalPodAutoscaler{} err = c.client.Put(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). Name(horizontalPodAutoscaler.Name). Body(horizontalPodAutoscaler). Do(). @@ -84,7 +84,7 @@ func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *extensi result = &extensions.HorizontalPodAutoscaler{} err = c.client.Put(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). Name(horizontalPodAutoscaler.Name). SubResource("status"). Body(horizontalPodAutoscaler). @@ -97,7 +97,7 @@ func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *extensi func (c *horizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). Name(name). Body(options). Do(). @@ -108,7 +108,7 @@ func (c *horizontalPodAutoscalers) Delete(name string, options *api.DeleteOption func (c *horizontalPodAutoscalers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -120,7 +120,7 @@ func (c *horizontalPodAutoscalers) Get(name string) (result *extensions.Horizont result = &extensions.HorizontalPodAutoscaler{} err = c.client.Get(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). Name(name). Do(). Into(result) @@ -132,7 +132,7 @@ func (c *horizontalPodAutoscalers) List(opts api.ListOptions) (result *extension result = &extensions.HorizontalPodAutoscalerList{} err = c.client.Get(). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -144,7 +144,7 @@ func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("horizontalPodAutoscalers"). + Resource("horizontalpodautoscalers"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/extensions/unversioned/thirdpartyresource.go b/pkg/client/typed/generated/extensions/unversioned/thirdpartyresource.go index 2e47339cadf..2b645e71189 100644 --- a/pkg/client/typed/generated/extensions/unversioned/thirdpartyresource.go +++ b/pkg/client/typed/generated/extensions/unversioned/thirdpartyresource.go @@ -59,7 +59,7 @@ func (c *thirdPartyResources) Create(thirdPartyResource *extensions.ThirdPartyRe result = &extensions.ThirdPartyResource{} err = c.client.Post(). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). Body(thirdPartyResource). Do(). Into(result) @@ -71,7 +71,7 @@ func (c *thirdPartyResources) Update(thirdPartyResource *extensions.ThirdPartyRe result = &extensions.ThirdPartyResource{} err = c.client.Put(). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). Name(thirdPartyResource.Name). Body(thirdPartyResource). Do(). @@ -83,7 +83,7 @@ func (c *thirdPartyResources) Update(thirdPartyResource *extensions.ThirdPartyRe func (c *thirdPartyResources) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). Name(name). Body(options). Do(). @@ -94,7 +94,7 @@ func (c *thirdPartyResources) Delete(name string, options *api.DeleteOptions) er func (c *thirdPartyResources) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -106,7 +106,7 @@ func (c *thirdPartyResources) Get(name string) (result *extensions.ThirdPartyRes result = &extensions.ThirdPartyResource{} err = c.client.Get(). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). Name(name). Do(). Into(result) @@ -118,7 +118,7 @@ func (c *thirdPartyResources) List(opts api.ListOptions) (result *extensions.Thi result = &extensions.ThirdPartyResourceList{} err = c.client.Get(). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -130,7 +130,7 @@ func (c *thirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, erro return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("thirdPartyResources"). + Resource("thirdpartyresources"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/componentstatus.go b/pkg/client/typed/generated/legacy/unversioned/componentstatus.go index b40d59b463c..7a65a7b9492 100644 --- a/pkg/client/typed/generated/legacy/unversioned/componentstatus.go +++ b/pkg/client/typed/generated/legacy/unversioned/componentstatus.go @@ -55,7 +55,7 @@ func newComponentStatus(c *LegacyClient) *componentStatus { func (c *componentStatus) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { result = &api.ComponentStatus{} err = c.client.Post(). - Resource("componentStatus"). + Resource("componentstatus"). Body(componentStatus). Do(). Into(result) @@ -66,7 +66,7 @@ func (c *componentStatus) Create(componentStatus *api.ComponentStatus) (result * func (c *componentStatus) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { result = &api.ComponentStatus{} err = c.client.Put(). - Resource("componentStatus"). + Resource("componentstatus"). Name(componentStatus.Name). Body(componentStatus). Do(). @@ -77,7 +77,7 @@ func (c *componentStatus) Update(componentStatus *api.ComponentStatus) (result * // Delete takes name of the componentStatus and deletes it. Returns an error if one occurs. func (c *componentStatus) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). - Resource("componentStatus"). + Resource("componentstatus"). Name(name). Body(options). Do(). @@ -87,7 +87,7 @@ func (c *componentStatus) Delete(name string, options *api.DeleteOptions) error // DeleteCollection deletes a collection of objects. func (c *componentStatus) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). - Resource("componentStatus"). + Resource("componentstatus"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -98,7 +98,7 @@ func (c *componentStatus) DeleteCollection(options *api.DeleteOptions, listOptio func (c *componentStatus) Get(name string) (result *api.ComponentStatus, err error) { result = &api.ComponentStatus{} err = c.client.Get(). - Resource("componentStatus"). + Resource("componentstatus"). Name(name). Do(). Into(result) @@ -109,7 +109,7 @@ func (c *componentStatus) Get(name string) (result *api.ComponentStatus, err err func (c *componentStatus) List(opts api.ListOptions) (result *api.ComponentStatusList, err error) { result = &api.ComponentStatusList{} err = c.client.Get(). - Resource("componentStatus"). + Resource("componentstatus"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -120,7 +120,7 @@ func (c *componentStatus) List(opts api.ListOptions) (result *api.ComponentStatu func (c *componentStatus) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). - Resource("componentStatus"). + Resource("componentstatus"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_componentstatus.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_componentstatus.go index 2db6fa285d3..d765f423060 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_componentstatus.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_componentstatus.go @@ -30,7 +30,7 @@ type FakeComponentStatus struct { func (c *FakeComponentStatus) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { obj, err := c.Fake. - Invokes(core.NewRootCreateAction("componentStatus", componentStatus), &api.ComponentStatus{}) + Invokes(core.NewRootCreateAction("componentstatus", componentStatus), &api.ComponentStatus{}) if obj == nil { return nil, err } @@ -39,7 +39,7 @@ func (c *FakeComponentStatus) Create(componentStatus *api.ComponentStatus) (resu func (c *FakeComponentStatus) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { obj, err := c.Fake. - Invokes(core.NewRootUpdateAction("componentStatus", componentStatus), &api.ComponentStatus{}) + Invokes(core.NewRootUpdateAction("componentstatus", componentStatus), &api.ComponentStatus{}) if obj == nil { return nil, err } @@ -48,7 +48,7 @@ func (c *FakeComponentStatus) Update(componentStatus *api.ComponentStatus) (resu func (c *FakeComponentStatus) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewRootDeleteAction("componentStatus", name), &api.ComponentStatus{}) + Invokes(core.NewRootDeleteAction("componentstatus", name), &api.ComponentStatus{}) return err } @@ -61,7 +61,7 @@ func (c *FakeComponentStatus) DeleteCollection(options *api.DeleteOptions, listO func (c *FakeComponentStatus) Get(name string) (result *api.ComponentStatus, err error) { obj, err := c.Fake. - Invokes(core.NewRootGetAction("componentStatus", name), &api.ComponentStatus{}) + Invokes(core.NewRootGetAction("componentstatus", name), &api.ComponentStatus{}) if obj == nil { return nil, err } @@ -70,7 +70,7 @@ func (c *FakeComponentStatus) Get(name string) (result *api.ComponentStatus, err func (c *FakeComponentStatus) List(opts api.ListOptions) (result *api.ComponentStatusList, err error) { obj, err := c.Fake. - Invokes(core.NewRootListAction("componentStatus", opts), &api.ComponentStatusList{}) + Invokes(core.NewRootListAction("componentstatus", opts), &api.ComponentStatusList{}) if obj == nil { return nil, err } @@ -91,5 +91,5 @@ func (c *FakeComponentStatus) List(opts api.ListOptions) (result *api.ComponentS // Watch returns a watch.Interface that watches the requested componentStatus. func (c *FakeComponentStatus) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewRootWatchAction("componentStatus", opts)) + InvokesWatch(core.NewRootWatchAction("componentstatus", opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_limitrange.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_limitrange.go index 02bf99c2470..223bb720803 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_limitrange.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_limitrange.go @@ -31,7 +31,7 @@ type FakeLimitRanges struct { func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (result *api.LimitRange, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("limitRanges", c.ns, limitRange), &api.LimitRange{}) + Invokes(core.NewCreateAction("limitranges", c.ns, limitRange), &api.LimitRange{}) if obj == nil { return nil, err @@ -41,7 +41,7 @@ func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (result *api.LimitR func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("limitRanges", c.ns, limitRange), &api.LimitRange{}) + Invokes(core.NewUpdateAction("limitranges", c.ns, limitRange), &api.LimitRange{}) if obj == nil { return nil, err @@ -51,7 +51,7 @@ func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (result *api.LimitR func (c *FakeLimitRanges) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("limitRanges", c.ns, name), &api.LimitRange{}) + Invokes(core.NewDeleteAction("limitranges", c.ns, name), &api.LimitRange{}) return err } @@ -65,7 +65,7 @@ func (c *FakeLimitRanges) DeleteCollection(options *api.DeleteOptions, listOptio func (c *FakeLimitRanges) Get(name string) (result *api.LimitRange, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("limitRanges", c.ns, name), &api.LimitRange{}) + Invokes(core.NewGetAction("limitranges", c.ns, name), &api.LimitRange{}) if obj == nil { return nil, err @@ -75,7 +75,7 @@ func (c *FakeLimitRanges) Get(name string) (result *api.LimitRange, err error) { func (c *FakeLimitRanges) List(opts api.ListOptions) (result *api.LimitRangeList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("limitRanges", c.ns, opts), &api.LimitRangeList{}) + Invokes(core.NewListAction("limitranges", c.ns, opts), &api.LimitRangeList{}) if obj == nil { return nil, err @@ -97,6 +97,6 @@ func (c *FakeLimitRanges) List(opts api.ListOptions) (result *api.LimitRangeList // Watch returns a watch.Interface that watches the requested limitRanges. func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("limitRanges", c.ns, opts)) + InvokesWatch(core.NewWatchAction("limitranges", c.ns, opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolume.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolume.go index 5c7945eeb2f..48c4d841f3c 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolume.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolume.go @@ -30,7 +30,7 @@ type FakePersistentVolumes struct { func (c *FakePersistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { obj, err := c.Fake. - Invokes(core.NewRootCreateAction("persistentVolumes", persistentVolume), &api.PersistentVolume{}) + Invokes(core.NewRootCreateAction("persistentvolumes", persistentVolume), &api.PersistentVolume{}) if obj == nil { return nil, err } @@ -39,7 +39,7 @@ func (c *FakePersistentVolumes) Create(persistentVolume *api.PersistentVolume) ( func (c *FakePersistentVolumes) Update(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { obj, err := c.Fake. - Invokes(core.NewRootUpdateAction("persistentVolumes", persistentVolume), &api.PersistentVolume{}) + Invokes(core.NewRootUpdateAction("persistentvolumes", persistentVolume), &api.PersistentVolume{}) if obj == nil { return nil, err } @@ -48,7 +48,7 @@ func (c *FakePersistentVolumes) Update(persistentVolume *api.PersistentVolume) ( func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *api.PersistentVolume) (*api.PersistentVolume, error) { obj, err := c.Fake. - Invokes(core.NewRootUpdateSubresourceAction("persistentVolumes", "status", persistentVolume), &api.PersistentVolume{}) + Invokes(core.NewRootUpdateSubresourceAction("persistentvolumes", "status", persistentVolume), &api.PersistentVolume{}) if obj == nil { return nil, err } @@ -57,7 +57,7 @@ func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *api.PersistentVol func (c *FakePersistentVolumes) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewRootDeleteAction("persistentVolumes", name), &api.PersistentVolume{}) + Invokes(core.NewRootDeleteAction("persistentvolumes", name), &api.PersistentVolume{}) return err } @@ -70,7 +70,7 @@ func (c *FakePersistentVolumes) DeleteCollection(options *api.DeleteOptions, lis func (c *FakePersistentVolumes) Get(name string) (result *api.PersistentVolume, err error) { obj, err := c.Fake. - Invokes(core.NewRootGetAction("persistentVolumes", name), &api.PersistentVolume{}) + Invokes(core.NewRootGetAction("persistentvolumes", name), &api.PersistentVolume{}) if obj == nil { return nil, err } @@ -79,7 +79,7 @@ func (c *FakePersistentVolumes) Get(name string) (result *api.PersistentVolume, func (c *FakePersistentVolumes) List(opts api.ListOptions) (result *api.PersistentVolumeList, err error) { obj, err := c.Fake. - Invokes(core.NewRootListAction("persistentVolumes", opts), &api.PersistentVolumeList{}) + Invokes(core.NewRootListAction("persistentvolumes", opts), &api.PersistentVolumeList{}) if obj == nil { return nil, err } @@ -100,5 +100,5 @@ func (c *FakePersistentVolumes) List(opts api.ListOptions) (result *api.Persiste // Watch returns a watch.Interface that watches the requested persistentVolumes. func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewRootWatchAction("persistentVolumes", opts)) + InvokesWatch(core.NewRootWatchAction("persistentvolumes", opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolumeclaim.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolumeclaim.go index 93897b3bc77..b4f7043a309 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolumeclaim.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_persistentvolumeclaim.go @@ -31,7 +31,7 @@ type FakePersistentVolumeClaims struct { func (c *FakePersistentVolumeClaims) Create(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("persistentVolumeClaims", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) + Invokes(core.NewCreateAction("persistentvolumeclaims", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) if obj == nil { return nil, err @@ -41,7 +41,7 @@ func (c *FakePersistentVolumeClaims) Create(persistentVolumeClaim *api.Persisten func (c *FakePersistentVolumeClaims) Update(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("persistentVolumeClaims", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) + Invokes(core.NewUpdateAction("persistentvolumeclaims", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) if obj == nil { return nil, err @@ -51,7 +51,7 @@ func (c *FakePersistentVolumeClaims) Update(persistentVolumeClaim *api.Persisten func (c *FakePersistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error) { obj, err := c.Fake. - Invokes(core.NewUpdateSubresourceAction("persistentVolumeClaims", "status", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) + Invokes(core.NewUpdateSubresourceAction("persistentvolumeclaims", "status", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) if obj == nil { return nil, err @@ -61,7 +61,7 @@ func (c *FakePersistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.Per func (c *FakePersistentVolumeClaims) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("persistentVolumeClaims", c.ns, name), &api.PersistentVolumeClaim{}) + Invokes(core.NewDeleteAction("persistentvolumeclaims", c.ns, name), &api.PersistentVolumeClaim{}) return err } @@ -75,7 +75,7 @@ func (c *FakePersistentVolumeClaims) DeleteCollection(options *api.DeleteOptions func (c *FakePersistentVolumeClaims) Get(name string) (result *api.PersistentVolumeClaim, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("persistentVolumeClaims", c.ns, name), &api.PersistentVolumeClaim{}) + Invokes(core.NewGetAction("persistentvolumeclaims", c.ns, name), &api.PersistentVolumeClaim{}) if obj == nil { return nil, err @@ -85,7 +85,7 @@ func (c *FakePersistentVolumeClaims) Get(name string) (result *api.PersistentVol func (c *FakePersistentVolumeClaims) List(opts api.ListOptions) (result *api.PersistentVolumeClaimList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("persistentVolumeClaims", c.ns, opts), &api.PersistentVolumeClaimList{}) + Invokes(core.NewListAction("persistentvolumeclaims", c.ns, opts), &api.PersistentVolumeClaimList{}) if obj == nil { return nil, err @@ -107,6 +107,6 @@ func (c *FakePersistentVolumeClaims) List(opts api.ListOptions) (result *api.Per // Watch returns a watch.Interface that watches the requested persistentVolumeClaims. func (c *FakePersistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("persistentVolumeClaims", c.ns, opts)) + InvokesWatch(core.NewWatchAction("persistentvolumeclaims", c.ns, opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_podtemplate.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_podtemplate.go index 5a84227a3e0..1da9b66482a 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_podtemplate.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_podtemplate.go @@ -31,7 +31,7 @@ type FakePodTemplates struct { func (c *FakePodTemplates) Create(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("podTemplates", c.ns, podTemplate), &api.PodTemplate{}) + Invokes(core.NewCreateAction("podtemplates", c.ns, podTemplate), &api.PodTemplate{}) if obj == nil { return nil, err @@ -41,7 +41,7 @@ func (c *FakePodTemplates) Create(podTemplate *api.PodTemplate) (result *api.Pod func (c *FakePodTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("podTemplates", c.ns, podTemplate), &api.PodTemplate{}) + Invokes(core.NewUpdateAction("podtemplates", c.ns, podTemplate), &api.PodTemplate{}) if obj == nil { return nil, err @@ -51,7 +51,7 @@ func (c *FakePodTemplates) Update(podTemplate *api.PodTemplate) (result *api.Pod func (c *FakePodTemplates) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("podTemplates", c.ns, name), &api.PodTemplate{}) + Invokes(core.NewDeleteAction("podtemplates", c.ns, name), &api.PodTemplate{}) return err } @@ -65,7 +65,7 @@ func (c *FakePodTemplates) DeleteCollection(options *api.DeleteOptions, listOpti func (c *FakePodTemplates) Get(name string) (result *api.PodTemplate, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("podTemplates", c.ns, name), &api.PodTemplate{}) + Invokes(core.NewGetAction("podtemplates", c.ns, name), &api.PodTemplate{}) if obj == nil { return nil, err @@ -75,7 +75,7 @@ func (c *FakePodTemplates) Get(name string) (result *api.PodTemplate, err error) func (c *FakePodTemplates) List(opts api.ListOptions) (result *api.PodTemplateList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("podTemplates", c.ns, opts), &api.PodTemplateList{}) + Invokes(core.NewListAction("podtemplates", c.ns, opts), &api.PodTemplateList{}) if obj == nil { return nil, err @@ -97,6 +97,6 @@ func (c *FakePodTemplates) List(opts api.ListOptions) (result *api.PodTemplateLi // Watch returns a watch.Interface that watches the requested podTemplates. func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("podTemplates", c.ns, opts)) + InvokesWatch(core.NewWatchAction("podtemplates", c.ns, opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_replicationcontroller.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_replicationcontroller.go index 5129e62bb9a..6f27c77278e 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_replicationcontroller.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_replicationcontroller.go @@ -31,7 +31,7 @@ type FakeReplicationControllers struct { func (c *FakeReplicationControllers) Create(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("replicationControllers", c.ns, replicationController), &api.ReplicationController{}) + Invokes(core.NewCreateAction("replicationcontrollers", c.ns, replicationController), &api.ReplicationController{}) if obj == nil { return nil, err @@ -41,7 +41,7 @@ func (c *FakeReplicationControllers) Create(replicationController *api.Replicati func (c *FakeReplicationControllers) Update(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("replicationControllers", c.ns, replicationController), &api.ReplicationController{}) + Invokes(core.NewUpdateAction("replicationcontrollers", c.ns, replicationController), &api.ReplicationController{}) if obj == nil { return nil, err @@ -51,7 +51,7 @@ func (c *FakeReplicationControllers) Update(replicationController *api.Replicati func (c *FakeReplicationControllers) UpdateStatus(replicationController *api.ReplicationController) (*api.ReplicationController, error) { obj, err := c.Fake. - Invokes(core.NewUpdateSubresourceAction("replicationControllers", "status", c.ns, replicationController), &api.ReplicationController{}) + Invokes(core.NewUpdateSubresourceAction("replicationcontrollers", "status", c.ns, replicationController), &api.ReplicationController{}) if obj == nil { return nil, err @@ -61,7 +61,7 @@ func (c *FakeReplicationControllers) UpdateStatus(replicationController *api.Rep func (c *FakeReplicationControllers) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("replicationControllers", c.ns, name), &api.ReplicationController{}) + Invokes(core.NewDeleteAction("replicationcontrollers", c.ns, name), &api.ReplicationController{}) return err } @@ -75,7 +75,7 @@ func (c *FakeReplicationControllers) DeleteCollection(options *api.DeleteOptions func (c *FakeReplicationControllers) Get(name string) (result *api.ReplicationController, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("replicationControllers", c.ns, name), &api.ReplicationController{}) + Invokes(core.NewGetAction("replicationcontrollers", c.ns, name), &api.ReplicationController{}) if obj == nil { return nil, err @@ -85,7 +85,7 @@ func (c *FakeReplicationControllers) Get(name string) (result *api.ReplicationCo func (c *FakeReplicationControllers) List(opts api.ListOptions) (result *api.ReplicationControllerList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("replicationControllers", c.ns, opts), &api.ReplicationControllerList{}) + Invokes(core.NewListAction("replicationcontrollers", c.ns, opts), &api.ReplicationControllerList{}) if obj == nil { return nil, err @@ -107,6 +107,6 @@ func (c *FakeReplicationControllers) List(opts api.ListOptions) (result *api.Rep // Watch returns a watch.Interface that watches the requested replicationControllers. func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("replicationControllers", c.ns, opts)) + InvokesWatch(core.NewWatchAction("replicationcontrollers", c.ns, opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_resourcequota.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_resourcequota.go index 6b897903493..25d6221e483 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_resourcequota.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_resourcequota.go @@ -31,7 +31,7 @@ type FakeResourceQuotas struct { func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("resourceQuotas", c.ns, resourceQuota), &api.ResourceQuota{}) + Invokes(core.NewCreateAction("resourcequotas", c.ns, resourceQuota), &api.ResourceQuota{}) if obj == nil { return nil, err @@ -41,7 +41,7 @@ func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *a func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("resourceQuotas", c.ns, resourceQuota), &api.ResourceQuota{}) + Invokes(core.NewUpdateAction("resourcequotas", c.ns, resourceQuota), &api.ResourceQuota{}) if obj == nil { return nil, err @@ -51,7 +51,7 @@ func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *a func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error) { obj, err := c.Fake. - Invokes(core.NewUpdateSubresourceAction("resourceQuotas", "status", c.ns, resourceQuota), &api.ResourceQuota{}) + Invokes(core.NewUpdateSubresourceAction("resourcequotas", "status", c.ns, resourceQuota), &api.ResourceQuota{}) if obj == nil { return nil, err @@ -61,7 +61,7 @@ func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*ap func (c *FakeResourceQuotas) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("resourceQuotas", c.ns, name), &api.ResourceQuota{}) + Invokes(core.NewDeleteAction("resourcequotas", c.ns, name), &api.ResourceQuota{}) return err } @@ -75,7 +75,7 @@ func (c *FakeResourceQuotas) DeleteCollection(options *api.DeleteOptions, listOp func (c *FakeResourceQuotas) Get(name string) (result *api.ResourceQuota, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("resourceQuotas", c.ns, name), &api.ResourceQuota{}) + Invokes(core.NewGetAction("resourcequotas", c.ns, name), &api.ResourceQuota{}) if obj == nil { return nil, err @@ -85,7 +85,7 @@ func (c *FakeResourceQuotas) Get(name string) (result *api.ResourceQuota, err er func (c *FakeResourceQuotas) List(opts api.ListOptions) (result *api.ResourceQuotaList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("resourceQuotas", c.ns, opts), &api.ResourceQuotaList{}) + Invokes(core.NewListAction("resourcequotas", c.ns, opts), &api.ResourceQuotaList{}) if obj == nil { return nil, err @@ -107,6 +107,6 @@ func (c *FakeResourceQuotas) List(opts api.ListOptions) (result *api.ResourceQuo // Watch returns a watch.Interface that watches the requested resourceQuotas. func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("resourceQuotas", c.ns, opts)) + InvokesWatch(core.NewWatchAction("resourcequotas", c.ns, opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/fake/fake_serviceaccount.go b/pkg/client/typed/generated/legacy/unversioned/fake/fake_serviceaccount.go index 5743ff3c30e..a34750494ae 100644 --- a/pkg/client/typed/generated/legacy/unversioned/fake/fake_serviceaccount.go +++ b/pkg/client/typed/generated/legacy/unversioned/fake/fake_serviceaccount.go @@ -31,7 +31,7 @@ type FakeServiceAccounts struct { func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { obj, err := c.Fake. - Invokes(core.NewCreateAction("serviceAccounts", c.ns, serviceAccount), &api.ServiceAccount{}) + Invokes(core.NewCreateAction("serviceaccounts", c.ns, serviceAccount), &api.ServiceAccount{}) if obj == nil { return nil, err @@ -41,7 +41,7 @@ func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (result func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { obj, err := c.Fake. - Invokes(core.NewUpdateAction("serviceAccounts", c.ns, serviceAccount), &api.ServiceAccount{}) + Invokes(core.NewUpdateAction("serviceaccounts", c.ns, serviceAccount), &api.ServiceAccount{}) if obj == nil { return nil, err @@ -51,7 +51,7 @@ func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (result func (c *FakeServiceAccounts) Delete(name string, options *api.DeleteOptions) error { _, err := c.Fake. - Invokes(core.NewDeleteAction("serviceAccounts", c.ns, name), &api.ServiceAccount{}) + Invokes(core.NewDeleteAction("serviceaccounts", c.ns, name), &api.ServiceAccount{}) return err } @@ -65,7 +65,7 @@ func (c *FakeServiceAccounts) DeleteCollection(options *api.DeleteOptions, listO func (c *FakeServiceAccounts) Get(name string) (result *api.ServiceAccount, err error) { obj, err := c.Fake. - Invokes(core.NewGetAction("serviceAccounts", c.ns, name), &api.ServiceAccount{}) + Invokes(core.NewGetAction("serviceaccounts", c.ns, name), &api.ServiceAccount{}) if obj == nil { return nil, err @@ -75,7 +75,7 @@ func (c *FakeServiceAccounts) Get(name string) (result *api.ServiceAccount, err func (c *FakeServiceAccounts) List(opts api.ListOptions) (result *api.ServiceAccountList, err error) { obj, err := c.Fake. - Invokes(core.NewListAction("serviceAccounts", c.ns, opts), &api.ServiceAccountList{}) + Invokes(core.NewListAction("serviceaccounts", c.ns, opts), &api.ServiceAccountList{}) if obj == nil { return nil, err @@ -97,6 +97,6 @@ func (c *FakeServiceAccounts) List(opts api.ListOptions) (result *api.ServiceAcc // Watch returns a watch.Interface that watches the requested serviceAccounts. func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(core.NewWatchAction("serviceAccounts", c.ns, opts)) + InvokesWatch(core.NewWatchAction("serviceaccounts", c.ns, opts)) } diff --git a/pkg/client/typed/generated/legacy/unversioned/limitrange.go b/pkg/client/typed/generated/legacy/unversioned/limitrange.go index dbe3c5b14b7..8f4dc9afcff 100644 --- a/pkg/client/typed/generated/legacy/unversioned/limitrange.go +++ b/pkg/client/typed/generated/legacy/unversioned/limitrange.go @@ -58,7 +58,7 @@ func (c *limitRanges) Create(limitRange *api.LimitRange) (result *api.LimitRange result = &api.LimitRange{} err = c.client.Post(). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). Body(limitRange). Do(). Into(result) @@ -70,7 +70,7 @@ func (c *limitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange result = &api.LimitRange{} err = c.client.Put(). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). Name(limitRange.Name). Body(limitRange). Do(). @@ -82,7 +82,7 @@ func (c *limitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange func (c *limitRanges) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). Name(name). Body(options). Do(). @@ -93,7 +93,7 @@ func (c *limitRanges) Delete(name string, options *api.DeleteOptions) error { func (c *limitRanges) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -105,7 +105,7 @@ func (c *limitRanges) Get(name string) (result *api.LimitRange, err error) { result = &api.LimitRange{} err = c.client.Get(). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). Name(name). Do(). Into(result) @@ -117,7 +117,7 @@ func (c *limitRanges) List(opts api.ListOptions) (result *api.LimitRangeList, er result = &api.LimitRangeList{} err = c.client.Get(). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -129,7 +129,7 @@ func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("limitRanges"). + Resource("limitranges"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/persistentvolume.go b/pkg/client/typed/generated/legacy/unversioned/persistentvolume.go index 1c22281bf0c..2595b2eeb35 100644 --- a/pkg/client/typed/generated/legacy/unversioned/persistentvolume.go +++ b/pkg/client/typed/generated/legacy/unversioned/persistentvolume.go @@ -56,7 +56,7 @@ func newPersistentVolumes(c *LegacyClient) *persistentVolumes { func (c *persistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { result = &api.PersistentVolume{} err = c.client.Post(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). Body(persistentVolume). Do(). Into(result) @@ -67,7 +67,7 @@ func (c *persistentVolumes) Create(persistentVolume *api.PersistentVolume) (resu func (c *persistentVolumes) Update(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { result = &api.PersistentVolume{} err = c.client.Put(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). Name(persistentVolume.Name). Body(persistentVolume). Do(). @@ -78,7 +78,7 @@ func (c *persistentVolumes) Update(persistentVolume *api.PersistentVolume) (resu func (c *persistentVolumes) UpdateStatus(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { result = &api.PersistentVolume{} err = c.client.Put(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). Name(persistentVolume.Name). SubResource("status"). Body(persistentVolume). @@ -90,7 +90,7 @@ func (c *persistentVolumes) UpdateStatus(persistentVolume *api.PersistentVolume) // Delete takes name of the persistentVolume and deletes it. Returns an error if one occurs. func (c *persistentVolumes) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). Name(name). Body(options). Do(). @@ -100,7 +100,7 @@ func (c *persistentVolumes) Delete(name string, options *api.DeleteOptions) erro // DeleteCollection deletes a collection of objects. func (c *persistentVolumes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -111,7 +111,7 @@ func (c *persistentVolumes) DeleteCollection(options *api.DeleteOptions, listOpt func (c *persistentVolumes) Get(name string) (result *api.PersistentVolume, err error) { result = &api.PersistentVolume{} err = c.client.Get(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). Name(name). Do(). Into(result) @@ -122,7 +122,7 @@ func (c *persistentVolumes) Get(name string) (result *api.PersistentVolume, err func (c *persistentVolumes) List(opts api.ListOptions) (result *api.PersistentVolumeList, err error) { result = &api.PersistentVolumeList{} err = c.client.Get(). - Resource("persistentVolumes"). + Resource("persistentvolumes"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -133,7 +133,7 @@ func (c *persistentVolumes) List(opts api.ListOptions) (result *api.PersistentVo func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). - Resource("persistentVolumes"). + Resource("persistentvolumes"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/persistentvolumeclaim.go b/pkg/client/typed/generated/legacy/unversioned/persistentvolumeclaim.go index 43bcb2eaa6e..e775cb3c64f 100644 --- a/pkg/client/typed/generated/legacy/unversioned/persistentvolumeclaim.go +++ b/pkg/client/typed/generated/legacy/unversioned/persistentvolumeclaim.go @@ -59,7 +59,7 @@ func (c *persistentVolumeClaims) Create(persistentVolumeClaim *api.PersistentVol result = &api.PersistentVolumeClaim{} err = c.client.Post(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). Body(persistentVolumeClaim). Do(). Into(result) @@ -71,7 +71,7 @@ func (c *persistentVolumeClaims) Update(persistentVolumeClaim *api.PersistentVol result = &api.PersistentVolumeClaim{} err = c.client.Put(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). Name(persistentVolumeClaim.Name). Body(persistentVolumeClaim). Do(). @@ -83,7 +83,7 @@ func (c *persistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.Persist result = &api.PersistentVolumeClaim{} err = c.client.Put(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). Name(persistentVolumeClaim.Name). SubResource("status"). Body(persistentVolumeClaim). @@ -96,7 +96,7 @@ func (c *persistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.Persist func (c *persistentVolumeClaims) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). Name(name). Body(options). Do(). @@ -107,7 +107,7 @@ func (c *persistentVolumeClaims) Delete(name string, options *api.DeleteOptions) func (c *persistentVolumeClaims) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -119,7 +119,7 @@ func (c *persistentVolumeClaims) Get(name string) (result *api.PersistentVolumeC result = &api.PersistentVolumeClaim{} err = c.client.Get(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). Name(name). Do(). Into(result) @@ -131,7 +131,7 @@ func (c *persistentVolumeClaims) List(opts api.ListOptions) (result *api.Persist result = &api.PersistentVolumeClaimList{} err = c.client.Get(). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -143,7 +143,7 @@ func (c *persistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, e return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("persistentVolumeClaims"). + Resource("persistentvolumeclaims"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/podtemplate.go b/pkg/client/typed/generated/legacy/unversioned/podtemplate.go index 466ebcae3b1..8a18cf7236c 100644 --- a/pkg/client/typed/generated/legacy/unversioned/podtemplate.go +++ b/pkg/client/typed/generated/legacy/unversioned/podtemplate.go @@ -58,7 +58,7 @@ func (c *podTemplates) Create(podTemplate *api.PodTemplate) (result *api.PodTemp result = &api.PodTemplate{} err = c.client.Post(). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). Body(podTemplate). Do(). Into(result) @@ -70,7 +70,7 @@ func (c *podTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemp result = &api.PodTemplate{} err = c.client.Put(). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). Name(podTemplate.Name). Body(podTemplate). Do(). @@ -82,7 +82,7 @@ func (c *podTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemp func (c *podTemplates) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). Name(name). Body(options). Do(). @@ -93,7 +93,7 @@ func (c *podTemplates) Delete(name string, options *api.DeleteOptions) error { func (c *podTemplates) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -105,7 +105,7 @@ func (c *podTemplates) Get(name string) (result *api.PodTemplate, err error) { result = &api.PodTemplate{} err = c.client.Get(). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). Name(name). Do(). Into(result) @@ -117,7 +117,7 @@ func (c *podTemplates) List(opts api.ListOptions) (result *api.PodTemplateList, result = &api.PodTemplateList{} err = c.client.Get(). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -129,7 +129,7 @@ func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("podTemplates"). + Resource("podtemplates"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/replicationcontroller.go b/pkg/client/typed/generated/legacy/unversioned/replicationcontroller.go index 63662a004f2..5881268d056 100644 --- a/pkg/client/typed/generated/legacy/unversioned/replicationcontroller.go +++ b/pkg/client/typed/generated/legacy/unversioned/replicationcontroller.go @@ -59,7 +59,7 @@ func (c *replicationControllers) Create(replicationController *api.ReplicationCo result = &api.ReplicationController{} err = c.client.Post(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). Body(replicationController). Do(). Into(result) @@ -71,7 +71,7 @@ func (c *replicationControllers) Update(replicationController *api.ReplicationCo result = &api.ReplicationController{} err = c.client.Put(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). Name(replicationController.Name). Body(replicationController). Do(). @@ -83,7 +83,7 @@ func (c *replicationControllers) UpdateStatus(replicationController *api.Replica result = &api.ReplicationController{} err = c.client.Put(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). Name(replicationController.Name). SubResource("status"). Body(replicationController). @@ -96,7 +96,7 @@ func (c *replicationControllers) UpdateStatus(replicationController *api.Replica func (c *replicationControllers) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). Name(name). Body(options). Do(). @@ -107,7 +107,7 @@ func (c *replicationControllers) Delete(name string, options *api.DeleteOptions) func (c *replicationControllers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -119,7 +119,7 @@ func (c *replicationControllers) Get(name string) (result *api.ReplicationContro result = &api.ReplicationController{} err = c.client.Get(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). Name(name). Do(). Into(result) @@ -131,7 +131,7 @@ func (c *replicationControllers) List(opts api.ListOptions) (result *api.Replica result = &api.ReplicationControllerList{} err = c.client.Get(). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -143,7 +143,7 @@ func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, e return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("replicationControllers"). + Resource("replicationcontrollers"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/resourcequota.go b/pkg/client/typed/generated/legacy/unversioned/resourcequota.go index a073e997477..07367f02dfd 100644 --- a/pkg/client/typed/generated/legacy/unversioned/resourcequota.go +++ b/pkg/client/typed/generated/legacy/unversioned/resourcequota.go @@ -59,7 +59,7 @@ func (c *resourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *api.R result = &api.ResourceQuota{} err = c.client.Post(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). Body(resourceQuota). Do(). Into(result) @@ -71,7 +71,7 @@ func (c *resourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *api.R result = &api.ResourceQuota{} err = c.client.Put(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). Name(resourceQuota.Name). Body(resourceQuota). Do(). @@ -83,7 +83,7 @@ func (c *resourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (result result = &api.ResourceQuota{} err = c.client.Put(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). Name(resourceQuota.Name). SubResource("status"). Body(resourceQuota). @@ -96,7 +96,7 @@ func (c *resourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (result func (c *resourceQuotas) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). Name(name). Body(options). Do(). @@ -107,7 +107,7 @@ func (c *resourceQuotas) Delete(name string, options *api.DeleteOptions) error { func (c *resourceQuotas) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -119,7 +119,7 @@ func (c *resourceQuotas) Get(name string) (result *api.ResourceQuota, err error) result = &api.ResourceQuota{} err = c.client.Get(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). Name(name). Do(). Into(result) @@ -131,7 +131,7 @@ func (c *resourceQuotas) List(opts api.ListOptions) (result *api.ResourceQuotaLi result = &api.ResourceQuotaList{} err = c.client.Get(). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -143,7 +143,7 @@ func (c *resourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("resourceQuotas"). + Resource("resourcequotas"). VersionedParams(&opts, api.Scheme). Watch() } diff --git a/pkg/client/typed/generated/legacy/unversioned/serviceaccount.go b/pkg/client/typed/generated/legacy/unversioned/serviceaccount.go index 519977f85e7..6b0a973ed54 100644 --- a/pkg/client/typed/generated/legacy/unversioned/serviceaccount.go +++ b/pkg/client/typed/generated/legacy/unversioned/serviceaccount.go @@ -58,7 +58,7 @@ func (c *serviceAccounts) Create(serviceAccount *api.ServiceAccount) (result *ap result = &api.ServiceAccount{} err = c.client.Post(). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). Body(serviceAccount). Do(). Into(result) @@ -70,7 +70,7 @@ func (c *serviceAccounts) Update(serviceAccount *api.ServiceAccount) (result *ap result = &api.ServiceAccount{} err = c.client.Put(). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). Name(serviceAccount.Name). Body(serviceAccount). Do(). @@ -82,7 +82,7 @@ func (c *serviceAccounts) Update(serviceAccount *api.ServiceAccount) (result *ap func (c *serviceAccounts) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). Name(name). Body(options). Do(). @@ -93,7 +93,7 @@ func (c *serviceAccounts) Delete(name string, options *api.DeleteOptions) error func (c *serviceAccounts) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). VersionedParams(&listOptions, api.Scheme). Body(options). Do(). @@ -105,7 +105,7 @@ func (c *serviceAccounts) Get(name string) (result *api.ServiceAccount, err erro result = &api.ServiceAccount{} err = c.client.Get(). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). Name(name). Do(). Into(result) @@ -117,7 +117,7 @@ func (c *serviceAccounts) List(opts api.ListOptions) (result *api.ServiceAccount result = &api.ServiceAccountList{} err = c.client.Get(). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). VersionedParams(&opts, api.Scheme). Do(). Into(result) @@ -129,7 +129,7 @@ func (c *serviceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). - Resource("serviceAccounts"). + Resource("serviceaccounts"). VersionedParams(&opts, api.Scheme). Watch() }