Remove BPA from Makefile
[icn.git] / cmd / bpa-operator / vendor / k8s.io / client-go / kubernetes / typed / extensions / v1beta1 / extensions_client.go
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Code generated by client-gen. DO NOT EDIT.
18
19 package v1beta1
20
21 import (
22         v1beta1 "k8s.io/api/extensions/v1beta1"
23         serializer "k8s.io/apimachinery/pkg/runtime/serializer"
24         "k8s.io/client-go/kubernetes/scheme"
25         rest "k8s.io/client-go/rest"
26 )
27
28 type ExtensionsV1beta1Interface interface {
29         RESTClient() rest.Interface
30         DaemonSetsGetter
31         DeploymentsGetter
32         IngressesGetter
33         PodSecurityPoliciesGetter
34         ReplicaSetsGetter
35 }
36
37 // ExtensionsV1beta1Client is used to interact with features provided by the extensions group.
38 type ExtensionsV1beta1Client struct {
39         restClient rest.Interface
40 }
41
42 func (c *ExtensionsV1beta1Client) DaemonSets(namespace string) DaemonSetInterface {
43         return newDaemonSets(c, namespace)
44 }
45
46 func (c *ExtensionsV1beta1Client) Deployments(namespace string) DeploymentInterface {
47         return newDeployments(c, namespace)
48 }
49
50 func (c *ExtensionsV1beta1Client) Ingresses(namespace string) IngressInterface {
51         return newIngresses(c, namespace)
52 }
53
54 func (c *ExtensionsV1beta1Client) PodSecurityPolicies() PodSecurityPolicyInterface {
55         return newPodSecurityPolicies(c)
56 }
57
58 func (c *ExtensionsV1beta1Client) ReplicaSets(namespace string) ReplicaSetInterface {
59         return newReplicaSets(c, namespace)
60 }
61
62 // NewForConfig creates a new ExtensionsV1beta1Client for the given config.
63 func NewForConfig(c *rest.Config) (*ExtensionsV1beta1Client, error) {
64         config := *c
65         if err := setConfigDefaults(&config); err != nil {
66                 return nil, err
67         }
68         client, err := rest.RESTClientFor(&config)
69         if err != nil {
70                 return nil, err
71         }
72         return &ExtensionsV1beta1Client{client}, nil
73 }
74
75 // NewForConfigOrDie creates a new ExtensionsV1beta1Client for the given config and
76 // panics if there is an error in the config.
77 func NewForConfigOrDie(c *rest.Config) *ExtensionsV1beta1Client {
78         client, err := NewForConfig(c)
79         if err != nil {
80                 panic(err)
81         }
82         return client
83 }
84
85 // New creates a new ExtensionsV1beta1Client for the given RESTClient.
86 func New(c rest.Interface) *ExtensionsV1beta1Client {
87         return &ExtensionsV1beta1Client{c}
88 }
89
90 func setConfigDefaults(config *rest.Config) error {
91         gv := v1beta1.SchemeGroupVersion
92         config.GroupVersion = &gv
93         config.APIPath = "/apis"
94         config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs}
95
96         if config.UserAgent == "" {
97                 config.UserAgent = rest.DefaultKubernetesUserAgent()
98         }
99
100         return nil
101 }
102
103 // RESTClient returns a RESTClient that is used to communicate
104 // with API server by this client implementation.
105 func (c *ExtensionsV1beta1Client) RESTClient() rest.Interface {
106         if c == nil {
107                 return nil
108         }
109         return c.restClient
110 }