diff --git a/kubernetes/typed/authorization/v1/BUILD b/kubernetes/typed/authorization/v1/BUILD index 0a0c7ae8..816aaa3d 100644 --- a/kubernetes/typed/authorization/v1/BUILD +++ b/kubernetes/typed/authorization/v1/BUILD @@ -16,6 +16,7 @@ go_library( "selfsubjectaccessreview.go", "selfsubjectaccessreview_expansion.go", "selfsubjectrulesreview.go", + "selfsubjectrulesreview_expansion.go", "subjectaccessreview.go", "subjectaccessreview_expansion.go", ], diff --git a/kubernetes/typed/authorization/v1/fake/BUILD b/kubernetes/typed/authorization/v1/fake/BUILD index f8828e7e..26cccdf1 100644 --- a/kubernetes/typed/authorization/v1/fake/BUILD +++ b/kubernetes/typed/authorization/v1/fake/BUILD @@ -15,6 +15,7 @@ go_library( "fake_selfsubjectaccessreview.go", "fake_selfsubjectaccessreview_expansion.go", "fake_selfsubjectrulesreview.go", + "fake_selfsubjectrulesreview_expansion.go", "fake_subjectaccessreview.go", "fake_subjectaccessreview_expansion.go", ], diff --git a/kubernetes/typed/authorization/v1/fake/fake_selfsubjectrulesreview_expansion.go b/kubernetes/typed/authorization/v1/fake/fake_selfsubjectrulesreview_expansion.go new file mode 100644 index 00000000..a6dc9513 --- /dev/null +++ b/kubernetes/typed/authorization/v1/fake/fake_selfsubjectrulesreview_expansion.go @@ -0,0 +1,27 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + authorizationapi "k8s.io/api/authorization/v1" + core "k8s.io/client-go/testing" +) + +func (c *FakeSelfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) { + obj, err := c.Fake.Invokes(core.NewRootCreateAction(authorizationapi.SchemeGroupVersion.WithResource("selfsubjectrulesreviews"), srr), &authorizationapi.SelfSubjectRulesReview{}) + return obj.(*authorizationapi.SelfSubjectRulesReview), err +} diff --git a/kubernetes/typed/authorization/v1/generated_expansion.go b/kubernetes/typed/authorization/v1/generated_expansion.go index ca5c38a1..42e76d5e 100644 --- a/kubernetes/typed/authorization/v1/generated_expansion.go +++ b/kubernetes/typed/authorization/v1/generated_expansion.go @@ -15,5 +15,3 @@ limitations under the License. */ package v1 - -type SelfSubjectRulesReviewExpansion interface{} diff --git a/kubernetes/typed/authorization/v1/selfsubjectrulesreview_expansion.go b/kubernetes/typed/authorization/v1/selfsubjectrulesreview_expansion.go new file mode 100644 index 00000000..e2cad880 --- /dev/null +++ b/kubernetes/typed/authorization/v1/selfsubjectrulesreview_expansion.go @@ -0,0 +1,35 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + authorizationapi "k8s.io/api/authorization/v1" +) + +type SelfSubjectRulesReviewExpansion interface { + Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) +} + +func (c *selfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) { + result = &authorizationapi.SelfSubjectRulesReview{} + err = c.client.Post(). + Resource("selfsubjectrulesreviews"). + Body(srr). + Do(). + Into(result) + return +} diff --git a/kubernetes/typed/authorization/v1beta1/BUILD b/kubernetes/typed/authorization/v1beta1/BUILD index 1cbb71a5..be939575 100644 --- a/kubernetes/typed/authorization/v1beta1/BUILD +++ b/kubernetes/typed/authorization/v1beta1/BUILD @@ -16,6 +16,7 @@ go_library( "selfsubjectaccessreview.go", "selfsubjectaccessreview_expansion.go", "selfsubjectrulesreview.go", + "selfsubjectrulesreview_expansion.go", "subjectaccessreview.go", "subjectaccessreview_expansion.go", ], diff --git a/kubernetes/typed/authorization/v1beta1/fake/BUILD b/kubernetes/typed/authorization/v1beta1/fake/BUILD index 10c5f1b3..42c22410 100644 --- a/kubernetes/typed/authorization/v1beta1/fake/BUILD +++ b/kubernetes/typed/authorization/v1beta1/fake/BUILD @@ -16,6 +16,7 @@ go_library( "fake_selfsubjectaccessreview.go", "fake_selfsubjectaccessreview_expansion.go", "fake_selfsubjectrulesreview.go", + "fake_selfsubjectrulesreview_expansion.go", "fake_subjectaccessreview.go", "fake_subjectaccessreview_expansion.go", ], diff --git a/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectrulesreview_expansion.go b/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectrulesreview_expansion.go new file mode 100644 index 00000000..f92ffd71 --- /dev/null +++ b/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectrulesreview_expansion.go @@ -0,0 +1,27 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + authorizationapi "k8s.io/api/authorization/v1beta1" + core "k8s.io/client-go/testing" +) + +func (c *FakeSelfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) { + obj, err := c.Fake.Invokes(core.NewRootCreateAction(authorizationapi.SchemeGroupVersion.WithResource("selfsubjectrulesreviews"), srr), &authorizationapi.SelfSubjectRulesReview{}) + return obj.(*authorizationapi.SelfSubjectRulesReview), err +} diff --git a/kubernetes/typed/authorization/v1beta1/generated_expansion.go b/kubernetes/typed/authorization/v1beta1/generated_expansion.go index 1949011e..2b7e8ca0 100644 --- a/kubernetes/typed/authorization/v1beta1/generated_expansion.go +++ b/kubernetes/typed/authorization/v1beta1/generated_expansion.go @@ -15,5 +15,3 @@ limitations under the License. */ package v1beta1 - -type SelfSubjectRulesReviewExpansion interface{} diff --git a/kubernetes/typed/authorization/v1beta1/selfsubjectrulesreview_expansion.go b/kubernetes/typed/authorization/v1beta1/selfsubjectrulesreview_expansion.go new file mode 100644 index 00000000..5f1f37ef --- /dev/null +++ b/kubernetes/typed/authorization/v1beta1/selfsubjectrulesreview_expansion.go @@ -0,0 +1,35 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + authorizationapi "k8s.io/api/authorization/v1beta1" +) + +type SelfSubjectRulesReviewExpansion interface { + Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) +} + +func (c *selfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) { + result = &authorizationapi.SelfSubjectRulesReview{} + err = c.client.Post(). + Resource("selfsubjectrulesreviews"). + Body(srr). + Do(). + Into(result) + return +}