// Code generated by client-gen. DO NOT EDIT.

package v1alpha1

import (
	context "context"

	configv1alpha1 "github.com/openshift/api/config/v1alpha1"
	applyconfigurationsconfigv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
	scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	gentype "k8s.io/client-go/gentype"
)

// PKIsGetter has a method to return a PKIInterface.
// A group's client should implement this interface.
type PKIsGetter interface {
	PKIs() PKIInterface
}

// PKIInterface has methods to work with PKI resources.
type PKIInterface interface {
	Create(ctx context.Context, pKI *configv1alpha1.PKI, opts v1.CreateOptions) (*configv1alpha1.PKI, error)
	Update(ctx context.Context, pKI *configv1alpha1.PKI, opts v1.UpdateOptions) (*configv1alpha1.PKI, error)
	Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
	Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.PKI, error)
	List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.PKIList, error)
	Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.PKI, err error)
	Apply(ctx context.Context, pKI *applyconfigurationsconfigv1alpha1.PKIApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.PKI, err error)
	PKIExpansion
}

// pKIs implements PKIInterface
type pKIs struct {
	*gentype.ClientWithListAndApply[*configv1alpha1.PKI, *configv1alpha1.PKIList, *applyconfigurationsconfigv1alpha1.PKIApplyConfiguration]
}

// newPKIs returns a PKIs
func newPKIs(c *ConfigV1alpha1Client) *pKIs {
	return &pKIs{
		gentype.NewClientWithListAndApply[*configv1alpha1.PKI, *configv1alpha1.PKIList, *applyconfigurationsconfigv1alpha1.PKIApplyConfiguration](
			"pkis",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *configv1alpha1.PKI { return &configv1alpha1.PKI{} },
			func() *configv1alpha1.PKIList { return &configv1alpha1.PKIList{} },
		),
	}
}
