func (c *podNetworkings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	var timeout time.Duration
	if listOpts.TimeoutSeconds != nil {
		timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
	}
	return c.client.Delete().
		Resource("podnetworkings").
		VersionedParams(&listOpts, scheme.ParameterCodec).
		Timeout(timeout).
		Body(&opts).
		Do(ctx).
		Error()
}
DeleteCollection deletes a collection of objects.
package v1beta1
import (
	"context"
	"time"
	v1beta1 "github.com/AliyunContainerService/terway/pkg/apis/network.alibabacloud.com/v1beta1"
	scheme "github.com/AliyunContainerService/terway/pkg/generated/clientset/versioned/scheme"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type PodNetworkingsGetter interface {
	PodNetworkings() PodNetworkingInterface
}
type PodNetworkingInterface interface {
	Create(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.CreateOptions) (*v1beta1.PodNetworking, error)
	Update(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (*v1beta1.PodNetworking, error)
	UpdateStatus(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (*v1beta1.PodNetworking, 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) (*v1beta1.PodNetworking, error)
	List(ctx context.Context, opts v1.ListOptions) (*v1beta1.PodNetworkingList, 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 *v1beta1.PodNetworking, err error)
	PodNetworkingExpansion
}
type podNetworkings struct {
	client rest.Interface
}
func newPodNetworkings(c *NetworkV1beta1Client) *podNetworkings {
	return &podNetworkings{
		client: c.RESTClient(),
	}
}
func (c *podNetworkings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PodNetworking, err error) {
	result = &v1beta1.PodNetworking{}
	err = c.client.Get().
		Resource("podnetworkings").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do(ctx).
		Into(result)
	return
}
func (c *podNetworkings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodNetworkingList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1beta1.PodNetworkingList{}
	err = c.client.Get().
		Resource("podnetworkings").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}
func (c *podNetworkings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Resource("podnetworkings").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch(ctx)
}
func (c *podNetworkings) Create(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.CreateOptions) (result *v1beta1.PodNetworking, err error) {
	result = &v1beta1.PodNetworking{}
	err = c.client.Post().
		Resource("podnetworkings").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(podNetworking).
		Do(ctx).
		Into(result)
	return
}
func (c *podNetworkings) Update(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (result *v1beta1.PodNetworking, err error) {
	result = &v1beta1.PodNetworking{}
	err = c.client.Put().
		Resource("podnetworkings").
		Name(podNetworking.Name).
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(podNetworking).
		Do(ctx).
		Into(result)
	return
}
func (c *podNetworkings) UpdateStatus(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (result *v1beta1.PodNetworking, err error) {
	result = &v1beta1.PodNetworking{}
	err = c.client.Put().
		Resource("podnetworkings").
		Name(podNetworking.Name).
		SubResource("status").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(podNetworking).
		Do(ctx).
		Into(result)
	return
}
func (c *podNetworkings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	return c.client.Delete().
		Resource("podnetworkings").
		Name(name).
		Body(&opts).
		Do(ctx).
		Error()
}