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

package v1alpha1

import (
	context "context"

	machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
	applyconfigurationsmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
	scheme "github.com/openshift/client-go/machineconfiguration/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"
)

// InternalReleaseImagesGetter has a method to return a InternalReleaseImageInterface.
// A group's client should implement this interface.
type InternalReleaseImagesGetter interface {
	InternalReleaseImages() InternalReleaseImageInterface
}

// InternalReleaseImageInterface has methods to work with InternalReleaseImage resources.
type InternalReleaseImageInterface interface {
	Create(ctx context.Context, internalReleaseImage *machineconfigurationv1alpha1.InternalReleaseImage, opts v1.CreateOptions) (*machineconfigurationv1alpha1.InternalReleaseImage, error)
	Update(ctx context.Context, internalReleaseImage *machineconfigurationv1alpha1.InternalReleaseImage, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.InternalReleaseImage, error)
	// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
	UpdateStatus(ctx context.Context, internalReleaseImage *machineconfigurationv1alpha1.InternalReleaseImage, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.InternalReleaseImage, 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) (*machineconfigurationv1alpha1.InternalReleaseImage, error)
	List(ctx context.Context, opts v1.ListOptions) (*machineconfigurationv1alpha1.InternalReleaseImageList, 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 *machineconfigurationv1alpha1.InternalReleaseImage, err error)
	Apply(ctx context.Context, internalReleaseImage *applyconfigurationsmachineconfigurationv1alpha1.InternalReleaseImageApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.InternalReleaseImage, err error)
	// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
	ApplyStatus(ctx context.Context, internalReleaseImage *applyconfigurationsmachineconfigurationv1alpha1.InternalReleaseImageApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.InternalReleaseImage, err error)
	InternalReleaseImageExpansion
}

// internalReleaseImages implements InternalReleaseImageInterface
type internalReleaseImages struct {
	*gentype.ClientWithListAndApply[*machineconfigurationv1alpha1.InternalReleaseImage, *machineconfigurationv1alpha1.InternalReleaseImageList, *applyconfigurationsmachineconfigurationv1alpha1.InternalReleaseImageApplyConfiguration]
}

// newInternalReleaseImages returns a InternalReleaseImages
func newInternalReleaseImages(c *MachineconfigurationV1alpha1Client) *internalReleaseImages {
	return &internalReleaseImages{
		gentype.NewClientWithListAndApply[*machineconfigurationv1alpha1.InternalReleaseImage, *machineconfigurationv1alpha1.InternalReleaseImageList, *applyconfigurationsmachineconfigurationv1alpha1.InternalReleaseImageApplyConfiguration](
			"internalreleaseimages",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *machineconfigurationv1alpha1.InternalReleaseImage {
				return &machineconfigurationv1alpha1.InternalReleaseImage{}
			},
			func() *machineconfigurationv1alpha1.InternalReleaseImageList {
				return &machineconfigurationv1alpha1.InternalReleaseImageList{}
			},
		),
	}
}
