// Copyright (c) 2025 Tigera, Inc. All rights reserved.

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

package v3

import (
	context "context"

	projectcalicov3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	scheme "github.com/projectcalico/api/pkg/client/clientset_generated/clientset/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"
)

// GlobalNetworkSetsGetter has a method to return a GlobalNetworkSetInterface.
// A group's client should implement this interface.
type GlobalNetworkSetsGetter interface {
	GlobalNetworkSets() GlobalNetworkSetInterface
}

// GlobalNetworkSetInterface has methods to work with GlobalNetworkSet resources.
type GlobalNetworkSetInterface interface {
	Create(ctx context.Context, globalNetworkSet *projectcalicov3.GlobalNetworkSet, opts v1.CreateOptions) (*projectcalicov3.GlobalNetworkSet, error)
	Update(ctx context.Context, globalNetworkSet *projectcalicov3.GlobalNetworkSet, opts v1.UpdateOptions) (*projectcalicov3.GlobalNetworkSet, 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) (*projectcalicov3.GlobalNetworkSet, error)
	List(ctx context.Context, opts v1.ListOptions) (*projectcalicov3.GlobalNetworkSetList, 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 *projectcalicov3.GlobalNetworkSet, err error)
	GlobalNetworkSetExpansion
}

// globalNetworkSets implements GlobalNetworkSetInterface
type globalNetworkSets struct {
	*gentype.ClientWithList[*projectcalicov3.GlobalNetworkSet, *projectcalicov3.GlobalNetworkSetList]
}

// newGlobalNetworkSets returns a GlobalNetworkSets
func newGlobalNetworkSets(c *ProjectcalicoV3Client) *globalNetworkSets {
	return &globalNetworkSets{
		gentype.NewClientWithList[*projectcalicov3.GlobalNetworkSet, *projectcalicov3.GlobalNetworkSetList](
			"globalnetworksets",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *projectcalicov3.GlobalNetworkSet { return &projectcalicov3.GlobalNetworkSet{} },
			func() *projectcalicov3.GlobalNetworkSetList { return &projectcalicov3.GlobalNetworkSetList{} },
		),
	}
}
