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

package v1

import (
	context "context"

	machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
	applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
	scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
	metav1 "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"
)

// MachineOSBuildsGetter has a method to return a MachineOSBuildInterface.
// A group's client should implement this interface.
type MachineOSBuildsGetter interface {
	MachineOSBuilds() MachineOSBuildInterface
}

// MachineOSBuildInterface has methods to work with MachineOSBuild resources.
type MachineOSBuildInterface interface {
	Create(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuild, opts metav1.CreateOptions) (*machineconfigurationv1.MachineOSBuild, error)
	Update(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuild, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineOSBuild, error)
	// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
	UpdateStatus(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuild, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineOSBuild, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.MachineOSBuild, error)
	List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.MachineOSBuildList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.MachineOSBuild, err error)
	Apply(ctx context.Context, machineOSBuild *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineOSBuild, err error)
	// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
	ApplyStatus(ctx context.Context, machineOSBuild *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineOSBuild, err error)
	MachineOSBuildExpansion
}

// machineOSBuilds implements MachineOSBuildInterface
type machineOSBuilds struct {
	*gentype.ClientWithListAndApply[*machineconfigurationv1.MachineOSBuild, *machineconfigurationv1.MachineOSBuildList, *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration]
}

// newMachineOSBuilds returns a MachineOSBuilds
func newMachineOSBuilds(c *MachineconfigurationV1Client) *machineOSBuilds {
	return &machineOSBuilds{
		gentype.NewClientWithListAndApply[*machineconfigurationv1.MachineOSBuild, *machineconfigurationv1.MachineOSBuildList, *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration](
			"machineosbuilds",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *machineconfigurationv1.MachineOSBuild { return &machineconfigurationv1.MachineOSBuild{} },
			func() *machineconfigurationv1.MachineOSBuildList { return &machineconfigurationv1.MachineOSBuildList{} },
		),
	}
}
