1/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by client-gen. DO NOT EDIT.
18
19package fake
20
21import (
22	"context"
23
24	v1beta1 "k8s.io/api/authorization/v1beta1"
25	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26	schema "k8s.io/apimachinery/pkg/runtime/schema"
27	testing "k8s.io/client-go/testing"
28)
29
30// FakeSelfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
31type FakeSelfSubjectRulesReviews struct {
32	Fake *FakeAuthorizationV1beta1
33}
34
35var selfsubjectrulesreviewsResource = schema.GroupVersionResource{Group: "authorization.k8s.io", Version: "v1beta1", Resource: "selfsubjectrulesreviews"}
36
37var selfsubjectrulesreviewsKind = schema.GroupVersionKind{Group: "authorization.k8s.io", Version: "v1beta1", Kind: "SelfSubjectRulesReview"}
38
39// Create takes the representation of a selfSubjectRulesReview and creates it.  Returns the server's representation of the selfSubjectRulesReview, and an error, if there is any.
40func (c *FakeSelfSubjectRulesReviews) Create(ctx context.Context, selfSubjectRulesReview *v1beta1.SelfSubjectRulesReview, opts v1.CreateOptions) (result *v1beta1.SelfSubjectRulesReview, err error) {
41	obj, err := c.Fake.
42		Invokes(testing.NewRootCreateAction(selfsubjectrulesreviewsResource, selfSubjectRulesReview), &v1beta1.SelfSubjectRulesReview{})
43	if obj == nil {
44		return nil, err
45	}
46	return obj.(*v1beta1.SelfSubjectRulesReview), err
47}
48